# MinJieLiu/react-photo-view

An exquisite React photo preview component.

Repository: https://github.com/MinJieLiu/react-photo-view
Canonical: https://ross.abutalabs.com/products/react-photo-view
Homepage: https://react-photo-view.vercel.app
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: react, photo, image-swipe, photo-swipe, image-preview, react-component, gallery, gallery-images, image
Last push: 2026-01-30T11:56:55+00:00

## Health v2 (maintenance only)
Score: 52/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 65, release rhythm 8, longevity 100
- inputs: {"age_days": 2922, "days_push": 215, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1894, forks 151 (observed 2026-08-28T04:05:50.772296+00:00)

## What it is
A lightweight (7KB gzipped) React photo preview/lightbox component with polished touch gestures, animations, and keyboard navigation. It supports custom preview content like video or arbitrary HTML elements and works with server-side rendering.

## Use cases
- add a lightbox image preview to a react site
- swipe through a photo gallery on mobile
- pinch to zoom images in a react app
- preview images with keyboard navigation on desktop
- show video or custom html in an image viewer overlay
- build a thumbnail gallery that opens a fullscreen viewer

## When to choose
- you need a polished, mobile-friendly image viewer in React
- bundle size matters and you want a tiny dependency
- you need SSR compatibility or TypeScript support
- you want to preview custom content like video inside the viewer

## When to avoid
- your project is not React-based
- you need a full gallery/carousel with captions and layouts rather than a preview overlay
- you need advanced image editing or lazy-loading gallery features

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, image-processing, animation
- domain: frontend, web-development, media
- platform: cross-platform
- tags: react, image-viewer, lightbox, photo-gallery, touch-gestures, typescript, ssr-support, web-server, nodejs

## Member repositories
- MinJieLiu/react-photo-view (main) score 52

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:50.772296+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:12:53.232940+00:00, confidence not recorded.
  - readme: https://github.com/MinJieLiu/react-photo-view (fetched 2026-08-28T04:05:50.772296+00:00, sha 2842d304e119)
  - homepage: https://react-photo-view.vercel.app (fetched 2026-08-29T10:52:04.997988+00:00, sha 67538dda33ea)
  - registry_npm: https://registry.npmjs.org/react-photo-view (fetched 2026-08-29T10:52:05.007173+00:00, sha 42d4357e3400)
- Data as of 2026-08-30T08:39:29.467469+00:00.
