plainJS

Libraries / UI

baguetteBox.js Lightbox

Simple and easy to use lightbox script written in pure JavaScript

No-build verifiedActive0 dependenciesScript tagMIT

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size9.5 KB minified, 3.5 KB gzipped (dist/baguetteBox.min.js)
LicenceMIT
Dependenciesnone
Last releasev1.13.0, November 2025
Last activity2026-03-09 (Active)
Stars2,505 on GitHub
Formatsclassic script (global baguetteBox)
CDN hits1.1 million a month on jsDelivr
npm downloads23,002 a month
GatesG1 passed (no runtime dependencies); G2 passed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 passed (open-source licence); G5 passed (not archived or deprecated). Smoke test on v1.13.0 in headless Chromium, 2026-10-30

Load it

Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/baguetteBox.min.js"
        integrity="sha384-uZtD3gUTd4iGjyPLlyH19kS/wWRzZp1zj3641ceVYn6XaL2vakaM16Yvh0DBZMHd" crossorigin="anonymous"></script>
Advertisement

Entry 2 in the directory. Facts refreshed monthly; last run 2026-10-30.