ID

Plugins & licenses

The open-source libraries Selaras uses, where their files are, and how to update or remove them.

Third-party libraries

All of them may be included in commercial products under their licenses.

LibraryVersionLicenseUsed on
Bootstrap5.3.3MITEvery page
Tabler Icons3.19.0MITEvery page
Plus Jakarta SansFontSIL OFL 1.1Every page
ApexCharts3.54.1MITEvery page with the sidebar; charts on four dashboards and Charts
FullCalendar6.1.21MITCalendar
SortableJS1.15.7MITKanban, Drag & drop
DataTables2.3.8MITData tables
jQuery3.7.1MITData tables only, for DataTables
Flatpickr4.6.13MITForm pickers
Tom Select2.6.2Apache-2.0Form pickers
FilePond4.32.12MITFile upload
FilePond plugins4.6.12 · 1.2.9 · 2.2.8MITImage preview, file type and file size checks on File upload
SweetAlert211.26.25MITSweetAlert
Quill2.0.3BSD-3-ClauseText editor
marked12.0.2MITText editor (Markdown preview)
DOMPurify3.1.6MPL-2.0 or Apache-2.0Text editor (cleans the preview HTML)
jsvectormap1.6.0MITMaps
Font Awesome Free7.3.1Icons CC BY 4.0, fonts SIL OFL 1.1, code MITIcons
Bootstrap Icons1.13.1MITIcons
Phosphor Icons2.1.2MITIcons

The FilePond plugins are image preview (4.6.12), file type validation (1.2.9) and file size validation (2.2.8). DataTables loads together with its Bootstrap 5 styling package, datatables.net-bs5, of the same version.

The date picker (sl-datepicker.js) and the file uploader (sl-upload.js) are part of Selaras itself, not third-party libraries.

Font Awesome needs a credit

Attribution is required

The Font Awesome Free icons are licensed under CC BY 4.0, which requires a credit. If your product ships Font Awesome icons, mention it in your credits, about page or documentation, and keep the license comment at the top of its CSS file.

A credit line you can use:

Text
Icons by Font Awesome Free (fontawesome.com), licensed under CC BY 4.0.

In Selaras, Font Awesome is loaded only on UI Kit › Icons, as one of three optional icon sets. The built-in icons everywhere else are Tabler Icons, under the MIT license.

Where the files are

Every library is included in the download, in assets/vendor/ — one folder per library, with its license file next to it. The font is there too, in assets/vendor/plus-jakarta-sans/. Nothing loads from a CDN, so the pages work offline and on an intranet.

The pages link to those files in three places:

  • src/partials/head.html — the font, the Bootstrap CSS and Tabler Icons, for every page.
  • src/layout.html, src/layout-auth.html, src/layout-error.html and src/layout-store.html — the Bootstrap JavaScript; src/layout.html also loads ApexCharts.
  • The "styles" and "scripts" lists in the meta line of a page in src/pages/ — every other library, only on that page.

Update a library

The versions are listed in vendor.json. The script tools/vendor.mjs copies them into assets/vendor/: the listed files, the fonts and images their stylesheets refer to, and the license.

  1. Read the release notes of the new version first (see Before you upgrade a library), then change its version in vendor.json.
  2. Run the script. It needs Node.js 18 or newer and an internet connection — for this step only.
    Terminal
    node tools/vendor.mjs
  3. Rebuild with node build.mjs. Library links get a version stamp too, so browsers load the new files instead of old copies from their cache.
  4. Check the pages that use the library — the table above lists them — in light and dark mode.

The script replaces the whole assets/vendor/ folder, so keep your own files elsewhere, for example in assets/js/. Paths that start with assets/ are adjusted automatically for the Indonesian pages in id/.

Prefer a CDN? Replace a local path with the CDN address of the same version, for example https://cdn.jsdelivr.net/npm/apexcharts@3.54.1/dist/apexcharts.min.js, and rebuild.

Remove a library you don’t use

Most libraries load only on the page that uses them, through that page’s "styles" and "scripts" meta. Removing one never affects the other pages. To drop a UI Kit page and its library:

  1. Delete the page source, for example src/pages/ui-pickers.html, and its script assets/js/ui-pickers.js.
  2. Remove its entry from the NAV list in build.mjs. The search on the 404 page is built from the same list, so it updates too.
  3. Rebuild with node build.mjs, then delete the old built files (ui-pickers.html and id/ui-pickers.html) — the build does not remove pages it no longer makes.
  4. Optional: delete the library’s skin from assets/css/selaras.css. Each skin sits under its own heading comment, such as Flatpickr 4.6 or Tom Select 2.6.

To keep a page but drop one of its libraries, remove the URL from the page’s meta and the code that calls the library in the page script.

Shared libraries

  • Bootstrap and Tabler Icons are used by every page — dropdowns, modals, tooltips, the grid and all icons depend on them. Keep them.
  • ApexCharts loads on every page with the sidebar. If you don’t need charts, remove its line from src/layout.html; the pages keep working, only the charts are not drawn. Remove the chart cards from the dashboards as well.
  • jQuery is needed only by DataTables. SortableJS is used by Kanban and Drag & drop, and FullCalendar by the Calendar app.

Before you upgrade a library

Selaras is built and tested with the versions above. Before moving to a newer version, read its changelog and its license — terms can change between versions.

  • ApexCharts — version 3.54.1 is MIT. Check the license of any later version before you upgrade, because it may be different.
  • FullCalendar — Selaras uses the standard bundle, which is MIT. FullCalendar also sells premium plugins (such as timeline and resource views) under a commercial license. They are not included; add them only if you buy that license.
  • SweetAlert2 — the included version has been reviewed. Read the release notes of a newer version before upgrading.
Upgrading Bootstrap or ApexCharts

Selaras restyles these libraries closely. After an upgrade, check the dashboards, the charts and the UI Kit pages in both light and dark mode.

Credits

Selaras is built on the work of the open-source projects listed above. Thank you to their authors and contributors: Bootstrap, Tabler Icons, ApexCharts, FullCalendar, SortableJS, jQuery, DataTables, Flatpickr, Tom Select, FilePond, SweetAlert2, Quill, marked, DOMPurify, jsvectormap, Font Awesome, Bootstrap Icons, Phosphor Icons and the Plus Jakarta Sans typeface.

Each library keeps its own license. Its license text is included next to its files in assets/vendor/.