FindSoftware

PhotoSwipe

Open-source JavaScript image gallery and lightbox.

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 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.

Identity

Status
Active
Maintainer
Dmitry Semenov3
Maintained by
Individual
First release
20114

Rendering and deploy

Runs as
In the browser5
Install with
script tag, npm5

Releases

Current major version
56
Last release
2024-05-246

Adoption

GitHub stars
25,3022
npm downloads a week
839,5708
Contributors
707
Dependent repositories
6,3999
Dependent packages
3719

Why these figures do not compare

Sources

  1. 2026-11-16: links, Categories
    photoswipe.com/
  2. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/dimsemenov/PhotoSwipe
  3. 2026-11-16: Maintainer, License
    github.com/dimsemenov/PhotoSwipe/blob/master/LICENSE
  4. 2026-11-16: First release
    api.github.com/repos/dimsemenov/PhotoSwipe/tags?per_page=100
  5. 2026-11-16: Runs as, Install with
    photoswipe.com/getting-started/
  6. 2026-11-16: Current major version, Last release
    api.github.com/repos/dimsemenov/PhotoSwipe/releases/latest
  7. 2026-11-16: Contributors
    api.github.com/repos/dimsemenov/PhotoSwipe/contributors?per_page=1
  8. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/photoswipe
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/photoswipe

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON