{"id":14972394,"url":"https://github.com/trvswgnr/bs5-lightbox","last_synced_at":"2025-10-04T03:42:47.131Z","repository":{"id":37636690,"uuid":"408278387","full_name":"trvswgnr/bs5-lightbox","owner":"trvswgnr","description":"A pure JS lightbox gallery plugin for Bootstrap 5 based on the Modal and Carousel components","archived":false,"fork":false,"pushed_at":"2023-09-21T12:19:36.000Z","size":789,"stargazers_count":149,"open_issues_count":29,"forks_count":34,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T13:09:01.426Z","etag":null,"topics":["bootstrap","bootstrap-5","bootstrap5","carousel","ekko-lightbox","es6","galleries","gallery","javascript","lightbox","modal","module"],"latest_commit_sha":null,"homepage":"https://trvswgnr.github.io/bs5-lightbox/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trvswgnr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"trvswgnr","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":"traviswagner","issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-09-20T01:30:13.000Z","updated_at":"2025-03-22T10:21:52.000Z","dependencies_parsed_at":"2024-06-18T19:49:30.968Z","dependency_job_id":"6ebdff3e-fc4d-4cee-848a-cd709b74ad1a","html_url":"https://github.com/trvswgnr/bs5-lightbox","commit_stats":{"total_commits":190,"total_committers":5,"mean_commits":38.0,"dds":"0.12105263157894741","last_synced_commit":"873dcaf9b710533734c7ba50bfb8bbf70c09ab44"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trvswgnr%2Fbs5-lightbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trvswgnr%2Fbs5-lightbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trvswgnr%2Fbs5-lightbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trvswgnr%2Fbs5-lightbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trvswgnr","download_url":"https://codeload.github.com/trvswgnr/bs5-lightbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345852,"owners_count":20924102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap-5","bootstrap5","carousel","ekko-lightbox","es6","galleries","gallery","javascript","lightbox","modal","module"],"created_at":"2024-09-24T13:46:51.334Z","updated_at":"2025-10-04T03:42:42.087Z","avatar_url":"https://github.com/trvswgnr.png","language":"JavaScript","funding_links":["https://github.com/sponsors/trvswgnr","https://liberapay.com/traviswagner"],"categories":[],"sub_categories":[],"readme":"# Lightbox for Bootstrap 5\n\nA pure JavaScript Bootstrap 5 lightbox that supports images, galleries, YouTube, Vimeo, and Instagram—built around Bootstrap's Modal and Carousel plugins.\n\nHave you been using [Lightbox for Bootstrap (ekko-lightbox)](https://github.com/ashleydw/lightbox) but recently moved to Bootstrap 5? This is your replacement.\n\nDocumentation: https://trvswgnr.github.io/bs5-lightbox/\n\n\u003csub\u003eIf you enjoy using Bootstrap 5 Lightbox please star this repo.\u003c/sub\u003e\n\n### Development on [Version 2](https://github.com/trvswgnr/bs5-lightbox/tree/full-rework) has started—currently looking for contributors!\n\nUse [Issues](https://github.com/trvswgnr/bs5-lightbox/issues) to request new features. If you would like to contribute, send me an email at [lightbox@travisaw.com](mailto:lightbox@travisaw.com).\n\n## Status\n[![github latest release](https://badgen.net/github/tag/trvswgnr/bs5-lightbox?label=release\u0026cache=600)](https://github.com/trvswgnr/bs5-lightbox/releases/latest)\n[![jsdelivr hits per month](https://data.jsdelivr.com/v1/package/npm/bs5-lightbox/badge?style=rounded)](https://www.jsdelivr.com/package/npm/bs5-lightbox)\n[![npm downloads](https://badgen.net/npm/dt/bs5-lightbox?label=npm%20downloads\u0026color=blue\u0026cache=600)](https://www.npmjs.com/package/bs5-lightbox)\n[![npm minzipped size](https://badgen.net/bundlephobia/minzip/bs5-lightbox?label=gzip%20size\u0026color=green\u0026cache=600)](https://bundlephobia.com/package/bs5-lightbox)\n[![npm version](https://badgen.net/npm/v/bs5-lightbox?cache=600)](https://www.npmjs.com/package/bs5-lightbox)\n![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/bs5-lightbox)\n[![Featured on Openbase](https://badges.openbase.com/js/featured/bs5-lightbox.svg?token=R2MqRDwb93ap0dYGkIBBPigErEYve+e1dnfTDZImQog=)](https://openbase.com/js/bs5-lightbox)\n\n## Installation\n##### Install with NPM:\n```shell\nnpm i bs5-lightbox\n```\n\n##### CDN:\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/bs5-lightbox@1.8.5/dist/index.bundle.min.js\"\u003e\u003c/script\u003e\n```\n\nOr [download the file directly](https://raw.githubusercontent.com/trvswgnr/bs5-lightbox/main/dist/index.bundle.min.js) (right-click, Save As...)\n\n\nLightbox for Bootstrap 5 will automatically initialize on import:\n```js\nimport 'bs5-lightbox'\n```\nBy default it will target elements with the `data-toggle=\"lightbox\"` attribute.\n\nIf you want to target a different element, import the `Lightbox` class and instantiate it:\n```js\nimport Lightbox from 'bs5-lightbox'\n\nfor (const el of document.querySelectorAll('.my-lightbox-toggle')) {\n  el.addEventListener('click', Lightbox.initialize)\n}\n```\n\n## Contributing\nLightbox for Bootstrap 5 is written in pure JavaScript.\nModify the src/index.js file, run `npm run build` and create a pull request.\n\nYou can help make this project even better and keep it up to date by making a small contribution! [Fund this project](https://github.com/sponsors/trvswgnr).\n\n## Copyright and license\n\nCode released under [the MIT license](https://github.com/trvswgnr/bs5-lightbox/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrvswgnr%2Fbs5-lightbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrvswgnr%2Fbs5-lightbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrvswgnr%2Fbs5-lightbox/lists"}