| Command |
When |
npx serve . |
Start local server |
| File |
Purpose |
docs/prd.md |
Task list, features, roadmap |
Browser-only static site viewer from zip files. No build step, no server-side logic.
index.html — drag-and-drop UI, unzips with fflate (CDN), stores files in Cache API, loads content in iframe
sw.js — service worker, intercepts fetch under /zipview/site/, serves from cache, directory listing fallback
- No build step — vanilla HTML + JS, ES modules only
- Dependencies via CDN imports (no node_modules)
- Never run long-running tasks (dev servers, watch modes, etc.)
- User runs
npx serve . manually in their terminal
- Confirm with user before committing
- Commit logical changes separately
- Confirm with user before committing
- Never rebase, never amend, never force push