Components
Everything on this site, installable
The site is built from these, so what you install is what you are looking at. Every preview below is the real component running, not a picture of one.
Add the registry once
export CTA_REGISTRY=https://adamjurek.com/r/registry.jsonTheme Toggle
Page structure
No dependencies
A segmented control that reports which option was pressed and knows nothing about themes. Roving focus, and `aria-checked` is the selector that draws it.
Preview: Three icons in a well, one lit
useDeskState
Overlays
No dependencies
Which windows are open, where they sit and what has been put away, remembered without breaking a server render.
Preview: No UI - it remembers where you left things
useDeviceKind
Scenes
No dependencies
Which machine the stylesheet is currently drawing, as a value. Null until mounted, on purpose - a default would be a claim the server cannot support.
Preview: No UI - it names the machine you are looking at
Clock
Rendering
No dependencies
The reader's own day and time, in the reader's own zone, without asking anybody for a location.
Preview: A weekday and a local time, ticking
Code Block
Rendering
@tanstack/highlight
A highlighted code slab with the CLI's colours, a lit top edge, and a copy button that confirms in place.
Preview: Highlighted code with a copy button
Markdown View
Rendering
@tanstack/markdown
Renders Markdown with callouts, CSS-only tabs, custom blocks and highlighted code.
Preview: Markdown with callouts, tabs and highlighted code