Framework · WebGPU · Data
This site
A portfolio that is its own case study: a framework of my own, a procedural WebGPU world grown from my real commits, and inhabitants with something to do, all held to a hard performance budget.
- 19 KBfirst-load budget
- 1:1native pixels, every refresh your display has
- 0runtime dependencies
- Role
- Author
- Period
- 2026
- Stack
- code.red, WebGPU / WGSL, Web Workers, Bun, Cloudflare
- Rules
- Zero runtime dependencies, native resolution, no frame cap
The site at scale
Everything you are looking at, as its own graph: every point below is a declaration in this repository (a function, a constant, a class, a shader function), the compiler and the site together, and every thread one of them using another. Pointing at a layer lights it.
3,197 declarations and 9,547 references, drawn when this page loads.
- 105source files: JavaScript, WGSL, CSS and pages
- 21klines, compiler included
- 3,197declarations in 11 layers, from the compiler to the edge
- 94tests across both packages
- 0runtime dependencies
code.red
.codered pages compile to plain HTML and a few direct DOM writes, wired at build time: no virtual DOM, no hydration. Every route is built in English and Polish from a single template, modules are fingerprinted and preloaded only when first paint needs them, and CI fails the build if a size budget or reproducible hash breaks.
REDSHIFT
- A world generated in a Web Worker: terraced sanctuaries, bridges, waterfalls, clouds that keep clear of every wall, and a navigation graph with impossible geometry.
- Rendered with WebGPU at the full device pixel ratio with no frame cap: shadows, bloom, lightning and a cursor that parts the clouds.
- Optimised without changing a pixel: back-face culling, TBDR hidden-surface removal, CPU-side light trigonometry and lazy pipeline compilation cut Safari’s heaviest transition from 89.4 ms to 11.4 ms GPU p95 (120 Hz).
- Self-inspectable in place: X-ray peels the render layers apart, the live WGSL inspector recompiles shaders in flight without a reload, and browsers without WebGPU fall back cleanly to static frames.
Grown from real work
Every inhabitant is a day of my work: brighter for more commits, carrying a bowl sized by the lines it changed. Only per-day categories leave GitHub, never repository names, paths or messages. Builders feed the beacon, menders seal the cracks that appear as the page nears its budgets, and they talk to each other about their days.
For agents
The site answers over the Model Context Protocol too, at /api/mcp: seven read-only tools over the pages you can read here, with no account, no session and no model behind them. An agent asking about my work gets the published facts instead of a guess.
Counts, not people
I count page views and a few clicks (a case opened, an email started), to see what is useful. No cookies, and nothing on the page that tracks: the Worker in front of it does the counting. The bare numbers are kept for three months on Cloudflare, where the site runs. The Worker also passes the same counts to my own Umami, which uses the address and browser only to tell one day’s visits apart, by a hash that changes every day, and to name the country; it keeps neither. With Global Privacy Control or Do Not Track on, nothing is counted.
Where trust ends
The pages are static files with a strict policy: scripts and styles from this address only, nothing inline, nothing from elsewhere, the page cross-origin isolated and never framed. The Worker in front of them holds no account and no session. What crosses into it is little and bounded: the MCP server only reads what the pages already publish, with a size limit, a rate limit and other sites' pages refused; a meeting request goes into my calendar over CalDAV, its password a secret the code never sees in plain; D1 keeps only that a slot is being taken, for a while; Analytics Engine keeps counts without people, and my Umami gets the same counts from the Worker, never from the page. Found a hole? Write to me first (security.txt says how).
Typography
The site intentionally uses Atkinson Hyperlegible (and its monospaced companion) for maximum legibility and accessibility: unambiguous letterforms, clear distinction between characters such as I, l, 1 and O, 0, and self-hosted font files served from this domain with zero third-party requests. Atkinson Hyperlegible was designed by Braille Institute of America, Inc., 741 N. Vermont Avenue, Los Angeles, CA 90029, and is released under the open SIL Open Font License (OFL).
Sound
Off until you turn it on with the sound button in the corner (or S): the music streams only then; everything else is synthesised in the browser, in the five notes the music moves in. It has a voice of its own: four notes rising (E B E G) when it comes on and again, from another root, as each chapter is reached; under the music, each chapter its own sound (a few low notes over the sea’s waves, warm notes let fall now and then, glass; the black hole keeps its own); a soft low rumble when a new world is drawn; X-ray heard as if behind glass, a note for each layer; and the button’s bars show what is actually heard. Music: “Unraveling” by Scott Buckley, released under CC BY 4.0 (www.scottbuckley.com.au); its silent start is trimmed.
Credits
Visual language indebted to Monument Valley (ustwo games — Ken Wong, Neil McFarland, Dan Gray, Peter Pashley, Manesh Mistry, Van Le, David Fernández Huerta). Multi-vendor agentic review (Claude Fable and Google DeepMind) under CI invariants — every diff proven against tests, reproducible hashes and size budgets before human sign-off.