lukezhang.si/lab

The Lab

Some ideas can't be explained in paragraphs — you have to touch them. Interactive explainers, visualizers, and playgrounds. Everything here runs in your browser. Poke it.

Fresh

Ghosts of Departed Proofs

October 2026 · typescript · security · interactive

Can the TypeScript compiler catch your authorization bugs? An interactive tour of gdp-ts — name it, prove it, demand it. Includes a "try to break it" compiler playground.

Enter →

o200k from scratch: try the tokenizer

October 2026 · ai · tokenizers · interactive

GPT-4o's tokenizer rebuilt from zero — byte-identical to tiktoken. The real thing runs in your browser: type anything, watch it tokenize, then browse 50 examples.

Try it →

SPF 30 vs 50 vs 60: the number is the least interesting part

October 2026 · skincare · sunscreen · interactive

What SPF actually measures, the blocked-% math, why how much you apply beats the number — with four interactive visualizers. Verdict: 30 daily, 50 beach, 60 marketing.

See why →

Looking for the day-by-day build timeline? That's the build log — it lives with the writing.