# PhotoSwipe

Open-source JavaScript image gallery and lightbox.


Source: https://findsoftware.frbit.cloud/photoswipe/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://photoswipe.com
- repository: https://github.com/dimsemenov/PhotoSwipe
- docs: https://photoswipe.com/getting-started/
- x: https://x.com/photoswipe

### Identity

- status: active
- maintainer: Dmitry Semenov
- maintainerType: individual
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: ui-library, media
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: browser
- renderingModes: not applicable
- installMethod: script tag, npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 5
- latestReleaseDate: 2024-05-24

### Adoption

- githubStargazers: 25302
- packagistDownloads: not applicable
- npmWeeklyDownloads: 839570
- contributors: 70
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 6399
- dependentPackages: 371

### Sources

- urls: https://photoswipe.com/ (read 2026-11-16)
- urls: https://api.github.com/repos/dimsemenov/PhotoSwipe (read 2026-11-16)
- urls: https://photoswipe.com/ (read 2026-11-16)
- maintainer: https://github.com/dimsemenov/PhotoSwipe/blob/master/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/dimsemenov/PhotoSwipe/tags?per_page=100 (read 2026-11-16)
- category: https://photoswipe.com/ (read 2026-11-16)
- language: https://api.github.com/repos/dimsemenov/PhotoSwipe (read 2026-11-16)
- runsAs: https://photoswipe.com/getting-started/ (read 2026-11-16)
- installMethod: https://photoswipe.com/getting-started/ (read 2026-11-16)
- installMethod: https://photoswipe.com/getting-started/ (read 2026-11-16)
- license: https://github.com/dimsemenov/PhotoSwipe/blob/master/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/dimsemenov/PhotoSwipe/releases/latest (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/dimsemenov/PhotoSwipe/releases/latest (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/dimsemenov/PhotoSwipe (read 2026-11-16)
- contributors: https://api.github.com/repos/dimsemenov/PhotoSwipe/contributors?per_page=1 (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/photoswipe (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/photoswipe (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/photoswipe (read 2026-11-16)

## Notes

PhotoSwipe is a JavaScript image gallery and lightbox. It opens the images of a gallery on the page in a dialog, loads larger images as a visitor zooms, and handles touch gestures. The script is an ES module with no build step, and the core and the lightbox are separate files, so a page can load the core only when a visitor opens an image.

The CSS is one file with no external assets, because the icons are generated in JavaScript. The [getting started guide](https://photoswipe.com/getting-started/) covers initialization, the options and the events, and it has pages for using the library with React, Vue and Svelte.

## Worth knowing

Each image needs its width and height set in advance, and the docs say the library is not designed for very large images. A tiling plugin for very large images is marked experimental. The docs say the library works only in browsers that support ES modules, and suggest a link to the image as the fallback for other browsers.

The current major removed the history API, social sharing, the fullscreen button, captions and inline galleries from the core, and some of these are or will be plugins.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
