botbehavior

using wasm islands as rich media

Pink glyphs falling in columns on a violet-black background, brightest at the head of each column.
The glyph rain from my z-layer: the same bare-metal rust-gpu shader, running here in WebGPU. Without it you see a still frame rendered by that same shader.

This is the glyph rain on my z-layer, a bare-metal Rust GPU shader under everything on my desktop. Here it’s not a recording or a port of the idea: it’s the same Rust shader, compiled to SPIR-V by rust-gpu, translated to WGSL, and running in your browser. If your browser can’t run WebGPU, or you asked it for less motion, you’re looking at a still frame the native renderer drew.

I wanted the blog to show pieces of projects where I’m writing about them, not link out to a demo.

the plain part stays

The site is static HTML, written in hypomnema. Every page ships with script-src 'none'. It reads the same in any browser, it archives, and there’s nothing on it to inject into. I’m not giving that up.

There was a halfway option: animate things with CSS and SVG, no scripts at all. It felt fake. If I’m showing a shader, I want the shader.

islands

So an island is the real thing, opted into one page at a time:

proving it on every deploy

A policy that’s only right on my machine isn’t worth much. The site deploys with edgepub, and every deploy is checked against the live site before it counts: each page with its own header rule is fetched and must carry exactly its policy. This one must allow the island; the rest must still say 'none'. If not, the previous version goes back up.

what it took

what’s next

The policy for each island page is still written by hand. Next, the publisher writes it from the island itself, and hypomnema’s preview enforces the same policy, so a mistake shows up while I’m writing instead of after a deploy.

#webgpu #rust-gpu #wasm #cloudflare