Skip to content
← Work log

A place to keep the experiments

After spending this long getting the components into the site, I wanted somewhere to go back and see what we actually have. The listing experiments were useful, but remembering a URL and a number isn't much of a component library. There's now a permanent local lab at /_lab, with search, family filters, the existing component examples, and a separate place for compositions we've kept and experiments we're still working through.

The preview gets the full width of the page, and only one example runs at a time. Its preset, theme, viewport width and sample text go into the URL, so I can bookmark a particular version and come back to it. The fuzzy type, focal plane and a few other components have some saved variations to start from.

I also wanted it kept out of the built site. Excluding a page from prerendering would still leave its route and JavaScript in the production app, so the production build now uses a separate route tree that leaves the lab out altogether. That also takes out the older specimen, parity and listing previews. A build guard checks that their modules haven't slipped back in. The actual components still ship wherever the site uses them — the playground stays local.

rebuild
AI-OMETER— DISCLOSURE INDEX
MACHINE-LED80%