# anvaka/panzoom

Universal pan and zoom library (DOM, SVG, Custom)

Repository: https://github.com/anvaka/panzoom
Canonical: https://ross.abutalabs.com/products/anvaka-panzoom
Homepage: https://anvaka.github.io/panzoom/demo/attach-via-script.html
Language: JavaScript
License: MIT
License Family: permissive
Topics: panzoom, scene, svg, zoom, pan, transform
Last push: 2026-03-30T00:07:56+00:00

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

## Adoption (not part of the score)
Stars 2003, forks 313 (observed 2026-08-28T04:06:04.485408+00:00)

## What it is
A JavaScript library that adds pan and zoom interactions to DOM elements and SVG scenes. It is extensible, mobile friendly, and emits transformation events for custom behavior.

## Use cases
- add pan and zoom to an SVG diagram
- make a DOM subtree draggable and zoomable
- build an interactive scene viewer in the browser
- support pinch-to-zoom on mobile web pages
- listen to pan and zoom transform events
- create a zoomable graph or map visualization

## When to choose
- you need lightweight pan/zoom for DOM or SVG content
- you want mobile touch support out of the box
- you need event hooks for transformation changes

## When to avoid
- you need canvas or WebGL-based zooming
- you need full-featured map tile interactions
- your framework already provides built-in pan/zoom components

## Facets
- artifact type: library
- maturity: stable
- function: animation, ui-components
- domain: web-development, frontend, graphics
- platform: browser
- tags: pan-and-zoom, svg, dom, transform, touch-support, javascript

## Member repositories
- anvaka/panzoom (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.485408+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:01:54.013540+00:00, confidence not recorded.
  - readme: https://github.com/anvaka/panzoom (fetched 2026-08-28T04:06:04.485408+00:00, sha 46f45ee431b2)
  - homepage: https://anvaka.github.io/panzoom/demo/attach-via-script.html (fetched 2026-08-29T10:41:48.954453+00:00, sha 174cc4e121ca)
  - registry_npm: https://registry.npmjs.org/panzoom (fetched 2026-08-29T10:41:48.956955+00:00, sha d6288786251c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
