{"id":50448583,"url":"https://github.com/schalkneethling/panozoom","last_synced_at":"2026-05-31T23:03:36.210Z","repository":{"id":350536155,"uuid":"1207257608","full_name":"schalkneethling/panozoom","owner":"schalkneethling","description":"Upload an image and pan and zoom almost infinitely in your browser. Smooth and intuitive, with full keyboard support.","archived":false,"fork":false,"pushed_at":"2026-04-10T20:37:26.000Z","size":207,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-10T21:15:45.898Z","etag":null,"topics":["image-viewer","pwa","typescript","webapp"],"latest_commit_sha":null,"homepage":"https://panozoom.schalkneethling.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schalkneethling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-10T18:41:37.000Z","updated_at":"2026-04-10T20:37:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/schalkneethling/panozoom","commit_stats":null,"previous_names":["schalkneethling/panozoom"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/schalkneethling/panozoom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schalkneethling%2Fpanozoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schalkneethling%2Fpanozoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schalkneethling%2Fpanozoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schalkneethling%2Fpanozoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schalkneethling","download_url":"https://codeload.github.com/schalkneethling/panozoom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schalkneethling%2Fpanozoom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33752287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-viewer","pwa","typescript","webapp"],"created_at":"2026-05-31T23:03:23.474Z","updated_at":"2026-05-31T23:03:36.205Z","avatar_url":"https://github.com/schalkneethling.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Panozoom\n\nA small browser app for opening an image and exploring it with **pan** and **zoom**. Everything runs locally in the page: no upload to a server.\n\n**Live site:** [panozoom.schalkneethling.com](https://panozoom.schalkneethling.com)\n\n**Progressive Web App:** Panozoom is installable from supported browsers (install / “Add to Home Screen”) and runs in a standalone window. A service worker precaches the app shell so it can open offline after you have loaded it once while online.\n\n## What it does\n\n- **Open images** via the toolbar, a file picker, or drag-and-drop onto the canvas.\n- **Pan** by clicking and dragging on the image (pointer capture keeps movement predictable).\n- **Zoom** with the scroll wheel; zoom is anchored to the pointer so the point under the cursor stays put. Trackpad pinch gestures are supported.\n- **Toolbar controls** for fit-to-view, 1:1 (actual pixels), and stepped zoom in/out.\n- **Keyboard shortcuts:** `F` fit, `1` 100%, `+` / `=` zoom in, `-` zoom out.\n\nZoom range is clamped between roughly 2% and 6400% so navigation stays usable.\n\n## Tech stack\n\n- [TypeScript](https://www.typescriptlang.org/)\n- [Vite+](https://viteplus.dev/) (Vite-based tooling: dev server, build, lint, test)\n- [vite-plugin-pwa](https://github.com/vite-pwa/vite-plugin-pwa) for the service worker and precaching (manifest lives in `public/site.webmanifest`)\n- A single [custom element](https://developer.mozilla.org/en-US/docs/Web/API/Web_components) (`\u003cpanozoom-app\u003e`) that owns interaction logic; styles live in `src/style.css`.\n\n## Development\n\nThis repo expects the **`vp`** (Vite+) CLI. Install dependencies and run checks with Vite+ rather than calling the package manager or raw Vite for project workflows.\n\n```bash\nvp install\nvp dev\n```\n\nOther useful commands:\n\n```bash\nvp build    # production build\nvp preview  # preview production build\nvp check    # format + lint (use --fix to auto-fix where possible)\nvp test     # tests\n```\n\n`package.json` scripts (`dev`, `build`, `preview`) wrap these for convenience.\n\nSee [`AGENTS.md`](./AGENTS.md) for Vite+ conventions (e.g. `vp test` / `vp lint` instead of separate tool binaries).\n\n## Project layout\n\n| Path              | Role                                                                  |\n| ----------------- | --------------------------------------------------------------------- |\n| `index.html`      | App shell, favicons, PWA manifest link, social meta tags              |\n| `src/panozoom.ts` | `PanoZoomApp` custom element and behavior                             |\n| `src/style.css`   | Layout and UI                                                         |\n| `public/`         | Static assets served at the site root (icons, manifest, social image) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschalkneethling%2Fpanozoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschalkneethling%2Fpanozoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschalkneethling%2Fpanozoom/lists"}