MCPcopy
hub / github.com/dimsemenov/PhotoSwipe

github.com/dimsemenov/PhotoSwipe @v5.4.4 sqlite

repository ↗ · DeepWiki ↗ · release v5.4.4 ↗
1,393 symbols 3,742 edges 70 files 508 documented · 36%
README

Stand With Ukraine

PhotoSwipe v5 — JavaScript image gallery and lightbox

Demo | Documentation

Sponsor via OpenCollective Follow on Twitter

Repo structure

  • dist/ - main JS and CSS
  • src/ - source JS and CSS.
  • src/js/photoswipe.js - entry for PhotoSwipe Core.
  • src/js/lightbox/lightbox.js - entry for PhotoSwipe Lightbox.
  • docs/ - documentation markdown files.
  • demo-docs-website/ - website with documentation, demos and manual tests.
  • build/ - rollup build config.

To build JS and CSS in dist/ directory, run npm run build.

To run the demo website and automatically rebuild files during development, run npm install in demo-docs-website/ and npm run watch in the root directory.

Older versions

Documentation for the old version (v4) can be found here and the code for 4.1.3 is here.


This project is tested with BrowserStack.

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
global.d.ts
Type (Interface)
(no doc)
src/js/types.ts

Core symbols most depended-on inside this repo

dispatch
called by 68
demo-docs-website/static/photoswipe/photoswipe.esm.js
dispatch
called by 68
src/js/core/eventable.js
equalizePoints
called by 20
demo-docs-website/static/photoswipe/photoswipe.esm.js
equalizePoints
called by 20
src/js/util/util.js
dispatch
called by 19
demo-docs-website/static/photoswipe/photoswipe-lightbox.esm.js
destroy
called by 18
demo-docs-website/static/photoswipe/photoswipe.esm.js
applyCurrentZoomPan
called by 16
demo-docs-website/static/photoswipe/photoswipe.esm.js
applyCurrentZoomPan
called by 16
src/js/slide/slide.js

Shape

Method 989
Class 236
Function 166
Interface 2

Languages

TypeScript100%

Modules by API surface

demo-docs-website/static/photoswipe/photoswipe.esm.js287 symbols
demo-docs-website/static/photoswipe/umd/photoswipe.umd.min.js272 symbols
demo-docs-website/static/photoswipe/photoswipe.esm.min.js272 symbols
demo-docs-website/static/photoswipe/photoswipe-lightbox.esm.js81 symbols
demo-docs-website/static/photoswipe/umd/photoswipe-lightbox.umd.min.js73 symbols
demo-docs-website/static/photoswipe/photoswipe-lightbox.esm.min.js73 symbols
src/js/slide/slide.js28 symbols
src/js/photoswipe.js26 symbols
src/js/slide/content.js25 symbols
src/js/gestures/gestures.js21 symbols
src/js/util/util.js16 symbols
src/js/opener.js14 symbols

Dependencies from manifests, versioned

@babel/core7.18.0 · 1×
@babel/eslint-parser7.17.0 · 1×
@babel/plugin-syntax-class-properties7.12.13 · 1×
@babel/plugin-transform-nullish-coalescing-operator7.22.11 · 1×
@babel/plugin-transform-optional-chaining7.22.10 · 1×
@docsearch/react3.0.0 · 1×
@docusaurus/core2.0.0-beta.17 · 1×
@docusaurus/plugin-google-gtag2.0.0-beta.17 · 1×
@docusaurus/preset-classic2.0.0-beta.17 · 1×
@docusaurus/theme-live-codeblock2.0.0-beta.17 · 1×
@mdx-js/react1.6.22 · 1×
@rollup/plugin-babel6.0.3 · 1×

For agents

$ claude mcp add PhotoSwipe \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact