404 — Not Found
Minimalist browser puzzle-platformer played inside the URL address bar and Back button — procedural room generation, zero runtime dependencies, synthesized Web Audio, and 98 passing unit tests.

- Unit Tests Passing
- 98/98
- Gzipped Bundle
- 9.6 KB
- Runtime Dependencies
- 0
- Desktop + Mobile
- Live
1. Problem
Demonstrate deep browser-API engineering (History API, URL hash parsing, Canvas 2D rendering, procedural generation, and Web Audio synthesis) with zero external runtime libraries and strict type safety.
2. My Role
Solo Frontend Engineer — built the defensive URL state parser, monotonic history rewind router, seeded procedural room generator (mulberry32), Canvas 2D renderer, Web Audio synthesizer, and 98-test Vitest suite.
3. System Architecture
Keeping all game rules pure and deriving walls, doors, and plates directly from the URL state ensures the rendered frame can never drift out of sync with hand-edited address bar input.
[ Browser Address Bar & Back Button ]
|
v popstate / hashchange
[ Defensive State Parser ] ---> [ Pure Rules & Procgen ]
|
v Derived state
[ Canvas 2D + Web Audio Synth ]4. Key Engineering Trade-Offs
Zero Runtime Dependencies
Implemented DPR-aware Canvas 2D drawing and procedural Web Audio synthesis in first-party TypeScript, keeping the entire production bundle to ~9.6 KB gzipped.
Guaranteed-Solvable Procedural Layouts
Generated walls, plates, and doors relative to each other with minimum gap invariants rather than pure random placement, verified by 44 dedicated procgen tests.
5. Quality & Reliability
- Strict TypeScript & ESLint Type-Checked Rules
- 98 Vitest Unit Tests (Including 44 Procgen Invariant Tests)
- Defensive Non-Throwing Hash Parser
- Single-Command Verification (npm run verify)
- Desktop Keyboard & Mobile Touch Input Separation
6. Lessons & Next Steps
- Separating pure state transitions from Canvas/DOM side effects makes browser games fast to test deterministically.
- Next step: add shareable seed URLs and keyboard-accessible room descriptions for screen-reader play.