# lightbox2

> The original Lightbox script. Uses jQuery.

Latest version **2.12.0** (published 2026-02-28) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install lightbox2
pnpm add lightbox2
yarn add lightbox2
bun add lightbox2
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.12.0 |
| Published | 2026-02-28 |
| First published | 2015-12-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 924.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6371 |
| Author | Lokesh Dhakar |
| Maintainers | lokesh.dhakar |
| Keywords | lightbox, lightbox2, overlay, gallery, slideshow, images |

## Links

- npm: https://www.npmjs.com/package/lightbox2
- Repository: https://github.com/lokesh/lightbox2
- Homepage: http://lokeshdhakar.com/projects/lightbox2/
- Issues: https://github.com/lokesh/lightbox2/issues
- npm.io page: https://npm.io/package/lightbox2

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ^3.7.1

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 2.12.0 (latest) — 2026-02-28
- 2.11.5 — 2024-10-03
- 2.11.4 — 2023-02-21
- 2.11.3 — 2020-07-11
- 2.11.2 — 2020-07-07
- 2.11.1 — 2019-07-14
- 2.11.0 — 2019-04-22
- 2.10.0 — 2017-11-26
- 2.9.0 — 2016-11-07
- 2.8.2 — 2015-12-14

## README

# Lightbox2

The _original_ lightbox script.

Lightbox is small javascript library used to overlay images on top of the current page. It's a snap to setup and works on all modern browsers.

- **Demos and usage instructions.** Visit the [Lightbox homepage](http://lokeshdhakar.com/projects/lightbox2/) to see examples, info on getting started, script options, how to get help, and more.
- **Releases and Changelog**. Viewable on the [Github Releases page](https://github.com/lokesh/lightbox2/releases)
- **Roadmap.** View the [Roadmap](https://github.com/lokesh/lightbox2/blob/master/ROADMAP.md) for a peek at what is being planned for future releases.
- **License.** Lightbox is licensed under the MIT License. [Learn more about the license.](http://lokeshdhakar.com/projects/lightbox2/#license)

by [Lokesh Dhakar](http://www.lokeshdhakar.com)

---

## Info for Maintainers

- **Issues and PRs requiring review.** See items tagged with [\[status\] needs review](https://github.com/lokesh/lightbox2/labels/%5Bstatus%5D%20needs%20review)
- **Questions on Stackoverflow.** See Questions tagged with [lightbox2](https://stackoverflow.com/questions/tagged/lightbox2).
- **Release instructions.** See [DEPLOY.md](https://github.com/lokesh/lightbox2/blob/master/DEPLOY.md).


### Local development

Some old tech, but it works, so no upgrading till something breaks.

- Install [Bower](https://bower.io/) and [Grunt](https://gruntjs.com/): `npm install -g bower grunt`
- Install jQuery dependency with Bower: `bower install`
- Start local server: `grunt`
- Navigate to `localhost:8000/examples`
- Update `examples/index.html` to load jQuery and `src/js/lightbox.js`.

---
_Source: https://npm.io/package/lightbox2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
