Experiments: full index
Every interactive page in oaustegard/experiments, generated from the repository on each push. For a short hand-picked selection, see the Lab on austegard.com. Each entry links its experiment's directory, where the writeup and code live. ↗ marks a page hosted elsewhere.
Doom by RolloutsA Doom player that decides by trying each move in copies of the game: four times a second it copies the running game 90 times, plays each of 30 options under three different random-number seeds for a second and a half, and plays the option that worked out best. Videos of three five-minute runs of E1M1
doom-planner
Soap Film ↗A soap film simulated on the GPU: tilt to pour it, drag to blow on it, tap to pop it. Thickness plays the part of density, and every colour is computed from the film's thickness by thin-film interference
soap-film
Splat DiffusionA diffusion model written by hand in WGSL generates a texture as 512 or 1,024 opaque, layered splats with their own edge sharpness, in about a tenth of a second on a Mac: one shader paints them, so the tile repeats seamlessly, stays sharp at any zoom, and exports as a WGSL function
splat-diffusion
Animal DiffusionPick cat, dog or wild animal and a 23M-parameter diffusion model with self-attention, written by hand in WGSL, draws a 64×64 face on your GPU, showing each denoising step: 0.4 s for 24 steps on a Mac. Trained on AFHQv2; a face model trained on CelebA follows
wgsl-image-diffusion
Texture DiffusionPick a texture class and an 8.4M-parameter diffusion model, written by hand in WGSL, dreams a seamless tile of it on your GPU and repeats it across the screen: 0.4 s at 128×128 and 3.7 s at 512×512 on a Mac, 47 classes from the Describable Textures Dataset
wgsl-diffusion
Texture CollageDrop in a picture: it is cut into colour regions and each is filled with a texture (marbled, woven, cracked…) that a small diffusion model dreams on your GPU, picked to match the region's pattern and recoloured to it. Pick textures per region and export the collage
web · diffusion · manifest_q8 · weights_q8
texture-collage
Splat CollageThe texture collage as one WGSL shader with no image pixels: each region of your picture is filled with a texture of 512 splats from a small diffusion model, recoloured to the region, and region edges stay smooth at any zoom. Export it as a single WGSL or HTML file; a 1024 px frame draws in about 3 ms on a Mac
index · app · worker · splatcollage · classes · bank · bank_meta · og · collage · sample · splatdiff · manifest · weights
texture-collage
Decision Spike CreatorDefine a decision as questions with fixed options, label cases, and train a 0.5 MB specialist for a 10 MB Ettin-17m decision model on your GPU; it loads into the Spiky Ball Decider unchanged
web · train · spec · kernels · nce
decider-lora-creator
Bluesky Account DeciderType a Bluesky handle: a 10 MB model on your GPU reads its latest posts and says human, bot, organization or feed, how much it posts about AI, in what role and with what attitude. Taught by Claude Sonnet
bsky-account-decider
Spiky Ball DeciderPaste a bank transaction, an email or a review: a router picks one of three 0.5 MB specialists on a shared 11 MB model on your GPU, or says none fits, and a memory of your corrections learns how you file things (mark five Amazon charges as household and the sixth follows)
adapter-library
Browser DeciderA 10 MB decision model on your GPU: give it a support thread, an invoice, an alert or an agent log and typed questions, and it returns a probability for every option in about 20 ms. Trained on four workflows, weak on anything else
browser-decider
WGSL Forge GalleryShaders compiled from SVG files and Python scenes, minified and running live: each one computes every shape's distance at each pixel, so it stays sharp at any zoom
wgsl-forge
Images as ShadersSix photographs, each stored as one WGSL shader of 1,024 soft ellipses that paints itself in, coarse to fine, beside AVIF and WebP files of the same size. As compression it loses: AVIF scores 3.9 to 6.8 dB higher. You can fit your own image on your GPU, up to 8,192 ellipses, and zoom in: the shader stays smooth while the image files show their pixels
image-to-wgsl
Force Touch ProbeWhat a phone browser reports about how hard a thumb presses: pressure, contact size and the phone's own motion, sent live to an observing Claude session
force-touch
Tilt Rally (moved)Moved to austegard.com/games/tilt-rally/; this address redirects there
tilt-racer
Pulse From VideoEulerian video magnification on the GPU: the camera's colour changes at heart-rate frequencies, amplified 60 times so the flush of blood in your face shows, with a heart-rate estimate and how much auto-exposure is faking it. A curiosity, not a medical device
pulse-video
Camera ResonatorMove in front of the camera to strike a virtual steel plate or a row of bells where the motion is; thousands of modes summed on the GPU per 10 ms block, with dropouts and latency on screen
camera-resonator
Paper DrumDraw a drum on paper and tap it: the camera finds your fingertip, the microphone hears the tap, and the GPU rings a drum skin with the shape you drew
paper-drum
Room DrumEdges in the camera image become the walls of a drum skin that the GPU steps once per audio sample; tap or move inside a shape to hear how a drum of that outline rings
room-drum
Like Poll ↗Bluesky poll builder: sign in, type a question and options, and it posts a thread people vote on with likes; the counter drops anyone who liked more than one option
bsky-like-poll
Lantern Eel ↗Snake in the deep sea, steered by tilt: the light fades with depth until only the eel's lure shows the way; lanternfish flee, jellyfish rise, pearls let you phase. Installable PWA
lantern-eel
Scoop ↗Minesweeper with dog poop: sweep the long grass, bag the heaps, and step in one to set off the whole lawn. A WebGPU reskin of Sounding. Installable PWA
scoop
Sounding ↗Minesweeper drawn by one WebGPU fragment shader: sonar pings, rippling flood openings, glowing beacons, and a chain detonation with a shockwave and GPU particles. Installable PWA
sounding
Plumb ↗Falling blocks for the phone: tilt to steer, tip to drop faster, jab to hard-drop, shake to hold; SVG well over a WebGPU dust field that pools under real gravity. Installable PWA
plumb
Raking Light ↗Relights flat SVG on the GPU: paint order becomes a heightfield, compute passes add bevels and ambient occlusion, and Kelvin lights cast soft ray-marched shadows
raking-light
RefractometerSweeps WebGPU kernel configurations on your GPU, checks each against a JS reference, and saves the fastest per adapter with the performance cliffs around it
refractometer
Two PrismsFive-band spectral audio processor in one WGSL dispatch: FFT, per-band compressor, gate, freeze and mute, inverse FFT, with a live waterfall and the GPU round trip measured against the block length
prism-audio
Bit-Plane Dispersion ScanExact int8 top-K search in WebGPU that reads the corpus one bit plane at a time and prunes candidates with provable bounds; compares results, survivor counts and bytes read against brute force
bitplane-scan
Self-painting SVGAny picture becomes one SVG that sketches itself in charcoal, paints itself in and falls apart; built in the page, no JavaScript in the output
svg-timeline
Starry Night, painting itselfA traced Starry Night sketched, painted, taken to night and dawn, then dismantled on a 48 s loop: one SVG, CSS keyframes from a small timeline compiler, no JavaScript
svg-timeline
Live camera taggerPoint your phone camera at something: MobileCLIP-S0 on WebGPU tags each frame against 4,585 tags embedded ahead of time, with no text model in the page
live-tagger
Image to SVG in the browserimage-to-svg ported to the page: k-means in WGSL (JavaScript fallback), pixel-edge tracing and image-to-svg 1.9.0's compact output, all client-side
svg-in-browser
Warhol palette cycleOne traced cat drawn four times, cycling four palettes with @property colors and offset keyframes; 72 KB, no JavaScript
svg-palette-cycle
Navier–Stokes term by termInteractive WebGPU explainer: the four terms, Reynolds number, vortex stretching, the Beale–Kato–Majda criterion and the 2026 forced blowup results
navier-stokes-explainer
EmbeddingGemma 2 search on WebGPUEmbeddingGemma 2 q4 in the browser, with 2-bit remex codes and the corpus scan in WebGPU kernels on onnxruntime-web's own device
embeddinggemma2-webgpu-tail
EG2 query encoder in hand-written WGSLBench: the 4-layer EmbeddingGemma 2 query encoder run by a custom WebGPU engine against onnxruntime-web (WebGPU and wasm) on the same 25 MB model file
eg2-wgsl-engine
EG2 training targets on WebGPUEmbeds 110,605 query-shaped texts with EmbeddingGemma 2 on the browser's GPU and saves int8 shards, the training targets for a small query encoder distilled into EG2's space
eg2-query-student
Delegation skill map14 agent and delegation skills compared: frontmatter, boundaries, a decision path and cut candidates
delegation-skill-map
The Second Sky ↗140 constellations of an invented people, drawn on the real stars by 1,843 Haiku calls
second-sky
Latent CalculatorA frozen SmolLM2-135M doing arithmetic through a calculator wired between its layers, in the browser
latent-calculator
Latent Calculator demoExplainer page: how the operands are read from layer 16 and the result written back
latent-calculator
In-browser taxonomy classifiergte-small snaps free text onto Wayfair's 860 WANDS product classes, with no server
hypothetical-classification
Snooker Break SimulatorBreak simulator: the traditional apex strike against Murphy's third-red break
snooker-break
Procedural LionA cartoon lion rebuilt procedurally in three.js, with about 3,000 swept-tube hair strands
threejs-lion
Geezer GoonAnimated music video for the Wednesday-ride song, driven by the ride's real Strava data
geezer-goon-video
Strudel FM, before and afterThe Strudel FM lead before and after its melody rewrite, with seeded variants
before · after · before-seeded · after-seeded
strudel-fm-melody
A Growth Race for Erdős–GyárfásResearch note with partial results on an open problem in graph theory
erdos-gyarfas
KB Packer ↗Build a portable knowledgebase skill in the browser
kb-packer-web
X-ray glasses ↗Point the camera at a person, cat or dog: MediaPipe Pose or RTMPose (AP-10K) finds the joints and a WebGPU shader draws a fitted skeleton over a radiograph view of the feed, all on the device
xray-glasses
GPU BridgeRuns WebGPU jobs that Claude Code sessions push to a private GitHub repo on this machine's GPU, commits the results back and wakes the session
gpu-bridge
Voice LoopTalk to a small language model running in the page on hand-written WebGPU engines: LFM2.5 350M (phones) or LFM3 1.7B at 4 bits (laptops), the device's dictation in and its voices out, with prefill time and tokens per second on screen
web · lfm · manifest · manifest3 · lfm3 · runtime · kernels
voice-loop
DOOM ArenaThe TRM bot plays gPu(doom) on this device's GPU, level after level, restarting a level that stops making progress, and ships a log of every attempt back to the Claude session through the GPU-bridge repo
trm-doom
Experiments AtlasA clustered mind map of every experiment in this repo: 217 experiments in 12 themed clusters, with search, fold and unfold per cluster, and a link to each directory
experiments-atlas
Browser NERNamed-entity recognition for entity types you type yourself, on your GPU: a 40 MB packed GLiNER marks people, companies, places or anything else you name in a text, or tags and groups a Bluesky account's posts by the entities in them
gliner-browser
Kokoro in the browserKokoro-82M text-to-speech on onnxruntime-web with every word timed: an 88 MB model (int8 vocoder, fp16 where durations and pitch are set) that matches PyTorch's word times exactly, highlighting each word as it is spoken
kokoro-web
tiny-voca Voice TunerDesign your own voice for tiny-voca, a 4.5M-parameter text-to-speech model, hear it in your browser, make it sing lyrics to notes you write, and save it as a 4 KB voice file that plays in your own pages (tinyvoca.js) or Python scripts
tiny-voca-voices