The blocks pyreon.dev is made of.
Every component in src/site/kit, in its variants and states, rendered by the kit itself. Toggle the theme in the bar to see both; the two panels at the end force one theme each.
theme.ts → color (this theme)
Stack: gap 100 · 250 · 400; alignX block (default) · left · center
Cluster: gap 75 · 150 · 275; alignX left · center · spaceBetween; nowrap; tag ul
- ul
- li
- no bullets
Box: pad 200 · padX 500 padY 150 · pad { xs: 150, md: 400 }
Grid: columns { xs: 1, md: 3 } · { xs: 2, lg: 6 }, gap 150
- one
- two
- three
- four
- five
- six
AutoGrid: min 200 · cols 3 (colsBelow 1) · cols 4 colsBelow 2
Wrap: the page column (this gallery sits in one); nested, it adds its gutters
Text: variant mono · label · caption · small · body; tone; leading; block; anywhere
Visible: from split · below split · from md · below md (resize to see them swap)
Icon: decorative (aria-hidden; 16 · 24) · named (aria-label)
Badge: tone win · tie · split · loss · info · experimental; size md · sm; placement after · before; bare
A name with its markernext release
withdrawnA status word that leads a line takes the badge lettering without the pill.
Tag: static md · sm; link md · sm (one anchor, hover, focus ring); tag li
- signal
- computed
- effect
Text: variant caveat · badge; tone ok · warn · err; medium
Note: size caveat · mono · caption · ui · small; tone fog · mist; measure; tag figcaption
caveat: one run · M3 Max · record of 2026-11-05
mono: one run · M3 Max · record of 2026-11-05
caption: one run · M3 Max · record of 2026-11-05
ui: one run · M3 Max · record of 2026-11-05
small: one run · M3 Max · record of 2026-11-05
small · mist: a figure's caption at reading size.
measure: a caveat under a full-width block stops at the note measure, so a long line never runs the width of the page. The rest of this sentence is here only to reach that measure on a wide screen.
StatBody: size product · hero · Numeral inline · PackageName block (strip and band are above)
4× a numeral inside a line of copy
Eyebrow · Heading · Lede · Code · StatusDot · Badge sm
Heading section
Heading cardnext release
Lede section with inline code, ok, warn and err dots.
Lede card with signal(0) and a dot.
Pill · InstallCommand · Tag · Segmented
bun add @pyreon/form npm create @pyreon/zero@latest GlowCard · PackageCard · ProductTag · Glyph
A hot card
The first card in a set carries the ember glow.
A default card
Gradient edge, inner sheen.
A card that is a link
The whole card is one link.
Fine-grained DOM updates and hydration.
FactList
- re-renders
- 0 per 10 keystrokesFormik: 10. Fields update in place.
- schemas
- Zod, Valibot, ArkType,
sPassed straight toschema. No resolver package. - accessibility
- built into
register()id,aria-invalid,aria-describedby; focus jumps to the first error. - native
- iOS and Android, experimental
useFormanduseFieldArraycompile to native form state.
NumberedCards
A keystroke touches one field
Value, error, touched and dirty are four separate signals per field. Typing in
emailupdates the email input and its error text; the password field, the submit button and the other ten fields stay put. Formik re-renders its whole form 10 times for 10 keystrokes; this does 0.Async checks can't race
Async validators are versioned and receive an
AbortSignal. When the user types faster than your server answers, the late answer is dropped instead of overwriting the newer one.debounceMs: 300cuts the requests too.Your schema, as it is
Hand
schemaa raw Zod, Valibot or ArkType schema, or@pyreon/validate'ss. No resolver package. An error onaddress.citylands on theaddress.cityfield, and a key that matches no field fails the form instead of vanishing.Accessible by default
One
register('email')spread gives the input an id,aria-invalidandaria-describedbythat follow the error. A failed submit moves focus to the first broken field, like React Hook Form'sshouldFocusError.
StepCards
- step 1
Write it once
One
.tsxfile. - step 2
Build the web
SSG, SSR or SPA per route.
- step 3
Compile the apps
SwiftUI and Compose (experimental).
BeforeAfter · CodeCard (build-time highlighting)
A ref to drop stale answers, a timer to debounce, an effect with a dependency array. Per async field.
import { useEffect, useRef, useState } from 'react'
function EmailField() {
const [email, setEmail] = useState('')
const [error, setError] = useState<string>()
const latest = useRef(0)
useEffect(() => {
const id = ++latest.current
const t = setTimeout(async () => {
const taken = await checkEmail(email)
if (id === latest.current) setError(taken ? 'Already registered' : undefined)
}, 300)
return () => clearTimeout(t)
}, [email])
return (
<>
<input value={email} onChange={(e) => setEmail(e.target.value)} />
{error && <span>{error}</span>}
</>
)
}Declare the check. Debounce, stale-result discarding and the abort signal are built in.
import { useForm } from '@pyreon/form'
const form = useForm({
initialValues: { email: '', password: '' },
validators: {
email: async (v, _all, signal) =>
(await checkEmail(v, signal)) ? 'Already registered' : undefined,
password: (v) => (v.length < 8 ? 'At least 8 characters' : undefined),
},
validateOn: 'change',
debounceMs: 300,
onSubmit: (values) => api.signup(values),
})Falls back to the theme foreground.
const count = signal(0)
count.set(1)CodeDiff (C2)
- removed: const [count, setCount] = useState(0)
- added: const count = signal(0)
- removed: const double = useMemo(() => count * 2, [count])
- added: const double = computed(() => count() * 2)
- return <p>{double()}</p>
Your component runs once. Nothing to memoise.
ProofBand (C1)
Same app. Less code shipped, less work done.
- 4× less JavaScript than React 19 for the same app17.2 KB vs 69.6 KB gzipsame app, gzip -9
- 2.6× faster than React 19 creating 10,000 rows72.6 ms vs 192.0 msreal Chromium, row board
- 1.94–1.95× faster batching of 50 signals than Preact Signals456 ns vs 888 nsfinal pass, two runs
synthetic · author-run · M3 Max · record of 2026-11-05
Every result, including where we lose →StatRow
- create 10,000 rows
- 72.6 ms
- clear them
- 0.13 ms
- whole app, gzip
- 17.2 KB
- MCP tools
- 24
StatCard: with its chart (the note shows once, in the chart's footnote) · without a chart
faster charts than ECharts 6
mount 100,000 points; 2.5–8.7× on four operationsfaster charts than ECharts 6
mount 100,000 points; 2.5–8.7× on four operationsone runNumeral: default · long · strip · card
StatBody: band (the parts sit on the surface that holds them)
PackageName
@pyreon/chartsBadge: win · tie · split · loss · info
VerdictChip · CompareBars · BenchmarkTable · CaveatLine
- effect propagation (100)1,407 ns2,874 nswin2.04–2.13× vs Preact
- batch 50 signals456 ns888 nswin1.94–1.95× vs Preact
- computed diamond (100 updates)4,424 ns5,761 nswin1.30–1.31× vs Preact
- wide fan-out (1 → 100 effects)1,651 ns1,602 nslossPreact 1.03–1.04× ahead
- deep chain (depth 50)107,237 ns75,639 nslossPreact 1.42–1.43× ahead
- signal create + read + write63 ns13 nslossPreact 4.8× ahead
- create 10,000 rows (vs React 19)72.64 ms192.01 mssplit2.6× vs React 19; vs the fastest rivals a split: tie in one run, 1.02× in the other
- clear 1,000 rows130 µs145 µswin1.11–1.12× vs Vue 3.6 Vapor, the fastest rival
synthetic · author-run · one run · M3 Max · record of 2026-11-05
Every result, including where we lose →FeatureList · ApiGroups · LimitNote · Faq
- Typed from one declaration
useForm({ initialValues, validators })infers the value type of every field, validator anduseField('name')read frominitialValues. - Validate on blur, change or submit
validateOndefaults to'blur', so nobody is told off mid-word. - Async validators with
debounceMs, anAbortSignal, and stale results discarded by version. - Cross-field rules every validator gets
(value, allValues), so "must differ from email" is one line.
- useForm
- field
- useFieldArray
- useField
- useWatch
- useFormState
Validation waits for blur
That is the default, so people aren't corrected mid-word. For live feedback set validateOn: 'change' and add debounceMs if a validator calls your server.
Key array rows by item.key
Each useFieldArray item carries a stable key. Use it in <For by>; an index key makes inputs lose focus when rows move.
Is the benchmark measuring the form library or the framework?
Both, on purpose. Each library runs in its own framework, written the way its docs recommend, with one shared Zod schema, in real Chromium. That is the cost you ship. It is one overnight run on one machine and we wrote the bench, so the harness is in the repo: cd examples/form-bench && bun bench-form.ts.
Do I need an adapter for Zod?
No. Any Standard Schema (Zod 3.24+, Valibot 1+, ArkType 2+, @pyreon/validate) goes straight into schema. The zodSchema() adapters in @pyreon/validation remain for when you want them.
Pill (button) · Segmented · DemoSurface · Meters: live, one island (KitScope)
Clicked 0 times.
- count0
- segmentweb
Picture · Poster · Loop · AnimatedSvg · shareImage (the asset set, kit/media.tsx)





shareImage('/') → https://pyreon.dev/media/og/home.png (1200×630)
QuoteBlock (C4)
Components run once. What you write in the body runs once, and only the expressions that read a signal update.
A tie is a tie.
Reveal
This card fades up the first time it scrolls into view (instant under reduced motion).
Both themes, forced
Components run once.
Every token from theme.ts resolves through one CSS variable per mode pair.
npm create @pyreon/zero@latest Components run once.
Every token from theme.ts resolves through one CSS variable per mode pair.
npm create @pyreon/zero@latest Your component runs once. Ever.
The hook hero: one bold line, one word in the display gradient with its underline sweep, the hot install command and status dots.
npm create @pyreon/zero@latest - MIT, no strings
- iOS and Android: experimental
Start building in one line.
EndCTA (C6): the closing call to action, centred on a punch surface.
npm create @pyreon/zero@latest Want the apps from day one? npm create @pyreon/multiplatform@latest