# feimosi/baguetteBox.js

:zap: Simple and easy to use lightbox script written in pure JavaScript

Repository: https://github.com/feimosi/baguetteBox.js
Canonical: https://ross.abutalabs.com/products/baguetteboxjs
Homepage: https://feimosi.github.io/baguetteBox.js/
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, gallery, lightbox, lightbox-script, vanilla-javascript, pure-javascript, responsive, modal
Last push: 2026-03-09T22:55:43+00:00

## Health v2 (maintenance only)
Score: 60/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 71, release rhythm 24, longevity 100
- inputs: {"age_days": 4424, "days_push": 177, "days_rel": 297, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2503, forks 428 (observed 2026-08-28T04:06:57.052562+00:00)

## What it is
baguetteBox.js is a lightweight (~3.2KB gzipped) lightbox script written in pure JavaScript with no dependencies. It displays image galleries in a fullscreen modal overlay with swipe gestures, captions, responsive images, and CSS3 transitions.

## Use cases
- add a lightbox to an image gallery on a static site
- show photos in a fullscreen modal with swipe support on mobile
- display responsive images in a gallery viewer without jQuery
- add image captions and fullscreen mode to a photo grid
- embed a minimal accessible image viewer in a webpage

## When to choose
- you need a tiny, dependency-free lightbox for plain JavaScript sites
- you want touch/swipe support and responsive images out of the box
- you need multiple galleries with per-gallery configuration

## When to avoid
- you need video or mixed-media lightbox support
- your stack already includes a larger UI framework with a lightbox component
- you need deep customization beyond the provided options

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: web-development, frontend, media, photography
- platform: browser
- tags: lightbox, image-gallery, vanilla-javascript, responsive-images, touch-gestures, modal, zero-dependency, javascript

## Member repositories
- feimosi/baguetteBox.js (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:57.052562+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:26:46.185917+00:00, confidence not recorded.
  - readme: https://github.com/feimosi/baguetteBox.js (fetched 2026-08-28T04:06:57.052562+00:00, sha 0dce4cd955e5)
  - homepage: https://feimosi.github.io/baguetteBox.js/ (fetched 2026-08-29T10:09:04.939912+00:00, sha 5646420afa00)
  - registry_npm: https://registry.npmjs.org/baguettebox.js (fetched 2026-08-29T10:09:04.948921+00:00, sha 5b08bc86e1f0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
