← All projects
How this website is built
A glass box you can open, rendered live in the browser. The stack, the tricks and the options that didn't make it.
November 18, 2026three.jsAstroWebGL

The site’s idea is the channel’s line: AI is a black box. We make it glass. So the first thing you see is a real 3D box that starts glossy black and turns into clear glass, with a small neural network inside it carrying pulses of light.
The stack
- Astro builds every page ahead of time into plain HTML, so the site is fast and needs no server.
- three.js r187 draws the box in WebGL. It only loads on the home page.
- The video list is built from the channel’s own upload data plus its public YouTube feed, so new uploads show up without editing the site.
The glass box
- A studio made of light strips. Clear glass on black is invisible unless something bright reflects in it. The box sits in a tiny invisible “studio” of glowing strips that only exists to be reflected. When the box opens, a strip sweeps across it like a camera flash.
- Real refraction. The glass is a physical material with transmission, thickness and dispersion, so the network inside bends and splits into faint rainbow edges at the box’s edges.
- Light pulses. Each connection in the network is a line with a moving “comet” of light: a bright head with a fading tail, computed per pixel on the graphics card. Glow is added only to what is brighter than white, so the rest of the scene stays crisp.
- Click the box and the lights stay on until you click again.
Options that didn’t make it
We tried a version where the network’s front layer draws a smiling face (B below). It looked good, but the network (A) won.

The rest of the page
- Circuit traces between sections: copper paths drawn at 0, 45 and 90 degrees with light running along them.
- HUD text that resolves from random glyphs into words, and numbers that count up when they scroll into view.
- Short previews: a 6-second muted loop plays when you hover a Short (or scroll it into view on a phone).
- The token playground shows the idea of tokens with a simple splitting rule. Real tokenizers learn their pieces from data; the page says so.
- Accessibility: everything works with the keyboard, and with “reduce motion” switched on the page stops animating.