Interactive Lab
Small experiments I build for myself: sound made from oscillators, shaders, type that follows the cursor. No tickets and no deadlines.
The problem
Production work optimises for shipping. The lab optimises for feel: what happens when the only constraint is the browser itself.
Every experiment here started as a question I could not answer inside a sprint. How light can a sound system be? How much personality can type carry before it stops being readable? What does a cursor feel like when the interface pushes back?
The constraint is deliberate: no audio files, no image assets, nothing downloaded that the browser can make itself. Everything runs on shaders, the Web Audio API, variable fonts and plain React.
- Browser-native only
- WebGL through Three.js, Web Audio, variable fonts and CSS. If the platform can do it, the platform does it.
- Reduced motion gets its own version
- Every experiment renders a meaningful static state when motion is off.
- Load on demand
- Each experiment is code-split so the lab never taxes the pages around it.
How it works
The sound palette is eighteen synthesized sounds built from oscillators, envelopes, filters and a single noise buffer. The particle field is tens of thousands of GPU points bending around the pointer. The lens is an analytic distortion shader. The kinetic type drives a variable font axis from cursor distance.
All of it shares one motion vocabulary: the same easings, the same durations, the same respect for the user's preferences.
- Framed canvases
- Each WebGL experiment in its own canvas, mounted only on its page.
- Shader subjects
- A particle field, a lens and instanced rocks, written in GLSL.
- Lab store
- The HTML controls and the scene read one small state object.
- Motion utilities
- One easing vocabulary for type, controls and entrances.
- Sound engine
- Eighteen sounds and a scale of notes from one audio graph, no files.
- Fallbacks
- Static states for reduced motion and for browsers without WebGL.
What shipped
What changed
The experiments feed production. The sound engine and the easing vocabulary used on this site both started here.
What I took from it
- Constraints make experiments legible. Pick two and keep them.
- The best demos are the ones that become production code.
- Feel is measurable: durations, easings and thresholds can be written down.