Skip to content
brand · kit

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)

bg
card
raised
line
line2
text
strong
mist
fog
accent
accentText
link
prompt
ok
warn
err

Stack: gap 100 · 250 · 400; alignX block (default) · left · center

onetwothree
onetwothree
onetwothree

Cluster: gap 75 · 150 · 275; alignX left · center · spaceBetween; nowrap; tag ul

onetwothreefourfivesix
onetwothreefourfivesix
onetwothreefour
onetwothree
  • ul
  • li
  • no bullets

Box: pad 200 · padX 500 padY 150 · pad { xs: 150, md: 400 }

one
one
one

Grid: columns { xs: 1, md: 3 } · { xs: 2, lg: 6 }, gap 150

one
two
three
  • one
  • two
  • three
  • four
  • five
  • six

AutoGrid: min 200 · cols 3 (colsBelow 1) · cols 4 colsBelow 2

one
two
three
four
five
six
one
two
three
one
two
three
four

Wrap: the page column (this gallery sits in one); nested, it adds its gutters

The column is layout.maxWidth wide with layout.gutter at each side.

Text: variant mono · label · caption · small · body; tone; leading; block; anywhere

monolabelcaptionsmallbody
fogmisttextstrongaccentaccentText
leading flat: two lines of caption text to show the line height.leading normal: two lines of caption text to show the line height.leading detail: two lines of caption text to show the line height.leading relaxed: two lines of caption text to show the line height.leading loose: two lines of caption text to show the line height.
@pyreon/a-very-long-package-name-that-breaks-anywhere-instead-of-overflowing

Visible: from split · below split · from md · below md (resize to see them swap)

from split (≥ 700px)
below split (< 700px)
from md (≥ 768px)
below md (< 768px)

Icon: decorative (aria-hidden; 16 · 24) · named (aria-label)

Badge: tone win · tie · split · loss · info · experimental; size md · sm; placement after · before; bare

wintiesplitlossinfoexperimental
wintiesplitlossinfoexperimental

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

useFormuseFieldjump to a pageForms
  • signal
  • computed
  • effect

Text: variant caveat · badge; tone ok · warn · err; medium

one run · M3 Max · record of 2026-11-05
DoCarefulDon'tHow it works

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)

@pyreon/charts
8.7× a product card's proof lineone run · M3 Max · record of 2026-11-05
2.6× the benchmarks hero's statone run · M3 Max · record of 2026-11-05

4× a numeral inside a line of copy

Eyebrow · Heading · Lede · Code · StatusDot · Badge sm

eyebrow default
eyebrow accent

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
useFormuseFieldFormProvider

GlowCard · PackageCard · ProductTag · Glyph

01 · hot

A hot card

The first card in a set carries the ember glow.

02 · default

A default card

Gradient edge, inner sheen.

03 · link

A card that is a link

The whole card is one link.

@pyreon/runtime-dom
browser

Fine-grained DOM updates and hydration.

@pyreon/form
fundamentals · forms
@pyreon/reactivity
core · signals

FactList

re-renders
0 per 10 keystrokesFormik: 10. Fields update in place.
schemas
Zod, Valibot, ArkType, sPassed straight to schema. No resolver package.
accessibility
built into register()id, aria-invalid, aria-describedby; focus jumps to the first error.
native
iOS and Android, experimentaluseForm and useFieldArray compile to native form state.

NumberedCards

  1. A keystroke touches one field

    Value, error, touched and dirty are four separate signals per field. Typing in email updates 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.

  2. 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: 300 cuts the requests too.

  3. Your schema, as it is

    Hand schema a raw Zod, Valibot or ArkType schema, or @pyreon/validate's s. No resolver package. An error on address.city lands on the address.city field, and a key that matches no field fails the form instead of vanishing.

  4. Accessible by default

    One register('email') spread gives the input an id, aria-invalid and aria-describedby that follow the error. A failed submit moves focus to the first broken field, like React Hook Form's shouldFocusError.

StepCards

  1. step 1

    Write it once

    One .tsx file.

  2. step 2

    Build the web

    SSG, SSR or SPA per route.

  3. step 3

    Compile the apps

    SwiftUI and Compose (experimental).

BeforeAfter · CodeCard (build-time highlighting)

React, an async check by hand

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>}
    </>
  )
}
with @pyreon/form

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),
})
plain code (no build-time html)

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

8.7×

faster charts than ECharts 6

mount 100,000 points; 2.5–8.7× on four operations
8.7×

faster charts than ECharts 6

mount 100,000 points; 2.5–8.7× on four operationsone run

Numeral: default · long · strip · card

4×1.94–1.95×8.7×2.6×

StatBody: band (the parts sit on the surface that holds them)

8.7× faster charts than ECharts 6mount 100,000 points; 2.5–8.7× on four operationsone run

PackageName

@pyreon/charts

Badge: win · tie · split · loss · info

wintiesplitlossmeasured

VerdictChip · CompareBars · BenchmarkTable · CaveatLine

wintiesplitlossmeasured
456 ns
888 ns
vs Preact Signals and Solid · V8 (Node 26), Pyreon bundled · plus the 10-framework row boardPyreonrival · lower is better
  • effect propagation (100)
    1,407 ns
    2,874 ns
    win2.04–2.13× vs Preact
  • batch 50 signals
    456 ns
    888 ns
    win1.94–1.95× vs Preact
  • computed diamond (100 updates)
    4,424 ns
    5,761 ns
    win1.30–1.31× vs Preact
  • wide fan-out (1 → 100 effects)
    1,651 ns
    1,602 ns
    lossPreact 1.03–1.04× ahead
  • deep chain (depth 50)
    107,237 ns
    75,639 ns
    lossPreact 1.42–1.43× ahead
  • signal create + read + write
    63 ns
    13 ns
    lossPreact 4.8× ahead
  • create 10,000 rows (vs React 19)
    72.64 ms
    192.01 ms
    split2.6× vs React 19; vs the fastest rivals a split: tie in one run, 1.02× in the other
  • clear 1,000 rows
    130 µs
    145 µs
    win1.11–1.12× vs Vue 3.6 Vapor, the fastest rival
Apple M3 Max · record of 2026-11-05 · final pass, two runs · author-run, syntheticFull method, every loss →

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 and useField('name') read from initialValues.
  • Validate on blur, change or submit validateOn defaults to 'blur', so nobody is told off mid-word.
  • Async validators with debounceMs, an AbortSignal, and stale results discarded by version.
  • Cross-field rules every validator gets (value, allValues), so "must differ from email" is one line.
create · 3
  • useForm
  • field
  • useFieldArray
read · 3
  • 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)

Example admin dashboard: four KPI cards, an area chart of revenue over 14 days and a bar chart of revenue by category, built with Pyreon query, charts and coolgrid.Side by side on each click: in the re-render model Counter, Label and Hint run again and are diffed; in Pyreon only the one text node in the button is written.Side by side on each click: in the re-render model Counter, Label and Hint run again and are diffed; in Pyreon only the one text node in the button is written.
The same todo app, Today, running in a browser, in an iOS Simulator and in an Android emulator. A todo is added, one is marked done and one is removed, in step on all three.The same todo app, Today, running in a browser, in an iOS Simulator and in an Android emulator. A todo is added, one is marked done and one is removed, in step on all three.
404: signal not found A graph path from a source node breaks in the middle; where the target should be there is an ember dashed ring with a question mark. ? source missing you 404 · SIGNAL NOT FOUND

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.
Pyreon docs
A tie is a tie.
Pyreon benchmark record

Reveal

This card fades up the first time it scrolls into view (instant under reduced motion).

Both themes, forced

forced dark

Components run once.

Every token from theme.ts resolves through one CSS variable per mode pair.

wintielosssignal()
npm create @pyreon/zero@latest
forced light

Components run once.

Every token from theme.ts resolves through one CSS variable per mode pair.

wintielosssignal()
npm create @pyreon/zero@latest
HookHero (C3)

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

Start building in one line.

EndCTA (C6): the closing call to action, centred on a punch surface.

npm create @pyreon/zero@latest
Follow the tutorial

Want the apps from day one? npm create @pyreon/multiplatform@latest