durian-hypermediaStyle

All fixtures · The folder parts (generated from src/parts/*/sample.md) · parts/samples.dh.md

1 problem(s) parse() reported
Source
---
title: The folder parts
---
<!-- generated by scripts/parts.ts from the folders under src/parts/: do not edit -->

# The folder parts

Every part that lives in its own folder, with its sample. The Format page shows each as source, drawing and LLM view.

## Audio

An audio part is a player of our own. The wave is drawn from a small peaks file and moves with the sound; chapters split it, a marker flags one moment, and the transcript follows the voice.

```audio src="media/talk.mp3" title="A page that talks" duration=0:57 wave=bars skip=10 transcript=open
peaks: media/talk.peaks.json
chapter 0:00 Welcome
chapter 0:24 The transcript
chapter 0:38 The marker
marker 0:38 Where the example crashed [bad]
0:00 Ana: Welcome back. Today we look at a page that can talk.
0:04 Ben: A page that talks. Do you mean the audio part?
0:08 Ana: Yes. You write one fence, with a file, a title, and a few lines of transcript.
0:14 Ben: And the reader sees a wave that moves while the voice plays.
0:18 Ana: The wave is drawn from a small peaks file, so it appears before the sound starts.
0:24 Ben: What about people who cannot listen right now?
0:27 Ana: The transcript follows the voice. Tap a line, and the player jumps there.
0:33 Ben: Chapters split the wave into parts, and a marker flags one moment.
0:38 Ana: Here is the marker. This is where the example crashed.
0:42 Ben: And a language model reads the same page as plain text.
0:46 Ana: It gets the title, the chapters, and the transcript, never a picture of a wave.
0:52 Ben: That is the whole part. Press play, and listen again.
```

`wave=mirror` reflects the wave, `wave=dots` draws it in dots, `wave=live` shows a window of the sound that scrolls past "now", and `compact` makes one row. The colour is a word (`tone=c4`), never a hex value.

```audio src="media/talk.mp3" title="Mirror wave, in family colour 4" wave=mirror tone=c4 height=s duration=0:57
peaks: media/talk.peaks.json
```

```audio src="media/talk.mp3" title="Compact" compact wave=line duration=0:57
peaks: media/talk.peaks.json
```

## Calendar

The host supplies no clock here: Today returns to the authored date. Explore the views, switch calendars and open events. A narrow part starts with three days.

```calendar title="Release week" tz=Europe/London date=2026-11-23 view=week hours=08-18
calendar team "Team" [c2]
2026-11-23 09:00-09:20 Stand-up in team every weekday times=5
2026-11-24 10:00-11:30 Design review @ Studio in team note="Bring the mock-ups"
2026-11-24 10:30-11:00 Review notes in team
2026-11-25 all day Code freeze [warn]
2026-11-26 18:00-19:00 Sydney call tz=Australia/Sydney
```

The static form keeps a complete dated list without controls.

```calendar title="Release checklist" tz=Europe/London date=2026-11-23 static
calendar team "Team" [c2]
2026-11-23 09:00-09:20 Stand-up in team every weekday times=3
2026-11-25 all day Code freeze [warn]
```

## Chart kinds

Eight more kinds of a `chart`, each a YAML map with `kind:` at the top: raw values are counted, quartiled or smoothed when the page is built, so a model reads the table. Hover, tap or focus a bin, box, stage, block or day for its card; the arrow keys walk the data.

```chart
kind: histogram
title: How long a request takes
x: { label: latency, format: duration-ms }
y: { label: requests }
bins: 12
marks: [p50, p95]
data: [74, 88, 109, 110, 86, 88, 122, 87, 132, 140, 93, 50, 99, 127, 56, 69, 80, 114, 67, 66, 89, 95, 125, 102, 120, 73, 91, 107, 42, 78, 75, 99, 155, 115, 25, 54, 113, 82, 84, 85, 94, 121, 168, 191]
```

```chart
kind: boxplot
title: Checkout time by day
x: { label: day, values: [Mon, Tue, Wed] }
y: { label: seconds to pay, format: duration }
tone: c4
data:
  - [120, 100, 121, 110, 106, 125, 169, 146, 134, 102, 132, 128, 114, 152]
  - [173, 121, 152, 144, 132, 143, 153, 117, 130, 134, 146, 176, 149, 166]
  - [118, 116, 162, 140, 161, 166, 136, 170, 158, 138, 126, 160, 154, 260]
```

```chart
kind: violin
title: Response time by service
x: { label: service, values: [api, search, checkout] }
y: { label: response, format: duration-ms }
tone: c2
data:
  - [57, 69, 117, 111, 105, 83, 98, 105, 124, 101, 88, 102, 117, 83, 99, 101, 101, 99]
  - [141, 198, 207, 164, 144, 149, 163, 206, 121, 232, 154, 227, 237, 119, 174, 148, 195, 192]
  - [243, 242, 239, 262, 246, 212, 247, 222, 252, 201, 213, 203, 204, 248, 234, 261, 258, 213]
```

```chart
kind: funnel
title: From visit to paid
tone: c1
data:
  - [Visited the site, 48200]
  - [Created an account, 8700]
  - [Started a trial, 4100]
  - [Paid, 1350]
steps:
  - title: Last quarter.
  - title: After the shorter sign-up form.
    data:
      - [Visited the site, 49500]
      - [Created an account, 11300]
      - [Started a trial, 5200]
      - [Paid, 1720]
```

```chart
kind: waterfall
title: Monthly revenue bridge
x: { label: driver, values: [October, New, Churn, Refunds, Subtotal, Price rise, November] }
y: { label: revenue, format: money, currency: EUR }
data: [84000, 12500, -9100, -2300, "=", 4800, "="]
```

```chart
kind: treemap
title: Where the disk went
y: { label: disk use, format: bytes }
data:
  - name: Media
    children:
      - { name: Videos, value: 412000000000 }
      - { name: Photos, value: 186000000000 }
  - name: Code
    children:
      - { name: Repos, value: 86000000000 }
      - { name: Build cache, value: 88000000000 }
  - { name: Backups, value: 140000000000 }
```

```chart
kind: sunburst
title: Lines of code by team and area (thousands)
y: { label: lines of code }
data:
  - name: Platform
    children:
      - { name: Runtime, value: 93 }
      - { name: Storage, value: 66 }
  - name: Product
    children:
      - { name: Web, value: 95 }
      - { name: Mobile, value: 69 }
  - { name: Docs, value: 18 }
```

```chart
kind: calendar
title: Commits, September to November
y: { label: commits }
tone: good
from: 2026-09-01
to: 2026-11-30
data: [["2026-09-01", 7], ["2026-09-02", 6], ["2026-09-03", 5], ["2026-09-07", 4], ["2026-09-09", 2], ["2026-09-12", 2], ["2026-09-14", 4], ["2026-09-15", 10], ["2026-09-16", 1], ["2026-09-17", 3], ["2026-09-18", 5], ["2026-09-21", 8], ["2026-09-23", 9], ["2026-09-24", 5], ["2026-09-25", 3], ["2026-09-26", 2], ["2026-09-27", 1], ["2026-09-28", 9], ["2026-09-29", 8], ["2026-09-30", 7], ["2026-10-01", 8], ["2026-10-02", 9], ["2026-10-04", 1], ["2026-10-05", 5], ["2026-10-06", 9], ["2026-10-11", 2], ["2026-10-12", 9], ["2026-10-13", 9], ["2026-10-15", 5], ["2026-10-16", 6], ["2026-10-17", 1], ["2026-10-18", 1], ["2026-10-20", 8], ["2026-10-21", 3], ["2026-10-22", 6], ["2026-10-23", 6], ["2026-10-24", 1], ["2026-10-25", 1], ["2026-10-26", 2], ["2026-10-29", 7], ["2026-10-30", 7], ["2026-10-31", 1], ["2026-11-01", 0], ["2026-11-04", 4], ["2026-11-06", 5], ["2026-11-07", 0], ["2026-11-08", 0], ["2026-11-09", 2], ["2026-11-11", 2], ["2026-11-12", 6], ["2026-11-13", 8], ["2026-11-14", 2], ["2026-11-15", 0], ["2026-11-16", 8], ["2026-11-17", 6], ["2026-11-18", 3], ["2026-11-19", 1], ["2026-11-21", 2], ["2026-11-22", 2], ["2026-11-23", 3], ["2026-11-24", 8], ["2026-11-26", 7], ["2026-11-27", 10], ["2026-11-28", 0], ["2026-11-29", 1], ["2026-11-30", 7]]
```

Each kind takes `title`, `tone` where it makes sense, `y: { label, format, currency }` for the value axis (the histogram's is `x`), and `steps:` that change `data`, `marks` or `bins` from one step to the next.

## Compare

**A comparison matrix puts options side by side, one line for each thing you judge them on.** The first line names the options; every other line is a criterion and one value for each option, in the same order. A note in round brackets shows when a reader hovers, focuses or taps the value. With `winner=on` the best value of each yes/no, scored or good/bad row is marked; `pick=` flags the option you recommend.

```compare title="Which queue?" winner=on pick=Kafka
options: Redis Streams [c1], Kafka [c2], SQS [c3]
Ordering: yes, yes, partial (FIFO queues only)
Runs itself: no, no, yes
Throughput: 3, 5, 3 (score 1-5)
Latency (lower is better): 4 ms (in one region), 12 ms, 25 ms
Replay old messages: yes (until trimmed), yes (by offset), no
Cost at our size: good, bad, good (pay per request)
Team knows it: yes, partial (two people), yes
```

With `view=single`, a phone shows one option at a time, chosen from buttons. Here the values are plain words and good, warn and bad, so no row is marked as the best.

```compare title="Where to host the docs" view=single
options: Own servers, Static host, Wiki service
Set-up time: a week, an hour, a day
Custom domain: good, good, warn (paid plan only)
Search: warn (add one), warn (add one), good
Who can edit: developers, developers, anyone with an account
```

## Compare image

**A before-and-after picture lays two images of the same size on top of each other, with a bar between them.** Drag the bar (or anywhere on the picture), press the arrow keys, or tap the picture to flip from one to the other; the two labels jump to a whole image. Each image line gives the address and the alt text in quotes, which is what a screen reader and an LLM read. The address goes through the host's URL policy (a relative path, http or https; never `data:`). The two sample images are the files `before-light.svg` and `after-dark.svg` in this part's `media/` folder: a host serves that folder as `media/`.

```compare-image title="A dashboard, light and dark" before="Light" after="Dark"
before: media/before-light.svg "A dashboard with four tiles and a bar chart on a light page"
after: media/after-dark.svg "The same dashboard on a dark page"
```

## Diff

A `diff` block holds what `git diff` prints. It is drawn as a diff view: a file header with how much changed, line numbers on both sides, the changed words marked inside a changed line, and long unchanged runs folded. It is split on a wide part and unified on a narrow one; the buttons switch it, and `view=split` or `view=unified` fixes it. On a phone the lines do not wrap: the numbers and the sign stay in view while the code scrolls inside its box.

```diff
diff --git a/src/server.ts b/src/server.ts
index 4b825dc..9f3c1a7 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -12,9 +12,10 @@ export function start(config: Config) {
   const port = config.port ?? 8080;
-  const host = "localhost";
+  const host = config.host ?? "0.0.0.0";
   const server = createServer(handler);
-  server.listen(port, host);
+  server.listen(port, host, () => log.info("listening", { port, host }));
   register(server);
   watch(config);
   return server;
@@ -48,6 +49,6 @@ export function stop(server: Server) {
   unwatch();
-  server.close();
+  server.close(() => log.info("closed"));
 }
@@ -80,18 +81,19 @@ export function reload(server: Server) {
   const next = readConfig();
-  if (next.port !== current.port) restart(server);
+  if (next.port !== current.port || next.host !== current.host) restart(server);
   current = next;
   emit("reload", next);
   mark("reload");
   audit(next);
   notify(next);
   flush();
   settle();
   prune();
   index();
   compact();
   verify();
+  log.debug("reloaded", { port: next.port });
   return server;
 }
```

With `static` the diff is drawn whole, with no button: every file open, and a folded run only says how many lines it holds.

```diff static
--- a/src/greet.ts
+++ b/src/greet.ts
@@ -1,4 +1,4 @@
 export function greet(name: string) {
-  return "Hello, " + name;
+  return `Hello, ${name}!`;
 }
```

## Downloads

A card for each file: a type icon, its size, a plain download link, and a checksum that copies on a tap, with the line that checks it. Nothing is counted and nothing is fetched until the reader presses Download.

```downloads title="Files for this page"
media/report.pdf "The report, first pages" 209 KB sha256=d14bdfa9e9a37c960e8a2835fd6c0e75aa6e201e1e967d18159378e3de124372
media/talk.mp3 "The spoken sample" 229 KB sha256=8ed40d5dc963c74c457b987f9af4b4f3a33f1c13aa7a547cd3e959bf6fcd5d55
media/build.json "The hand-written animation" 6.4 KB note="A Lottie file with no expressions and no images."
https://example.com/durian-markdown-0.7.0.tar.gz "Source archive (an example address)" 1.2 MB sha256=2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae note="The address is an example; nothing is fetched until you press Download."
media/requests.csv "Raw data" 15.4 KB note="One row per request."
```

## Explore

A fence in the data's own language, followed by `explore`, becomes a foldable tree with a search box, a copy-path button on every key and a **jq subset** query box. It reads JSON, YAML or CSV (a CSV's rows become objects). `query=` is the starting query. The box runs our own small jq (the "jq subset": paths, pipes, `select`, `map`, `keys`, `length`, `sort_by`, `group_by`, `to_entries`, `test`, string interpolation, building objects and arrays); a query that needs more work than a page may use says so, and a function outside the subset is named, never answered wrongly. It lacks assignment (`|=`), `reduce`, `foreach`, `def`, `paths`, `del`, `sub`, `gsub`, `match` and `walk`.

```json explore title="One order" query=".lines[] | select(.qty > 1)"
{
  "id": "o-7",
  "customer": { "id": "c-12", "name": "Ana", "tags": ["vip", "early"] },
  "lines": [
    { "sku": "tea", "qty": 2, "price": 3.5 },
    { "sku": "cup", "qty": 1, "price": 8 },
    { "sku": "pot", "qty": 3, "price": 12.25 }
  ],
  "paid": true,
  "note": null
}
```

The same reader takes YAML and CSV. TOML exploration is refused until a TOML reader is available; the TOML example below is ordinary code:

```yaml explore title="A service config" query=".limits | map_values(ascii_upcase)"
service: shop
replicas: 3
limits:
  cpu: 500m
  mem: 256Mi
hosts:
  - name: app-1.example.com
    zone: a
  - name: app-2.example.com
    zone: b
```

```toml
[server]
host = "198.51.100.7"
port = 8443
tls = true

[limits]
cpu = "500m"
```

```csv explore title="Latency by region" query="sort_by(.p95) | reverse | .[0].region"
region,p50,p95,requests
us-west,42,120,1200000
eu-central,55,180,830000
ap-south,70,260,410000
```

## Fishbone

Causes by category along a spine into the effect. In a narrow column the spine turns vertical.

```fishbone title="Why is checkout slow?"
effect: Checkout takes 4 seconds at p95
People: on-call is new to the service
Process: no load test before a release
  only staging has real data
Tools: the ORM loads every line item
  one query per line
Environment: the database is in another region
```

With steps, the bones come in one at a time, and `highlight` lights one.

```fishbone title="Why did the deploy fail?"
effect: The deploy rolled back
@step The first two causes.
Config: a key was renamed in one place only
Tests: the contract test was skipped
@step The third, and the one to fix first.
Release: two services shipped in the wrong order
highlight Config
```

## Flame chart and flame graph

A traced request and folded profiler stacks. Tap a frame to zoom; search highlights matching frames.

```flame title="One request, traced" unit=ms
0 120 request
  2 14 auth.check
  15 95 handler.order
    16 70 db.query
    72 90 render.page
  96 118 respond.write
```

```flame title="CPU, 30 seconds" unit=samples colour=heat
main;serve;handle;parse 120
main;serve;handle;db.query 300
main;serve;handle;db.query;lock.wait 80
main;serve;handle;render.page 95
main;serve;gc 45
main;serve;accept 30
main;housekeeping;flush 60
```

## Gallery

A carousel shows one image at a time: swipe, use the arrow keys, the buttons or the dots. A tap opens the picture full screen, where pinch, wheel and double tap zoom it, and one finger or the mouse pans.

```gallery title="Four sample pictures" view=carousel loop
![A harbour at dawn: a low sun over a still sea](media/harbour.svg "Harbour at dawn: a made-up picture for the sample")
![A pine forest in green light](media/forest.svg "Pine forest")
![Sand dunes under a pale sky](media/dunes.svg "Dunes at noon")
![A mountain behind a lake](media/lake.svg "Mountain lake")
```

A grid crops to a ratio (the full picture stays in the lightbox), with the caption under each image.

```gallery title="The same pictures, as a grid" view=grid columns=3 ratio=4:3
![A harbour at dawn](media/harbour.svg "Harbour")
![A pine forest](media/forest.svg "Forest")
![Sand dunes](media/dunes.svg "Dunes")
![A mountain lake](media/lake.svg "Lake")
```

One image, with zoom.

```gallery view=single
![A mountain behind a lake](media/lake.svg "Tap the picture to see it full screen")
```

## Gantt

A task line is `<id> "label" <start> <end or length> [progress%] [done] [colour]`; a start is a date or `after <id> ...`; `milestone` is a point; `section` groups the lines after it. `today=` draws a line (never the real clock). Hover, tap or focus a bar for its dates and what it waits for; Day, Week and Month change the scale.

```gantt title="Release 2.0" today=2026-12-09
section Build
design "Design" 2026-12-01 .. 2026-12-04 done
api "API" after design 8d 60%
ui "Screens" after design 6d
section Ship
beta "Beta" after api ui 3d [warn]
launch "Launch" milestone after beta
```

Under steps, `progress`, `done` and `move` change the plan as time passes; a slip carries the tasks after it. `workdays=on` makes lengths skip Saturday and Sunday, and `critical=on` outlines the longest chain.

```gantt title="A release that slips" workdays=on critical=on today=2026-12-14
section Build
design "Design" 2026-12-01 .. 2026-12-04 done
api "API" after design 8d 40%
ui "Screens" after design 6d
section Test
qa "QA" after api ui 5d
@step The plan on 1 December
@step Design is done, the API is under way
progress api 60%
progress ui 100%
@step The API slips by a week
move api 2026-12-14
launch "Launch" milestone after qa
```

## Glossary

Terms defined once. Where a term is used in the text, its first use in each section is a button with a dotted underline: hover it, tap it, or focus it and press Enter to read the meaning.

```glossary title="Words we use"
term "UL" also "ubiquitous language": the words a team agrees on and uses in code and in talk
term bc "bounded context" also "context map": one part of the system with its own **words**; see [the book](https://example.com/ddd)
```

Each team keeps its own UL inside a bounded context. The second use of UL in the same section stays plain text: UL.

## Graph

A graph is for finding your way around a big network: what uses what, and what breaks if one part goes. Write `group` and `node` lines, then one edge a line (`a -> b`, with a label in quotes if it needs one). A node an edge names and no line declares is added (here the outside libraries). `layout=layers` puts each package above what it uses. **Explore it:** search a package, tap one to focus it and its neighbours (1 or 2 steps out), fold a group into one box, pan and zoom; the list beside the graph shows its links in and out. A graph this size reads as over 400 tokens, so the `:::llm` after it says the same in short.

```graph title="A shop's packages, and what each one uses" layout=layers
group apps "apps" [c1]
group ui "user interface" [c4]
group domain "domain" [c2]
group data "data access" [c6]
group core "core" [c3]
group tools "build and test" [muted]
node web "web shop" in apps
node admin "admin console" in apps
node worker "background worker" in apps
node cli "command line" in apps
node ui-kit, charts, forms, icons, theme in ui
node cart, checkout, catalog, accounts, search, pricing, orders, money, auth in domain
node db, cache, queue, events, http-client, storage in data
node config, log, errors, util, i18n, time in core
node build, lint, test-kit in tools
web -> ui-kit, forms, cart, checkout, catalog, search, accounts, i18n
admin -> ui-kit, charts, forms, orders, catalog, accounts
worker -> orders, events, queue, log
cli -> config, catalog, db
ui-kit -> theme, icons, react
charts -> ui-kit, chart.js "lazy"
forms -> ui-kit, zod
cart -> pricing, catalog, cache
checkout -> cart, orders, money, auth
catalog -> db, search, storage
accounts -> auth, db, events
search -> http-client, cache
pricing -> money, catalog
orders -> db, money, events, queue
money -> util
auth -> db, cache, errors
db -> pg, config, log, errors
cache -> ioredis, config
queue -> ioredis, events
events -> log, time
http-client -> undici, errors
storage -> http-client, config
config -> zod, util
log -> time, util
errors -> util
i18n -> date-fns, util
time -> date-fns
test-kit -> db, cache, config "fakes"
build, lint -> config
```

:::llm
A layered package graph of a shop: 33 packages in 6 groups, plus 7 outside libraries (react, chart.js, zod, pg, ioredis, undici, date-fns); 80 edges. The apps (web shop, admin console, background worker, command line) use the user interface packages (ui-kit, charts, forms, icons, theme) and the domain packages (cart, checkout, catalog, accounts, search, pricing, orders, money, auth). The domain uses data access (db, cache, queue, events, http-client, storage), which uses core (config, log, errors, util, i18n, time). Checkout needs cart, orders, money and auth; auth needs db, cache and errors. Most connected: db (6 in, 4 out), config (7 in, 2 out), web (8 out), catalog (5 in, 3 out).
:::

`layout=force` pulls linked services together and pushes the rest apart, so the clusters show. It fits calls between services, where there is no top or bottom. An id may carry a numbered range: `node db-orders-{1..6} in data` declares six shards, and `orders -> db-orders-{1..6}` draws a line to each. **Fold a group** (beside the graph, or a double tap on its box) and its lines join on one box with a count; **Fold groups** folds them all. A graph over 300 nodes, or one that would be drawn too small to touch in its box (a phone), starts with every group folded. Its LLM view is the nodes by group, the edges as `a -> b` lines, and the most connected nodes: here far over 400 tokens, so a `:::llm` says it in short.

```graph title="Calls between the services of a shop" layout=force size=l
group edge "edge" [c1]
group identity "identity" [c2]
group catalog "catalog" [c3]
group orders "orders" [c4]
group payments "payments" [c5]
group fulfil "fulfilment" [c6]
group data "data stores" [c8]
group platform "platform" [c7]
node cdn, waf, gateway, web-bff, mobile-bff, admin-bff, graphql, rate-limit, bot-check, geo-route, edge-cache, ws-hub, upload-proxy, img-proxy, status-page in edge
node auth, sessions, users, profiles, roles, mfa, sso, tokens, consent, audit, password-reset, email-verify, devices, risk-score, api-keys in identity
node catalog-api, products, variants, inventory, prices, promos, reviews, search-api, indexer, recs, media, categories, brands, bundles, wishlist in catalog
node cart-api, checkout, orders-api, order-events, invoices, returns, refunds, tax, shipping-quote, gift-cards, loyalty, quotes, subscriptions, order-history, fraud in orders
node pay-api, card-vault, psp-a, psp-b, wallets, payouts, ledger, fx, disputes, settlements, pay-events, three-ds, chargebacks, billing, receipts in payments
node fulfil-api, warehouses, picking, packing, carriers, labels, tracking, dispatch, slots, couriers, stock-sync, returns-in, notify, sms, email in fulfil
node db-orders-{1..6}, db-users, db-catalog, cache-{1..3}, search-index, blob-store, event-bus, dw in data
node config-svc, flags, secrets, metrics, logs, traces, scheduler, jobs, alerts, ci, registry, mesh, dns, kms, backups in platform
cdn -> edge-cache, img-proxy, waf
waf -> gateway, bot-check, rate-limit
gateway -> web-bff, mobile-bff, admin-bff, graphql, ws-hub, upload-proxy, geo-route
web-bff -> auth, sessions, catalog-api, cart-api, search-api, recs, checkout
mobile-bff -> auth, sessions, catalog-api, cart-api, search-api, wishlist, checkout
admin-bff -> auth, roles, catalog-api, orders-api, refunds, users, audit
graphql -> catalog-api, orders-api, profiles, reviews
ws-hub -> tracking, order-events, sessions
upload-proxy -> media, blob-store
img-proxy -> media
status-page -> metrics, alerts
auth -> sessions, users, mfa, sso, tokens, risk-score, devices
sessions -> cache-1, tokens
users -> db-users, profiles, email-verify, audit
profiles -> db-users, media, consent
roles -> db-users, audit
mfa -> sms, email, devices
sso -> tokens, users
tokens -> kms, cache-1
password-reset -> email, tokens, users
email-verify -> email
api-keys -> tokens, db-users
risk-score -> devices, fraud
catalog-api -> products, categories, brands, prices, inventory, media, bundles
products -> variants, db-catalog, cache-2
variants -> db-catalog
inventory -> db-catalog, stock-sync, event-bus
prices -> promos, fx, cache-2
promos -> db-catalog
reviews -> db-catalog, users
search-api -> search-index, recs
indexer -> search-index, event-bus, products
recs -> dw, cache-2
wishlist -> db-users, products
cart-api -> products, prices, promos, cache-3, gift-cards
checkout -> cart-api, tax, shipping-quote, pay-api, orders-api, fraud, loyalty
orders-api -> db-orders-{1..6}, order-events, invoices
order-events -> event-bus
invoices -> tax, receipts, blob-store
returns -> orders-api, returns-in, refunds
refunds -> pay-api, ledger
tax -> fx
shipping-quote -> carriers, slots
gift-cards -> ledger
loyalty -> users, ledger
quotes -> prices, tax
subscriptions -> billing, orders-api, scheduler
order-history -> db-orders-{1..6}, dw
fraud -> risk-score, dw
pay-api -> card-vault, psp-a, psp-b, wallets, three-ds, ledger, pay-events
card-vault -> kms, secrets
psp-a, psp-b -> pay-events
wallets -> ledger
payouts -> ledger, psp-a, settlements
ledger -> fx, dw
disputes -> chargebacks, psp-a, psp-b
settlements -> ledger, dw
pay-events -> event-bus
chargebacks -> ledger
billing -> pay-api, receipts
receipts -> email, blob-store
fulfil-api -> warehouses, dispatch, labels, tracking
warehouses -> stock-sync, picking
picking -> packing
packing -> labels
labels -> carriers, blob-store
carriers -> tracking
tracking -> notify, event-bus
dispatch -> couriers, slots, carriers
stock-sync -> inventory, event-bus
returns-in -> warehouses, refunds
notify -> sms, email
event-bus -> fulfil-api, indexer, notify, dw, audit
scheduler -> jobs
jobs -> backups, indexer, payouts, settlements
alerts -> metrics, logs
mesh -> dns, traces, metrics
backups -> blob-store
ci -> registry
config-svc -> flags, secrets
secrets -> kms
gateway, auth, checkout, pay-api, orders-api -> mesh
```

:::llm
A force-laid call graph of a shop: 120 services in 8 groups, 232 calls. Edge (cdn, waf, gateway, three backends for web, mobile and admin, graphql, ws-hub ...) calls identity (auth, sessions, users, tokens, mfa, sso ...) and catalog (catalog-api, products, prices, search-api, recs ...). Checkout calls cart-api, tax, shipping-quote, fraud, loyalty, pay-api and orders-api; orders-api writes six shards, db-orders-1 to db-orders-6. pay-api calls card-vault, two payment providers, wallets, three-ds and the ledger. Events go through event-bus to fulfilment (warehouses, picking, packing, labels, carriers, tracking), the indexer, notify, the warehouse (dw) and audit. Platform: config, flags, secrets, kms, metrics, logs, traces, the mesh, scheduler and jobs. Most connected: orders-api (5 in, 9 out), auth, catalog-api, pay-api, event-bus (6 in, 5 out).
:::

`layout=radial centre=<node>` puts one node in the middle and each ring one step further away, in either direction: what it uses and what uses it. Use it to answer "what touches this?". A small graph needs no `:::llm`: its LLM view is the graph itself, as lines.

```graph title="What touches the sign-in service" layout=radial centre=auth
group callers "calls sign-in" [c1]
group needs "sign-in calls" [c6]
node web, mobile, admin, cli in callers
node sessions, users, mfa, tokens in needs
node auth "sign-in"
web, mobile, admin, cli -> auth
auth -> sessions, users, mfa, tokens
mfa -> sms "codes"
tokens -> kms "signing keys"
sessions, users -> postgres
```

`static` draws the part still: the groups with how many nodes each holds, and a line that counts the edges between two groups. It is for print, a PDF, an email, or a reader who asks for less motion.

```graph title="The same sign-in graph, drawn still" layout=radial centre=auth static
group callers "calls sign-in" [c1]
group needs "sign-in calls" [c6]
node web, mobile, admin, cli in callers
node sessions, users, mfa, tokens in needs
node auth "sign-in"
web, mobile, admin, cli -> auth
auth -> sessions, users, mfa, tokens
mfa -> sms "codes"
tokens -> kms "signing keys"
sessions, users -> postgres
```

## Http

An `http` block is a request and, after a blank line, its response, as text. It is drawn as a method tag and the address (the query split into names and values), the headers (folded after six), the body (JSON is pretty and can be folded), the status as a tag coloured by its class, and a button that copies the request as `curl`. A secret in a header is never written out: use a placeholder such as `<token>`.

```http title="Create an order"
POST /v1/orders?dry_run=false&currency=usd HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: application/json
Authorization: Bearer <token>
Idempotency-Key: 6f1c2d0e
User-Agent: shop-cli/2.4
X-Request-Id: req-7a91

{ "sku": "tea", "qty": 2, "ship": { "to": "198.51.100.7", "express": true }, "notes": ["gift", "no receipt"] }

HTTP/1.1 201 Created
Content-Type: application/json
Location: /v1/orders/o-7

{ "id": "o-7", "status": "open", "total": { "amount": 1840, "currency": "usd" } }
```

With `static` the whole message is drawn: every header, the whole JSON tree, no button.

```http static
HTTP/1.1 404 Not Found
Content-Type: application/json
Cache-Control: no-store

{ "error": "not_found", "detail": { "resource": "order", "id": "o-9" } }
```

## Log

A fence named `log`. It reads JSON lines, logfmt and the common "time level message key=value" shape. The filter box speaks **LogQL** (Grafana Loki's query language): `{level="error"}`, `|= "timeout"`, `!= "health"`, `|~ "5\\d\\d"`, `| status >= 500`; a box that starts with neither `{` nor `|` is plain words. Only the query half of LogQL is read, never metric queries. `filter=` is the starting filter. The author (often an agent) points at what matters with `@highlight` lines: a LogQL filter or `line 3-5`, a colour word and the reason in quotes.

```log title="The failed deploy" labels="app=shop, env=prod" filter="{level=~\"warn|error\"}"
2026-11-20T10:08:01Z info  deploy started version=1.4
2026-11-20T10:08:12Z info  migration applied name=0042
2026-11-20T10:09:03Z warn  cache miss rate high rate=0.41
2026-11-20T10:09:05Z error request failed path=/cart status=500 err="timeout after 30s" span=checkout trace=request
2026-11-20T10:09:06Z error request failed path=/cart status=500 err="timeout after 30s" span=checkout trace=request
@highlight |= "timeout" [bad] "every failure is the same timeout"
@highlight line 3 [warn] "the first sign"
```

## Lottie

A Lottie file is a drawing that moves. This one was written by hand for the sample: a box fills with blocks, one row at a time, then a tick appears. It plays while it is on screen, stops off it, and shows one still frame when the reader asks for less motion. The `colours:` line maps names inside the file to theme colours, so it follows light and dark.

```lottie src="media/build.json" title="What happens while it builds" loop
alt: A box fills with blocks, one row at a time, then a tick appears.
colours: dh-c1 = c1, dh-c2 = c2, dh-c3 = c3, dh-good = good
```

## Map and routes

Places and written routes work without a tile provider. A dashed route has no road geometry; the host may supply its own router.

```map title="Walk to the garden"
place start "Library" 51.507, -0.128 [c1] note="Meet by the entrance"
place garden "Garden" 51.511, -0.117 [c2]
route walk "Morning walk" by=walk [c2]: start -> 51.508, -0.123 -> garden
@step Meet at the library.
focus start
@step Follow the written route.
show walk
focus walk
```

Country values, US states and flows share the same map and value list.

```map title="Daily flow" unit="units per day" scale=steps steps=4
fill DE 83.2
fill FR 68.4
fill US-CA 39.5
arc DE -> FR 24 "Daily flow" [c2]
```

The globe uses the same data; with no WebGL it falls back to the flat map.

```map title="Global flow" view=globe spin=off unit="units per day"
fill DE 83.2
fill FR 68.4
arc DE -> FR 24 "Daily flow" [c2]
```

A static globe is a flat map with all its values, ready to print.

```map title="A still map" view=globe static
fill DE 83.2
fill FR 68.4
```

## Maths (`$...$`, `$$...$$` and `math`)

The area of a circle is $A = \pi r^2$, and a sum of the first $n$ numbers is:

$$
\sum_{k=1}^{n} k = \frac{n(n+1)}{2}
$$

The same in a `math` block, with a fraction, a root and a matrix:

```math
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \qquad
\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
```

Prices stay text: it costs $5 and $10, and `$not maths$` in code is left alone.

## PDF

pdf.js draws the pages on a canvas, and its text layer makes the words selectable and searchable. The file below was printed from a small made-up document. The viewer works a page at a time; try the search box, the outline and the zoom.

```pdf src="media/sample.pdf" title="A sample document" page=1 height=l
```

`view=scroll` lays every page out in one scrolling column and draws the ones near the window.

```pdf src="media/sample.pdf" title="The same file, scrolling" view=scroll height=s
```

## Citations (`[@key]` and `references`)

A mark in the text opens its entry: marks make a study easier to read [@smith2020, p. 12], and two together are one group [@smith2020; @lee2019]. Hover, focus or tap a mark for the entry.

```references style=apa title="References"
- id: smith2020
  author: Smith, Jane; Lee, Kim
  title: A study of marks
  in: Journal of Studies
  year: 2020
  volume: 12
  issue: 3
  pages: 10-20
  doi: 10.1234/jbs.2020.4
- id: lee2019
  author: Lee, Kim
  title: Notes on lists
  type: web
  publisher: Example Press
  year: 2019
  url: https://example.com/notes
  accessed: 2026-11-20
```

## Sankey

A flow a line, `from -> to: amount`; `node <id> "label" [colour]` only to name or colour one. Hover, tap or focus a band to light its path and read its share.

```sankey title="Where a request's time goes" unit=ms
request -> auth: 12
request -> handler: 80
handler -> db: 55
handler -> render: 20
handler -> cache: 5
node db "Postgres" [c3]
node cache "Redis" [c2]
```

Flows under a step appear in it: the bands grow out of their source. In a narrow column, a sankey with more than three columns runs top to bottom.

```sankey title="Where the month's budget goes" unit=USD
income -> payroll: 62000
income -> infra: 21000
income -> tools: 6000
income -> reserve: 11000
@step The money in and the big three
@step Infrastructure breaks down
infra -> compute: 12500
infra -> storage: 5200
infra -> network: 3300
@step Compute splits by team
compute -> web: 7000
compute -> data: 4100
compute -> ml: 1400
node income "Revenue" [c1]
node payroll "People" [c4]
node infra "Infrastructure" [c6]
```

## Sequence

Who calls whom, in order. A call is a solid arrow, a reply a dashed one; a block (`loop`, `alt`, `opt`, `par`) frames the messages inside it. An LLM reads the messages as a numbered list.

```sequence title="One init call"
actor dev "developer"
participant cli "CLI"
participant tc "template container"
dev -> cli: scaffold create
cli -> tc: init call, all answers
tc --> cli: question reply
note tc: the script stopped at a question
loop until no question is left
  cli -> tc: init call, one more answer
  tc --> cli: question reply
end
cli --> dev: project written
```

With `@step` lines the story builds up one call a step: the earlier calls fade and the new one draws itself.

```sequence
participant cli "CLI"
participant tc "template container"
@step The CLI sends an init call with every answer it holds.
cli -> tc: init call: all answers
@step The script stops at a question and sends it back.
tc --> cli: question reply
@step The next init call carries one answer more.
cli -> tc: init call: one more answer
```

## Sparkline in a sentence (`:spark[...]`)

`:spark[3,5,2,8,9]` draws a tiny line the height of the text. Add `bar` for bars and a colour word for the colour: `:spark[3,5,2,8,9 bar good]`. Hover, tap or focus it to see the numbers. A model reads `(3, 5, 2, 8, 9)`.

Sign-ups this week were :spark[120,135,128,160,182,171,205] and rising, errors fell to :spark[14,12,15,9,7,4,3 bar good], and the queue is :spark[5,4,6,22,31,18,9 warn] after Wednesday's spike.

## Stacktrace

A fence named `stacktrace`. It reads a trace as printed by Go, .NET, Bun or Node, Dart, Java or Python: the error line, each cause in its own block, threads as groups. Library frames fold into one bar; frames of your own code (`app=`) are marked, and with `repo=` and `strip=` they name the file and line at the page’s pinned commit (when its front matter has a matching pins entry). Tap a frame to open it.

```stacktrace lang=go app=example.com/shop repo=example.com/shop strip=/src/shop/ title="A Go panic"
panic: runtime error: index out of range [3] with length 3

goroutine 18 [running]:
example.com/shop/cart.(*Cart).Item(...)
	/src/shop/cart/cart.go:42
example.com/shop/api.(*Server).getItem(0xc0001a2000, {0x7f1c, 0xc000124000}, 0xc000188000)
	/src/shop/api/items.go:88 +0x1d4
net/http.HandlerFunc.ServeHTTP(0xc000010040, {0x7f1c, 0xc000124000}, 0xc000188000)
	/usr/local/go/src/net/http/server.go:2136 +0x29
net/http.serverHandler.ServeHTTP({0xc00011e000}, {0x7f1c, 0xc000124000}, 0xc000188000)
	/usr/local/go/src/net/http/server.go:2938 +0x8e
```

## Stack traces in the other five languages

`lang=` may be left out when the trace says it. Each trace below is read by its own parser.

```stacktrace app=Acme.Shop title=".NET, with an inner exception"
System.InvalidOperationException: Cart failed
 ---> System.ArgumentException: Index out of range (Parameter 'i')
   at Acme.Shop.Cart.Item(Int32 i) in /src/shop/Cart.cs:line 42
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   --- End of inner exception stack trace ---
   at Acme.Shop.Api.GetItem(Int32 id) in /src/shop/Api.cs:line 88
   at Microsoft.AspNetCore.Mvc.Invoke()
```

```stacktrace app=/src/shop title="Bun or Node, with a cause"
Error: request failed
    at fetchItem (file:///src/shop/api.ts:42:11)
    at async handler (/src/shop/server.ts:10:3)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at run (/src/shop/node_modules/lib/index.js:5:9)
Caused by: TypeError: bad json
    at parse (/src/shop/util.ts:7:2)
```

```stacktrace app=shop title="Dart, with an async gap"
Unhandled exception:
Bad state: no element
#0      Cart.item (package:shop/cart.dart:42:7)
#1      Api.get (package:shop/api.dart:10:3)
<asynchronous suspension>
#2      _rootRunUnary (dart:async/zone.dart:1407:47)
#3      State.setState (package:flutter/src/widgets/framework.dart:1100:9)
```

```stacktrace app=com.acme.shop title="Java, with Caused by"
java.lang.IllegalStateException: cart failed
	at com.acme.shop.Cart.item(Cart.java:42)
	at com.acme.shop.Api.get(Api.java:88)
	at java.base/java.util.ArrayList.get(ArrayList.java:427)
	... 12 more
Caused by: java.io.IOException: boom
	at com.acme.shop.Db.read(Db.java:7)
	... 5 common frames omitted
```

```stacktrace app=/src/app title="Python, chained"
Traceback (most recent call last):
  File "/src/app/db.py", line 5, in read
    raise OSError("boom")
OSError: boom

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/src/app/main.py", line 10, in <module>
    run()
  File "/usr/lib/python3.11/site-packages/x.py", line 5, in run
    raise ValueError("bad")
ValueError: bad
```

## Stats

**Stat tiles are the row of big numbers at the top of a dashboard:** each tile is one figure with its name, how it changed and, if given, a tiny line of its recent values, so a reader takes in the state of something at a glance before reading on. The colour word in brackets says whether the change is good or bad (a fall in latency is good); it is never guessed from the sign.

```stats title="The week"
Requests "1.2 M" change=+12% [good] note="last 7 days" spark=3 5 4 6 8 9
p95 latency "180 ms" change=-8% [good] spark=9 8 8 7 7 6 5
Errors "0.4%" change=+0.1 [bad] note="of requests" spark=2 2 3 2 4 5
Cost "USD 412" change=+3% spark=4 4 5 5 5 6
```

A tile can also carry a glyph, a trend word and a sub-line. This block is `static`: it draws the tiles whole, the same in print.

```stats title="Garden at a glance" static
Yield "251 kg" glyph="✦" trend=up sub="Across three plots" change=+8% [good] note="this season" spark=180 192 205 224 251
Water "120 L" glyph="◉" trend=down sub="Stored rainwater" change=-6% [good] note="this week" spark=150 145 138 126 120
Beds "30" glyph="▦" trend=flat sub="Ready for planting" [c3]
```

## Timeline

One line per event, oldest first; an indented line is a detail. A year, a month or a day.

```timeline title="A release plan"
2026-05-04 Design review [c1]
  Scope and owners agreed
2026-09 First release [c2]
2026-11-21 Old drawing code removed [c5]
  New drawn parts take their place
2026-11-23 Version 2 ships [good] note="the big one"
```

With `dir=across` a wide screen lays it out sideways; a phone is always top to bottom. With steps, the events come in one group at a time.

```timeline title="A build-up" dir=across
2026 The idea
@step The first half of the year.
2026-03 A prototype
2026-06 A first user
@step The second half.
2026-09 First release [c2]
2026-12 Version 2 [good]
```

## Trace waterfall

A request across services. Fold spans, search, zoom the mini map, or switch to Flame.

```trace title="POST /checkout" unit=ms trace=t-7f3a
web        POST /checkout        0 842  user=u7 region=us-west-2
  gateway  route /checkout       3 838  route=checkout
    auth   verify.token          6  44  method=jwt
      db   SELECT sessions      10  38  rows=1
    cart   cart.load            47 205  items=3
      db   SELECT cart_items    52 121  rows=3
      db   SELECT prices       126 198  rows=3 cache=miss
    inventory stock.reserve     50 171  warehouse=w2
      db   UPDATE stock         57 166  rows=1 id=stock-update
    payment charge.card        208 812  provider=examplepay error="payment provider timed out"
      payment tls.connect      212 255
      payment provider.call    258 804  attempt=1 id=provider error="upstream timeout after 540 ms"
    queue  publish.retry       814 834  topic=payments.retry id=retry
@log db 130 warn "row lock held 94 ms" span=stock-update
@log payment 258 info "calling examplepay /v2/charge"
@log payment 804 error "upstream timeout after 540 ms, giving up"
@log queue 820 info "queued a retry for order o-2291"
@log web 840 error "answered 504 to the client"
@service db [c5] "Postgres"
```

:::llm
One checkout request, 842 ms, across 8 services. The payment provider call (258–804 ms) timed out, so charge.card and the request failed with a 504, and a retry was queued. Stock was reserved in parallel with the cart load and is not on the critical path; UPDATE stock in db waited 94 ms on a row lock.
:::

```trace title="GET /health" unit=ms open=2
web   GET /health        0 9
  api health.check       1 8
    db SELECT 1          2 6
```

```trace title="A flat list" unit=ms critical=off
web   GET /orders     0 60   id=a
api   orders.list     3 55   id=b parent=a
db    SELECT orders   8 40   id=c parent=b rows=25
api   orders.render  41 54   id=d parent=b
```

## Venn

Two to four sets in fixed, even shapes. It is not drawn to scale on purpose: the names are written in the regions. Hover, tap or focus a region to read its items; on a narrow screen they are listed under the figure.

```venn title="Who writes what"
set go "Go" [c1]
set rust "Rust" [c2]
set zig "Zig" [c3]
go: Ana, Ben
go & rust: Cy
go & rust & zig: Dee (writes all three)
rust: Eve, Fay
zig: 4 people
```

With steps, one set comes in at a time, with its regions.

```venn title="Adding one set at a time"
set a "Readers" [c4]
set b "Writers" [c5]
set c "Reviewers" [c6]
@step Readers and writers overlap.
a: Ana, Ben
a & b: Cy
b: Dee
@step Reviewers join; some people do all three.
c: Eve
a & b & c: Fay
```

## Video

A video part keeps the browser's video and draws its own controls: a big play button on the poster, a bar with the chapters as segments (point at it to see the chapter and a still), captions drawn by us from a WebVTT file, picture in picture and full screen. The picture here is a made-up moving gradient.

```video src="media/sample.mp4" poster="media/poster.jpg" title="Colours drifting" duration=0:12
captions: media/sample.en.vtt "English" default
thumbs: media/thumbs.vtt
chapter 0:00 Warm
chapter 0:04 Cool
chapter 0:08 Bright
0:00 The colours drift slowly across the frame.
0:04 Captions are drawn by the part from a WebVTT file.
0:08 Press C to turn them off, and F for full screen.
```

`clip` is for a short screen recording that would otherwise be a GIF: it plays muted and in a loop while it is on screen, stops when it scrolls away, and stays still when the reader asks for less motion.

```video src="media/clip.mp4" title="A short silent loop" clip height=s
```

## Wardley map

Components by evolution (left to right) and visibility (top to bottom). Positions are named keys, so the two numbers cannot be swapped.

```wardley title="A tea shop"
anchor customer "Customer" visible=0.95 evolution=0.6
component cup "Cup of tea" visible=0.8 evolution=0.6
component tea "Tea" visible=0.6 evolution=0.8
component kettle "Kettle" visible=0.45 evolution=0.4
component power "Power" visible=0.1 evolution=0.85
customer -> cup
cup -> tea
cup -> kettle
kettle -> power
note "Kettles are a product now" visible=0.3 evolution=0.1
@step Today the kettle is a product we buy.
highlight kettle
@step A smart kettle moves it further to the right.
evolve kettle 0.65 "smart kettle"
```

## Weather

A forecast written in the source; it never fetches. The units menu on the part switches °C and °F, km/h, mph, m/s and knots, mm and inches, hPa and inHg, and your choice is remembered in this browser.

```weather place="San Francisco" unit=c tz=America/Los_Angeles
2026-11-22 sun 18/11 rain=0% wind=12km/h pressure=1021hPa
2026-11-23 partly 16/10 rain=10% wind=15km/h pressure=1018hPa
2026-11-24 rain 14/9 rain=80% wind=30km/h precip=6mm pressure=1004hPa
2026-11-25 storm 13/8 rain=95% wind=45km/h precip=14mm pressure=996hPa note="Ferry may stop"
2026-11-26 cloud 12/7 rain=30% wind=20km/h precip=1mm pressure=1009hPa
```

Hours work the same way, with one temperature, here written in °F and mph.

```weather place="Oakland" unit=f wind=mph tz=America/Los_Angeles
2026-11-24 06:00 fog 48 rain=5% wind=4mph
2026-11-24 09:00 cloud 52 rain=20% wind=8mph
2026-11-24 12:00 drizzle 57 rain=60% wind=11mph
2026-11-24 15:00 rain 59 rain=85% wind=14mph
2026-11-24 18:00 rain 55 rain=70% wind=12mph
2026-11-24 21:00 cloud 51 rain=25% wind=7mph
```

The same forecast with `static`: drawn whole in the fence's unit, with no menu.

```weather static place="Sydney" unit=c wind=kmh
2026-11-22 sun 24/17 rain=0% wind=14km/h
2026-11-23 partly 22/16 rain=20% wind=18km/h
2026-11-24 sleet 3/-1 rain=70% wind=22km/h note="Ice on the road"
```
LLM view
---
title: The folder parts
source: parts/samples.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

<!-- generated by scripts/parts.ts from the folders under src/parts/: do not edit -->

# The folder parts

Every part that lives in its own folder, with its sample. The Format page shows each as source, drawing and LLM view.

## Audio

An audio part is a player of our own. The wave is drawn from a small peaks file and moves with the sound; chapters split it, a marker flags one moment, and the transcript follows the voice.

Audio: A page that talks (0:57), media/talk.mp3. Chapters: 0:00 Welcome; 0:24 The transcript; 0:38 The marker. Markers: 0:38 Where the example crashed.

0:00 Ana: Welcome back. Today we look at a page that can talk.
0:04 Ben: A page that talks. Do you mean the audio part?
0:08 Ana: Yes. You write one fence, with a file, a title, and a few lines of transcript.
0:14 Ben: And the reader sees a wave that moves while the voice plays.
0:18 Ana: The wave is drawn from a small peaks file, so it appears before the sound starts.
0:24 Ben: What about people who cannot listen right now?
0:27 Ana: The transcript follows the voice. Tap a line, and the player jumps there.
0:33 Ben: Chapters split the wave into parts, and a marker flags one moment.
0:38 Ana: Here is the marker. This is where the example crashed.
0:42 Ben: And a language model reads the same page as plain text.
0:46 Ana: It gets the title, the chapters, and the transcript, never a picture of a wave.
0:52 Ben: That is the whole part. Press play, and listen again.

`wave=mirror` reflects the wave, `wave=dots` draws it in dots, `wave=live` shows a window of the sound that scrolls past "now", and `compact` makes one row. The colour is a word (`tone=c4`), never a hex value.

Audio: Mirror wave, in family colour 4 (0:57), media/talk.mp3.

Audio: Compact (0:57), media/talk.mp3.

## Calendar

The host supplies no clock here: Today returns to the authored date. Explore the views, switch calendars and open events. A narrow part starts with three days.

Calendar: Release week (times in Europe/London).

Repeats:
- Every weekday 09:00-09:20 from Mon 23 Nov 2026, 5 times: Stand-up (Team)

Events:
- Tue 24 Nov 2026 10:00-11:30: Design review, Studio (Team). Bring the mock-ups
- Tue 24 Nov 2026 10:30-11:00: Review notes (Team).
- Wed 25 Nov 2026, all day: Code freeze.
- Thu 26 Nov 2026 07:00-08:00 (18:00-19:00 on Thu 26 Nov 2026 in Australia/Sydney): Sydney call.

The static form keeps a complete dated list without controls.

Calendar: Release checklist (times in Europe/London).

Repeats:
- Every weekday 09:00-09:20 from Mon 23 Nov 2026, 3 times: Stand-up (Team)

Events:
- Wed 25 Nov 2026, all day: Code freeze.

## Chart kinds

Eight more kinds of a `chart`, each a YAML map with `kind:` at the top: raw values are counted, quartiled or smoothed when the page is built, so a model reads the table. Hover, tap or focus a bin, box, stage, block or day for its card; the arrow keys walk the data.

Chart (histogram): How long a request takes

| from | to | count |
| --- | --- | --- |
| 25 ms | 38.83 ms | 1 |
| 38.83 ms | 52.67 ms | 2 |
| 52.67 ms | 66.5 ms | 3 |
| 66.5 ms | 80.33 ms | 7 |
| 80.33 ms | 94.17 ms | 11 |
| 94.17 ms | 108 ms | 5 |
| 108 ms | 121.83 ms | 7 |
| 121.83 ms | 135.67 ms | 4 |
| 135.67 ms | 149.5 ms | 1 |
| 149.5 ms | 163.33 ms | 1 |
| 163.33 ms | 177.17 ms | 1 |
| 177.17 ms | 191 ms | 1 |

Marks: p50 = 92 ms, p95 = 152.75 ms

requests: 44 values.

Chart (boxplot): Checkout time by day

| day | min (s) | p25 | median | p75 | max | outliers |
| --- | --- | --- | --- | --- | --- | --- |
| Mon | 1m 40s | 1m 51s | 2m 3s | 2m 14s | 2m 49s | 2m 49s |
| Tue | 1m 57s | 2m 13s | 2m 25s | 2m 33s | 2m 56s | none |
| Wed | 1m 56s | 2m 17s | 2m 36s | 2m 42s | 4m 20s | 4m 20s |

Values per category: Mon 14, Tue 14, Wed 14.

Chart (violin): Response time by service

| service | min (ms) | p25 | median | p75 | max | outliers |
| --- | --- | --- | --- | --- | --- | --- |
| api | 57 ms | 90.5 ms | 101 ms | 105 ms | 124 ms | 57 ms |
| search | 119 ms | 148.25 ms | 169 ms | 204 ms | 237 ms | none |
| checkout | 201 ms | 213 ms | 240.5 ms | 247.75 ms | 262 ms | none |

Values per category: api 18, search 18, checkout 18.

Chart (funnel): From visit to paid

Step 1: Last quarter.

| stage | count | of the first | of the one before |
| --- | --- | --- | --- |
| Visited the site | 48,200 | 100% |  |
| Created an account | 8,700 | 18.0% | 18.0% |
| Started a trial | 4,100 | 8.5% | 47.1% |
| Paid | 1,350 | 2.8% | 32.9% |

Step 2: After the shorter sign-up form.

| stage | count | of the first | of the one before |
| --- | --- | --- | --- |
| Visited the site | 49,500 | 100% |  |
| Created an account | 11,300 | 22.8% | 22.8% |
| Started a trial | 5,200 | 10.5% | 46.0% |
| Paid | 1,720 | 3.5% | 33.1% |

Chart (waterfall): Monthly revenue bridge

| step | change (EUR) | running total |
| --- | --- | --- |
| October | start €84,000 | €84,000 |
| New | +€12,500 | €96,500 |
| Churn | -€9,100 | €87,400 |
| Refunds | -€2,300 | €85,100 |
| Subtotal | total | €85,100 |
| Price rise | +€4,800 | €89,900 |
| November | total | €89,900 |

Chart (treemap): Where the disk went

disk use (bytes), total 849.4 GiB:

- Media: 556.9 GiB (65.6%)
  - Videos: 383.7 GiB (45.2%)
  - Photos: 173.2 GiB (20.4%)
- Code: 162.1 GiB (19.1%)
  - Build cache: 82 GiB (9.6%)
  - Repos: 80.1 GiB (9.4%)
- Backups: 130.4 GiB (15.4%)

Chart (sunburst): Lines of code by team and area (thousands)

lines of code, total 341:

- Product: 164 (48.1%)
  - Web: 95 (27.9%)
  - Mobile: 69 (20.2%)
- Platform: 159 (46.6%)
  - Runtime: 93 (27.3%)
  - Storage: 66 (19.4%)
- Docs: 18 (5.3%)

Chart (calendar): Commits, September to November

commits by day, 2026-09-01 to 2026-11-30:

| month | days with data | total | busiest day |
| --- | --- | --- | --- |
| Sep 2026 | 20 | 101 | 2026-09-15 (10) |
| Oct 2026 | 22 | 107 | 2026-10-02 (9) |
| Nov 2026 | 24 | 87 | 2026-11-27 (10) |

Each kind takes `title`, `tone` where it makes sense, `y: { label, format, currency }` for the value axis (the histogram's is `x`), and `steps:` that change `data`, `marks` or `bins` from one step to the next.

## Compare

**A comparison matrix puts options side by side, one line for each thing you judge them on.** The first line names the options; every other line is a criterion and one value for each option, in the same order. A note in round brackets shows when a reader hovers, focuses or taps the value. With `winner=on` the best value of each yes/no, scored or good/bad row is marked; `pick=` flags the option you recommend.

| Which queue? | Redis Streams | Kafka | SQS |
| --- | --- | --- | --- |
| Ordering | **yes** | **yes** | partial (FIFO queues only) |
| Runs itself | no | no | **yes** |
| Throughput | 3 | **5** | 3 |
| Latency (lower is better) | **4 ms (in one region)** | 12 ms | 25 ms |
| Replay old messages | **yes (until trimmed)** | **yes (by offset)** | no |
| Cost at our size | **good** | bad | **good (pay per request)** |
| Team knows it | **yes** | partial (two people) | **yes** |

With `view=single`, a phone shows one option at a time, chosen from buttons. Here the values are plain words and good, warn and bad, so no row is marked as the best.

| Where to host the docs | Own servers | Static host | Wiki service |
| --- | --- | --- | --- |
| Set-up time | a week | an hour | a day |
| Custom domain | good | good | warn (paid plan only) |
| Search | warn (add one) | warn (add one) | good |
| Who can edit | developers | developers | anyone with an account |

## Compare image

**A before-and-after picture lays two images of the same size on top of each other, with a bar between them.** Drag the bar (or anywhere on the picture), press the arrow keys, or tap the picture to flip from one to the other; the two labels jump to a whole image. Each image line gives the address and the alt text in quotes, which is what a screen reader and an LLM read. The address goes through the host's URL policy (a relative path, http or https; never `data:`). The two sample images are the files `before-light.svg` and `after-dark.svg` in this part's `media/` folder: a host serves that folder as `media/`.

A dashboard, light and dark: Light and Dark
- Light: A dashboard with four tiles and a bar chart on a light page
- Dark: The same dashboard on a dark page

## Diff

A `diff` block holds what `git diff` prints. It is drawn as a diff view: a file header with how much changed, line numbers on both sides, the changed words marked inside a changed line, and long unchanged runs folded. It is split on a wide part and unified on a narrow one; the buttons switch it, and `view=split` or `view=unified` fixes it. On a phone the lines do not wrap: the numbers and the sign stay in view while the code scrolls inside its box.

```diff
diff --git a/src/server.ts b/src/server.ts
index 4b825dc..9f3c1a7 100644
--- a/src/server.ts
+++ b/src/server.ts
@@ -12,9 +12,10 @@ export function start(config: Config) {
   const port = config.port ?? 8080;
-  const host = "localhost";
+  const host = config.host ?? "0.0.0.0";
   const server = createServer(handler);
-  server.listen(port, host);
+  server.listen(port, host, () => log.info("listening", { port, host }));
   register(server);
   watch(config);
   return server;
@@ -48,6 +49,6 @@ export function stop(server: Server) {
   unwatch();
-  server.close();
+  server.close(() => log.info("closed"));
 }
@@ -80,18 +81,19 @@ export function reload(server: Server) {
   const next = readConfig();
-  if (next.port !== current.port) restart(server);
+  if (next.port !== current.port || next.host !== current.host) restart(server);
   current = next;
   emit("reload", next);
   mark("reload");
   audit(next);
   notify(next);
   flush();
   settle();
   prune();
   index();
   compact();
   verify();
+  log.debug("reloaded", { port: next.port });
   return server;
 }
```

With `static` the diff is drawn whole, with no button: every file open, and a folded run only says how many lines it holds.

```diff static=
--- a/src/greet.ts
+++ b/src/greet.ts
@@ -1,4 +1,4 @@
 export function greet(name: string) {
-  return "Hello, " + name;
+  return `Hello, ${name}!`;
 }
```

## Downloads

A card for each file: a type icon, its size, a plain download link, and a checksum that copies on a tap, with the line that checks it. Nothing is counted and nothing is fetched until the reader presses Download.

Downloads: Files for this page.
- The report, first pages: media/report.pdf (PDF, 209 KB, sha256 d14bdf...4372)
  sha256: d14bdfa9e9a37c960e8a2835fd6c0e75aa6e201e1e967d18159378e3de124372
- The spoken sample: media/talk.mp3 (MP3, 229 KB, sha256 8ed40d...5d55)
  sha256: 8ed40d5dc963c74c457b987f9af4b4f3a33f1c13aa7a547cd3e959bf6fcd5d55
- The hand-written animation: media/build.json (JSON, 6.4 KB) A Lottie file with no expressions and no images..
- Source archive (an example address): https://example.com/durian-markdown-0.7.0.tar.gz (GZ, 1.2 MB, sha256 2c26b4...e7ae) The address is an example; nothing is fetched until you press Download..
  sha256: 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
- Raw data: media/requests.csv (CSV, 15.4 KB) One row per request..

## Explore

A fence in the data's own language, followed by `explore`, becomes a foldable tree with a search box, a copy-path button on every key and a **jq subset** query box. It reads JSON, YAML or CSV (a CSV's rows become objects). `query=` is the starting query. The box runs our own small jq (the "jq subset": paths, pipes, `select`, `map`, `keys`, `length`, `sort_by`, `group_by`, `to_entries`, `test`, string interpolation, building objects and arrays); a query that needs more work than a page may use says so, and a function outside the subset is named, never answered wrongly. It lacks assignment (`|=`), `reduce`, `foreach`, `def`, `paths`, `del`, `sub`, `gsub`, `match` and `walk`.

```json explore query=".lines[] | select(.qty > 1)"
{
  "id": "o-7",
  "customer": { "id": "c-12", "name": "Ana", "tags": ["vip", "early"] },
  "lines": [
    { "sku": "tea", "qty": 2, "price": 3.5 },
    { "sku": "cup", "qty": 1, "price": 8 },
    { "sku": "pot", "qty": 3, "price": 12.25 }
  ],
  "paid": true,
  "note": null
}
```

Query `.lines[] | select(.qty > 1)` gives:
{"sku":"tea","qty":2,"price":3.5}
{"sku":"pot","qty":3,"price":12.25}

The same reader takes YAML and CSV. TOML exploration is refused until a TOML reader is available; the TOML example below is ordinary code:

```yaml explore query=".limits | map_values(ascii_upcase)"
service: shop
replicas: 3
limits:
  cpu: 500m
  mem: 256Mi
hosts:
  - name: app-1.example.com
    zone: a
  - name: app-2.example.com
    zone: b
```

Query `.limits | map_values(ascii_upcase)` gives:
{"cpu":"500M","mem":"256MI"}

```toml
[server]
host = "198.51.100.7"
port = 8443
tls = true

[limits]
cpu = "500m"
```

```csv explore query="sort_by(.p95) | reverse | .[0].region"
region,p50,p95,requests
us-west,42,120,1200000
eu-central,55,180,830000
ap-south,70,260,410000
```

Query `sort_by(.p95) | reverse | .[0].region` gives:
"ap-south"

## Fishbone

Causes by category along a spine into the effect. In a narrow column the spine turns vertical.

Fishbone: Why is checkout slow? Effect: Checkout takes 4 seconds at p95. Causes by category:
- People
  - on-call is new to the service
- Process
  - no load test before a release
    - only staging has real data
- Tools
  - the ORM loads every line item
    - one query per line
- Environment
  - the database is in another region

With steps, the bones come in one at a time, and `highlight` lights one.

Fishbone: Why did the deploy fail? Effect: The deploy rolled back. Causes by category:
- Config
  - a key was renamed in one place only
- Tests
  - the contract test was skipped
- Release
  - two services shipped in the wrong order

Steps:
1. The first two causes.
2. The third, and the one to fix first.

## Flame chart and flame graph

A traced request and folded profiler stacks. Tap a frame to zoom; search highlights matching frames.

Flame chart: One request, traced (ms). Each line is a call: its name, when it started and ended, and how long it took; indented lines are inside the line above.

request 0–120 (120 ms)
  auth.check 2–14 (12 ms)
  handler.order 15–95 (80 ms)
    db.query 16–70 (54 ms)
    render.page 72–90 (18 ms)
  respond.write 96–118 (22 ms)

Flame graph: CPU, 30 seconds (samples). 730 in all.

Stacks (the samples in each, biggest first):

| stack | count | share |
| --- | --- | --- |
| main;serve;handle;db.query | 300 | 41.1% |
| main;serve;handle;parse | 120 | 16.4% |
| main;serve;handle;render.page | 95 | 13% |
| main;serve;handle;db.query;lock.wait | 80 | 11% |
| main;housekeeping;flush | 60 | 8.2% |
| main;serve;gc | 45 | 6.2% |
| main;serve;accept | 30 | 4.1% |

Functions by their own time:

| function | self | share |
| --- | --- | --- |
| db.query | 300 | 41.1% |
| parse | 120 | 16.4% |
| render.page | 95 | 13% |
| lock.wait | 80 | 11% |
| flush | 60 | 8.2% |
| gc | 45 | 6.2% |
| accept | 30 | 4.1% |

## Gallery

A carousel shows one image at a time: swipe, use the arrow keys, the buttons or the dots. A tap opens the picture full screen, where pinch, wheel and double tap zoom it, and one finger or the mouse pans.

Gallery: Four sample pictures (4 images).
1. A harbour at dawn: a low sun over a still sea (media/harbour.svg): Harbour at dawn: a made-up picture for the sample
2. A pine forest in green light (media/forest.svg): Pine forest
3. Sand dunes under a pale sky (media/dunes.svg): Dunes at noon
4. A mountain behind a lake (media/lake.svg): Mountain lake

A grid crops to a ratio (the full picture stays in the lightbox), with the caption under each image.

Gallery: The same pictures, as a grid (4 images).
1. A harbour at dawn (media/harbour.svg): Harbour
2. A pine forest (media/forest.svg): Forest
3. Sand dunes (media/dunes.svg): Dunes
4. A mountain lake (media/lake.svg): Lake

One image, with zoom.

Gallery: images (1 image).
1. A mountain behind a lake (media/lake.svg): Tap the picture to see it full screen

## Gantt

A task line is `<id> "label" <start> <end or length> [progress%] [done] [colour]`; a start is a date or `after <id> ...`; `milestone` is a point; `section` groups the lines after it. `today=` draws a line (never the real clock). Hover, tap or focus a bar for its dates and what it waits for; Day, Week and Month change the scale.

Gantt: Release 2.0. Today is 2026-12-09.

Build

| task | start | end | after |
| --- | --- | --- | --- |
| Design (done) | 2026-12-01 | 2026-12-04 |  |
| API (60%) | 2026-12-05 | 2026-12-12 | Design |
| Screens | 2026-12-05 | 2026-12-10 | Design |

Ship

| task | start | end | after |
| --- | --- | --- | --- |
| Beta | 2026-12-13 | 2026-12-15 | API, Screens |
| Launch (milestone) | 2026-12-16 |  | Beta |

Under steps, `progress`, `done` and `move` change the plan as time passes; a slip carries the tasks after it. `workdays=on` makes lengths skip Saturday and Sunday, and `critical=on` outlines the longest chain.

Gantt: A release that slips. Lengths skip Saturday and Sunday. Today is 2026-12-14.

Step 1: The plan on 1 December

Build

| task | start | end | after |
| --- | --- | --- | --- |
| Design (done) | 2026-12-01 | 2026-12-04 |  |
| API (40%) | 2026-12-07 | 2026-12-16 | Design |
| Screens | 2026-12-07 | 2026-12-14 | Design |

Test

| task | start | end | after |
| --- | --- | --- | --- |
| QA | 2026-12-17 | 2026-12-23 | API, Screens |

Critical chain (the longest run of "after"s): Design, API, QA.

Step 2: Design is done, the API is under way

| task | start | end | after |
| --- | --- | --- | --- |
| API (60%) | 2026-12-07 | 2026-12-16 | Design |
| Screens (100%) | 2026-12-07 | 2026-12-14 | Design |

Step 3: The API slips by a week

| task | start | end | after |
| --- | --- | --- | --- |
| API (60%) | 2026-12-14 | 2026-12-23 | Design |
| QA | 2026-12-24 | 2026-12-30 | API, Screens |
| Launch (milestone) | 2026-12-31 |  | QA |

## Glossary

Terms defined once. Where a term is used in the text, its first use in each section is a button with a dotted underline: hover it, tap it, or focus it and press Enter to read the meaning.

Glossary:
- **UL** (also: ubiquitous language): the words a team agrees on and uses in code and in talk
- **bounded context** (also: context map): one part of the system with its own **words**; see [the book](https://example.com/ddd)

Each team keeps its own UL inside a bounded context. The second use of UL in the same section stays plain text: UL.

## Graph

A graph is for finding your way around a big network: what uses what, and what breaks if one part goes. Write `group` and `node` lines, then one edge a line (`a -> b`, with a label in quotes if it needs one). A node an edge names and no line declares is added (here the outside libraries). `layout=layers` puts each package above what it uses. **Explore it:** search a package, tap one to focus it and its neighbours (1 or 2 steps out), fold a group into one box, pan and zoom; the list beside the graph shows its links in and out. A graph this size reads as over 400 tokens, so the `:::llm` after it says the same in short.

A layered package graph of a shop: 33 packages in 6 groups, plus 7 outside libraries (react, chart.js, zod, pg, ioredis, undici, date-fns); 80 edges. The apps (web shop, admin console, background worker, command line) use the user interface packages (ui-kit, charts, forms, icons, theme) and the domain packages (cart, checkout, catalog, accounts, search, pricing, orders, money, auth). The domain uses data access (db, cache, queue, events, http-client, storage), which uses core (config, log, errors, util, i18n, time). Checkout needs cart, orders, money and auth; auth needs db, cache and errors. Most connected: db (6 in, 4 out), config (7 in, 2 out), web (8 out), catalog (5 in, 3 out).

`layout=force` pulls linked services together and pushes the rest apart, so the clusters show. It fits calls between services, where there is no top or bottom. An id may carry a numbered range: `node db-orders-{1..6} in data` declares six shards, and `orders -> db-orders-{1..6}` draws a line to each. **Fold a group** (beside the graph, or a double tap on its box) and its lines join on one box with a count; **Fold groups** folds them all. A graph over 300 nodes, or one that would be drawn too small to touch in its box (a phone), starts with every group folded. Its LLM view is the nodes by group, the edges as `a -> b` lines, and the most connected nodes: here far over 400 tokens, so a `:::llm` says it in short.

A force-laid call graph of a shop: 120 services in 8 groups, 232 calls. Edge (cdn, waf, gateway, three backends for web, mobile and admin, graphql, ws-hub ...) calls identity (auth, sessions, users, tokens, mfa, sso ...) and catalog (catalog-api, products, prices, search-api, recs ...). Checkout calls cart-api, tax, shipping-quote, fraud, loyalty, pay-api and orders-api; orders-api writes six shards, db-orders-1 to db-orders-6. pay-api calls card-vault, two payment providers, wallets, three-ds and the ledger. Events go through event-bus to fulfilment (warehouses, picking, packing, labels, carriers, tracking), the indexer, notify, the warehouse (dw) and audit. Platform: config, flags, secrets, kms, metrics, logs, traces, the mesh, scheduler and jobs. Most connected: orders-api (5 in, 9 out), auth, catalog-api, pay-api, event-bus (6 in, 5 out).

`layout=radial centre=<node>` puts one node in the middle and each ring one step further away, in either direction: what it uses and what uses it. Use it to answer "what touches this?". A small graph needs no `:::llm`: its LLM view is the graph itself, as lines.

Graph "What touches the sign-in service": 12 nodes in 2 groups, 12 edges (a -> b: a links to b).

Nodes by group:
- callers "calls sign-in": web, mobile, admin, cli
- needs "sign-in calls": sessions, users, mfa, tokens
- in no group: auth "sign-in", sms, kms, postgres

Edges:
web -> auth
mobile -> auth
admin -> auth
cli -> auth
auth -> sessions
auth -> users
auth -> mfa
auth -> tokens
mfa -> sms: codes
tokens -> kms: signing keys
sessions -> postgres
users -> postgres

Most connected: auth (4 in, 4 out), sessions (1 in, 1 out), users (1 in, 1 out), mfa (1 in, 1 out), tokens (1 in, 1 out).

`static` draws the part still: the groups with how many nodes each holds, and a line that counts the edges between two groups. It is for print, a PDF, an email, or a reader who asks for less motion.

Graph "The same sign-in graph, drawn still": 12 nodes in 2 groups, 12 edges (a -> b: a links to b).

Nodes by group:
- callers "calls sign-in": web, mobile, admin, cli
- needs "sign-in calls": sessions, users, mfa, tokens
- in no group: auth "sign-in", sms, kms, postgres

Edges:
web -> auth
mobile -> auth
admin -> auth
cli -> auth
auth -> sessions
auth -> users
auth -> mfa
auth -> tokens
mfa -> sms: codes
tokens -> kms: signing keys
sessions -> postgres
users -> postgres

Most connected: auth (4 in, 4 out), sessions (1 in, 1 out), users (1 in, 1 out), mfa (1 in, 1 out), tokens (1 in, 1 out).

## Http

An `http` block is a request and, after a blank line, its response, as text. It is drawn as a method tag and the address (the query split into names and values), the headers (folded after six), the body (JSON is pretty and can be folded), the status as a tag coloured by its class, and a button that copies the request as `curl`. A secret in a header is never written out: use a placeholder such as `<token>`.

```http
POST /v1/orders?dry_run=false&currency=usd HTTP/1.1
Host: api.example.com
Content-Type: application/json
Accept: application/json
Authorization: Bearer <token>
Idempotency-Key: 6f1c2d0e
User-Agent: shop-cli/2.4
X-Request-Id: req-7a91

{ "sku": "tea", "qty": 2, "ship": { "to": "198.51.100.7", "express": true }, "notes": ["gift", "no receipt"] }

HTTP/1.1 201 Created
Content-Type: application/json
Location: /v1/orders/o-7

{ "id": "o-7", "status": "open", "total": { "amount": 1840, "currency": "usd" } }
```

With `static` the whole message is drawn: every header, the whole JSON tree, no button.

```http static=
HTTP/1.1 404 Not Found
Content-Type: application/json
Cache-Control: no-store

{ "error": "not_found", "detail": { "resource": "order", "id": "o-9" } }
```

## Log

A fence named `log`. It reads JSON lines, logfmt and the common "time level message key=value" shape. The filter box speaks **LogQL** (Grafana Loki's query language): `{level="error"}`, `|= "timeout"`, `!= "health"`, `|~ "5\\d\\d"`, `| status >= 500`; a box that starts with neither `{` nor `|` is plain words. Only the query half of LogQL is read, never metric queries. `filter=` is the starting filter. The author (often an agent) points at what matters with `@highlight` lines: a LogQL filter or `line 3-5`, a colour word and the reason in quotes.

Highlights: lines 4-5 match |= "timeout": every failure is the same timeout; line 3: the first sign.

```log labels="app=shop, env=prod" filter={level=~"warn|error"}
2026-11-20T10:08:01Z info  deploy started version=1.4
2026-11-20T10:08:12Z info  migration applied name=0042
2026-11-20T10:09:03Z warn  cache miss rate high rate=0.41
2026-11-20T10:09:05Z error request failed path=/cart status=500 err="timeout after 30s" span=checkout trace=request (×2)
```

## Lottie

A Lottie file is a drawing that moves. This one was written by hand for the sample: a box fills with blocks, one row at a time, then a tick appears. It plays while it is on screen, stops off it, and shows one still frame when the reader asks for less motion. The `colours:` line maps names inside the file to theme colours, so it follows light and dark.

Lottie animation: What happens while it builds. A box fills with blocks, one row at a time, then a tick appears.

## Map and routes

Places and written routes work without a tile provider. A dashed route has no road geometry; the host may supply its own router.

Map: Walk to the garden.

Places:
- Library (51.507, -0.128): Meet by the entrance
- Garden (51.511, -0.117)

Routes:
- Morning walk, on foot: Library -> 51.508, -0.123 -> Garden (about 900 m in a straight line)

Steps:
1. Meet at the library.
2. Follow the written route.

Country values, US states and flows share the same map and value list.

Map: Daily flow.

Values: 3 regions, from 39.5 to 83.2.

| region | value (units per day) |
| --- | --- |
| Germany | 83.2 |
| France | 68.4 |
| California | 39.5 |

Arcs:
- Germany -> France: 24 units per day (Daily flow)

The globe uses the same data; with no WebGL it falls back to the flat map.

Map: Global flow.

Values: 2 regions, from 68.4 to 83.2.

| region | value (units per day) |
| --- | --- |
| Germany | 83.2 |
| France | 68.4 |

Arcs:
- Germany -> France: 24 units per day (Daily flow)

Shown as a turning globe.

A static globe is a flat map with all its values, ready to print.

Map: A still map.

Values: 2 regions, from 68.4 to 83.2.

| region | value |
| --- | --- |
| Germany | 83.2 |
| France | 68.4 |

Shown as a turning globe.

## Maths (`$...$`, `$$...$$` and `math`)

The area of a circle is $A = \pi r^2$, and a sum of the first $n$ numbers is:

$$
\sum_{k=1}^{n} k = \frac{n(n+1)}{2}
$$

The same in a `math` block, with a fraction, a root and a matrix:

$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \qquad
\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}
$$

Prices stay text: it costs $5 and $10, and `$not maths$` in code is left alone.

## PDF

pdf.js draws the pages on a canvas, and its text layer makes the words selectable and searchable. The file below was printed from a small made-up document. The viewer works a page at a time; try the search box, the outline and the zoom.

PDF: A sample document, media/sample.pdf.

`view=scroll` lays every page out in one scrolling column and draws the ones near the window.

PDF: The same file, scrolling, media/sample.pdf.

## Citations (`[@key]` and `references`)

A mark in the text opens its entry: marks make a study easier to read [@smith2020, p. 12], and two together are one group [@smith2020; @lee2019]. Hover, focus or tap a mark for the entry.

References:
- [lee2019] Lee, K. (2019). Notes on lists. Example Press. Retrieved November 20, 2026, from https://example.com/notes
- [smith2020] Smith, J., & Lee, K. (2020). A study of marks. Journal of Studies, 12(3), 10-20. https://doi.org/10.1234/jbs.2020.4

## Sankey

A flow a line, `from -> to: amount`; `node <id> "label" [colour]` only to name or colour one. Hover, tap or focus a band to light its path and read its share.

Sankey: Where a request's time goes (ms).

| from | to | amount (ms) |
| --- | --- | --- |
| request | auth | 12 |
| request | handler | 80 |
| handler | Postgres | 55 |
| handler | render | 20 |
| handler | Redis | 5 |

Flows under a step appear in it: the bands grow out of their source. In a narrow column, a sankey with more than three columns runs top to bottom.

Sankey: Where the month's budget goes (USD).

Step 1: The money in and the big three

| from | to | amount (USD) |
| --- | --- | --- |
| Revenue | People | 62000 |
| Revenue | Infrastructure | 21000 |
| Revenue | tools | 6000 |
| Revenue | reserve | 11000 |

Step 2: Infrastructure breaks down

| from | to | amount (USD) |
| --- | --- | --- |
| Infrastructure | compute | 12500 |
| Infrastructure | storage | 5200 |
| Infrastructure | network | 3300 |

Step 3: Compute splits by team

| from | to | amount (USD) |
| --- | --- | --- |
| compute | web | 7000 |
| compute | data | 4100 |
| compute | ml | 1400 |

## Sequence

Who calls whom, in order. A call is a solid arrow, a reply a dashed one; a block (`loop`, `alt`, `opt`, `par`) frames the messages inside it. An LLM reads the messages as a numbered list.

Sequence: One init call. Participants: developer (actor), CLI, template container.

1. dev -> cli: scaffold create
2. cli -> tc: init call, all answers
3. tc --> cli: question reply
note tc: the script stopped at a question
loop until no question is left:
   4. cli -> tc: init call, one more answer
   5. tc --> cli: question reply
6. cli --> dev: project written

With `@step` lines the story builds up one call a step: the earlier calls fade and the new one draws itself.

Sequence. Participants: CLI, template container.

The CLI sends an init call with every answer it holds.
1. cli -> tc: init call: all answers
The script stops at a question and sends it back.
2. tc --> cli: question reply
The next init call carries one answer more.
3. cli -> tc: init call: one more answer

## Sparkline in a sentence (`:spark[...]`)

`:spark[3,5,2,8,9]` draws a tiny line the height of the text. Add `bar` for bars and a colour word for the colour: `:spark[3,5,2,8,9 bar good]`. Hover, tap or focus it to see the numbers. A model reads `(3, 5, 2, 8, 9)`.

Sign-ups this week were (120, 135, 128, 160, 182, 171, 205) and rising, errors fell to (14, 12, 15, 9, 7, 4, 3), and the queue is (5, 4, 6, 22, 31, 18, 9) after Wednesday's spike.

## Stacktrace

A fence named `stacktrace`. It reads a trace as printed by Go, .NET, Bun or Node, Dart, Java or Python: the error line, each cause in its own block, threads as groups. Library frames fold into one bar; frames of your own code (`app=`) are marked, and with `repo=` and `strip=` they name the file and line at the page’s pinned commit (when its front matter has a matching pins entry). Tap a frame to open it.

```stacktrace lang="go" app="example.com/shop" repo="example.com/shop" strip="/src/shop/"
panic: runtime error: index out of range [3] with length 3

goroutine 18 [running]:
example.com/shop/cart.(*Cart).Item(...)
	/src/shop/cart/cart.go:42
example.com/shop/api.(*Server).getItem(0xc0001a2000, {0x7f1c, 0xc000124000}, 0xc000188000)
	/src/shop/api/items.go:88 +0x1d4
net/http.HandlerFunc.ServeHTTP(0xc000010040, {0x7f1c, 0xc000124000}, 0xc000188000)
	/usr/local/go/src/net/http/server.go:2136 +0x29
net/http.serverHandler.ServeHTTP({0xc00011e000}, {0x7f1c, 0xc000124000}, 0xc000188000)
	/usr/local/go/src/net/http/server.go:2938 +0x8e
```

## Stack traces in the other five languages

`lang=` may be left out when the trace says it. Each trace below is read by its own parser.

```stacktrace app="Acme.Shop"
System.InvalidOperationException: Cart failed
 ---> System.ArgumentException: Index out of range (Parameter 'i')
   at Acme.Shop.Cart.Item(Int32 i) in /src/shop/Cart.cs:line 42
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   --- End of inner exception stack trace ---
   at Acme.Shop.Api.GetItem(Int32 id) in /src/shop/Api.cs:line 88
   at Microsoft.AspNetCore.Mvc.Invoke()
```

```stacktrace app="/src/shop"
Error: request failed
    at fetchItem (file:///src/shop/api.ts:42:11)
    at async handler (/src/shop/server.ts:10:3)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at run (/src/shop/node_modules/lib/index.js:5:9)
Caused by: TypeError: bad json
    at parse (/src/shop/util.ts:7:2)
```

```stacktrace app="shop"
Unhandled exception:
Bad state: no element
#0      Cart.item (package:shop/cart.dart:42:7)
#1      Api.get (package:shop/api.dart:10:3)
<asynchronous suspension>
#2      _rootRunUnary (dart:async/zone.dart:1407:47)
#3      State.setState (package:flutter/src/widgets/framework.dart:1100:9)
```

```stacktrace app="com.acme.shop"
java.lang.IllegalStateException: cart failed
	at com.acme.shop.Cart.item(Cart.java:42)
	at com.acme.shop.Api.get(Api.java:88)
	at java.base/java.util.ArrayList.get(ArrayList.java:427)
	... 12 more
Caused by: java.io.IOException: boom
	at com.acme.shop.Db.read(Db.java:7)
	... 5 common frames omitted
```

```stacktrace app="/src/app"
Traceback (most recent call last):
  File "/src/app/db.py", line 5, in read
    raise OSError("boom")
OSError: boom

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/src/app/main.py", line 10, in <module>
    run()
  File "/usr/lib/python3.11/site-packages/x.py", line 5, in run
    raise ValueError("bad")
ValueError: bad
```

## Stats

**Stat tiles are the row of big numbers at the top of a dashboard:** each tile is one figure with its name, how it changed and, if given, a tiny line of its recent values, so a reader takes in the state of something at a glance before reading on. The colour word in brackets says whether the change is good or bad (a fall in latency is good); it is never guessed from the sign.

Stat tiles: The week.
- Requests: 1.2 M (+12%, last 7 days)
- p95 latency: 180 ms (-8%)
- Errors: 0.4% (+0.1, of requests)
- Cost: USD 412 (+3%)

A tile can also carry a glyph, a trend word and a sub-line. This block is `static`: it draws the tiles whole, the same in print.

Stat tiles: Garden at a glance.
- Yield: 251 kg (+8%, this season, Across three plots, trend up)
- Water: 120 L (-6%, this week, Stored rainwater, trend down)
- Beds: 30 (Ready for planting, trend flat)

## Timeline

One line per event, oldest first; an indented line is a detail. A year, a month or a day.

Timeline: A release plan.
- 2026-05-04: Design review — Scope and owners agreed
- 2026-09: First release
- 2026-11-21: Old drawing code removed — New drawn parts take their place
- 2026-11-23: Version 2 ships (the big one)

With `dir=across` a wide screen lays it out sideways; a phone is always top to bottom. With steps, the events come in one group at a time.

Timeline: A build-up.
- 2026: The idea
The first half of the year.
- 2026-03: A prototype
- 2026-06: A first user
The second half.
- 2026-09: First release
- 2026-12: Version 2

## Trace waterfall

A request across services. Fold spans, search, zoom the mini map, or switch to Flame.

One checkout request, 842 ms, across 8 services. The payment provider call (258–804 ms) timed out, so charge.card and the request failed with a 504, and a retry was queued. Stock was reserved in parallel with the cart load and is not on the critical path; UPDATE stock in db waited 94 ms on a row lock.

Trace: GET /health. 3 spans across 3 services (web, api, db); 9 ms in all. Each line is a span: its service, name, when it started and ended (ms) and how long it took; indented lines are inside the line above; "log" lines belong to the span above them.

web GET /health 0–9 (9 ms)
  api health.check 1–8 (7 ms)
    db SELECT 1 2–6 (4 ms)

Critical path (what the end waited for): GET /health > health.check > SELECT 1

Slowest spans (by the time each ran itself, children left out):
- SELECT 1 (db): 4 ms of its own, 4 ms in all
- health.check (api): 3 ms of its own, 7 ms in all
- GET /health (web): 2 ms of its own, 9 ms in all

Errors: none.

Trace: A flat list. 4 spans across 3 services (web, api, db); 60 ms in all. Each line is a span: its service, name, when it started and ended (ms) and how long it took; indented lines are inside the line above; "log" lines belong to the span above them.

web GET /orders 0–60 (60 ms)
  api orders.list 3–55 (52 ms)
    db SELECT orders 8–40 (32 ms) rows=25
    api orders.render 41–54 (13 ms)

Critical path (what the end waited for): GET /orders > orders.list > SELECT orders > orders.render

Slowest spans (by the time each ran itself, children left out):
- SELECT orders (db): 32 ms of its own, 32 ms in all
- orders.render (api): 13 ms of its own, 13 ms in all
- GET /orders (web): 8 ms of its own, 60 ms in all
- orders.list (api): 7 ms of its own, 52 ms in all

Errors: none.

## Venn

Two to four sets in fixed, even shapes. It is not drawn to scale on purpose: the names are written in the regions. Hover, tap or focus a region to read its items; on a narrow screen they are listed under the figure.

Venn: Who writes what. Sets: Go, Rust, Zig.
Go only: Ana, Ben
Rust only: Eve, Fay
Zig only: 4 people
Go and Rust only: Cy
all three: Dee (writes all three)

With steps, one set comes in at a time, with its regions.

Venn: Adding one set at a time. Sets: Readers, Writers, Reviewers.
Readers and writers overlap.
Readers only: Ana, Ben
Writers only: Dee
Readers and Writers only: Cy
Reviewers join; some people do all three.
Reviewers only: Eve
all three: Fay

## Video

A video part keeps the browser's video and draws its own controls: a big play button on the poster, a bar with the chapters as segments (point at it to see the chapter and a still), captions drawn by us from a WebVTT file, picture in picture and full screen. The picture here is a made-up moving gradient.

Video: Colours drifting (0:12), media/sample.mp4. Chapters: 0:00 Warm; 0:04 Cool; 0:08 Bright. Captions: English.

0:00 The colours drift slowly across the frame.
0:04 Captions are drawn by the part from a WebVTT file.
0:08 Press C to turn them off, and F for full screen.

`clip` is for a short screen recording that would otherwise be a GIF: it plays muted and in a loop while it is on screen, stops when it scrolls away, and stays still when the reader asks for less motion.

Video: A short silent loop, media/clip.mp4.

## Wardley map

Components by evolution (left to right) and visibility (top to bottom). Positions are named keys, so the two numbers cannot be swapped.

Wardley map: A tea shop. Evolution left to right: genesis, custom built, product, commodity; visibility top to bottom.

| component | evolution | visible |
| --- | --- | --- |
| Customer (anchor) | product (0.60) | 0.95 |
| Cup of tea | product (0.60) | 0.80 |
| Tea | commodity (0.80) | 0.60 |
| Kettle | custom built (0.40) | 0.45 |
| Power | commodity (0.85) | 0.10 |

Customer needs Cup of tea
Cup of tea needs Tea, Kettle
Kettle needs Power
Kettle evolves to product (0.65) as "smart kettle"
Note (genesis (0.10), visible 0.30): Kettles are a product now

Steps:
1. Today the kettle is a product we buy.
2. A smart kettle moves it further to the right.

## Weather

A forecast written in the source; it never fetches. The units menu on the part switches °C and °F, km/h, mph, m/s and knots, mm and inches, hPa and inHg, and your choice is remembered in this browser.

Weather: San Francisco, times in America/Los_Angeles. Temperatures are given in °C and °F.

| day | sky | high / low | rain | wind | pressure |
| --- | --- | --- | --- | --- | --- |
| Sun 22 Nov 2026 | sunny | 18 °C (64 °F) / 11 °C (52 °F) | 0% | 12 km/h | 1021 hPa |
| Mon 23 Nov 2026 | partly cloudy | 16 °C (61 °F) / 10 °C (50 °F) | 10% | 15 km/h | 1018 hPa |
| Tue 24 Nov 2026 | rain | 14 °C (57 °F) / 9 °C (48 °F) | 80%, 6 mm | 30 km/h | 1004 hPa |
| Wed 25 Nov 2026 | storm | 13 °C (55 °F) / 8 °C (46 °F) | 95%, 14 mm | 45 km/h | 996 hPa |
| Thu 26 Nov 2026 | cloudy | 12 °C (54 °F) / 7 °C (45 °F) | 30%, 1 mm | 20 km/h | 1009 hPa |

Notes:
- Wed 25 Nov 2026: Ferry may stop

Hours work the same way, with one temperature, here written in °F and mph.

Weather: Oakland, times in America/Los_Angeles. Temperatures are given in °C and °F.

| time | sky | temperature | rain | wind |
| --- | --- | --- | --- | --- |
| Tue 24 Nov 2026 06:00 | fog | 9 °C (48 °F) | 5% | 4 mph |
| Tue 24 Nov 2026 09:00 | cloudy | 11 °C (52 °F) | 20% | 8 mph |
| Tue 24 Nov 2026 12:00 | drizzle | 14 °C (57 °F) | 60% | 11 mph |
| Tue 24 Nov 2026 15:00 | rain | 15 °C (59 °F) | 85% | 14 mph |
| Tue 24 Nov 2026 18:00 | rain | 13 °C (55 °F) | 70% | 12 mph |
| Tue 24 Nov 2026 21:00 | cloudy | 11 °C (51 °F) | 25% | 7 mph |

The same forecast with `static`: drawn whole in the fence's unit, with no menu.

Weather: Sydney. Temperatures are given in °C and °F.

| day | sky | high / low | rain | wind |
| --- | --- | --- | --- | --- |
| Sun 22 Nov 2026 | sunny | 24 °C (75 °F) / 17 °C (63 °F) | 0% | 14 km/h |
| Mon 23 Nov 2026 | partly cloudy | 22 °C (72 °F) / 16 °C (61 °F) | 20% | 18 km/h |
| Tue 24 Nov 2026 | sleet | 3 °C (37 °F) / -1 °C (30 °F) | 70% | 22 km/h |

Notes:
- Tue 24 Nov 2026: Ice on the road
<!-- generated by scripts/parts.ts from the folders under src/parts/: do not edit -->

The folder parts

Every part that lives in its own folder, with its sample. The Format page shows each as source, drawing and LLM view.

Audio

An audio part is a player of our own. The wave is drawn from a small peaks file and moves with the sound; chapters split it, a marker flags one moment, and the transcript follows the voice.

A page that talksWelcome
0:00/0:57

wave=mirror reflects the wave, wave=dots draws it in dots, wave=live shows a window of the sound that scrolls past "now", and compact makes one row. The colour is a word (tone=c4), never a hex value.

Mirror wave, in family colour 4 
0:00/0:57
0:00/0:57

Calendar

The host supplies no clock here: Today returns to the authored date. Explore the views, switch calendars and open events. A narrow part starts with three days.

Release week
Mon23
Tue24
Wed25
Thu26
Fri27
Sat28
Sun29
all day
01:0002:0003:0004:0005:0006:0007:0008:0009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:00

Arrows move by a day or a week · d w m l change the view · t is today

The static form keeps a complete dated list without controls.

Release checklist

Europe/London

  1. Stand-upTeam
  2. Stand-upTeam
  3. Code freeze
  4. Stand-upTeam

Chart kinds

Eight more kinds of a chart, each a YAML map with kind: at the top: raw values are counted, quartiled or smoothed when the page is built, so a model reads the table. Hover, tap or focus a bin, box, stage, block or day for its card; the arrow keys walk the data.

How long a request takes
Show the numbers as a table
fromtocount
25 ms38.83 ms1
38.83 ms52.67 ms2
52.67 ms66.5 ms3
66.5 ms80.33 ms7
80.33 ms94.17 ms11
94.17 ms108 ms5
108 ms121.83 ms7
121.83 ms135.67 ms4
135.67 ms149.5 ms1
149.5 ms163.33 ms1
163.33 ms177.17 ms1
177.17 ms191 ms1
Checkout time by day
Show the numbers as a table
categoryminp25medianp75maxoutliers
Mon1m 40s1m 51s2m 3s2m 14s2m 49s2m 49s
Tue1m 57s2m 13s2m 25s2m 33s2m 56snone
Wed1m 56s2m 17s2m 36s2m 42s4m 20s4m 20s
Response time by service
Show the numbers as a table
categoryminp25medianp75maxoutliers
api57 ms90.5 ms101 ms105 ms124 ms57 ms
search119 ms148.25 ms169 ms204 ms237 msnone
checkout201 ms213 ms240.5 ms247.75 ms262 msnone
From visit to paid
Visited the site48,200100%−82.0%Created an account8,70018.0%−52.9%Started a trial4,100−67.1%Paid1,350
1Last quarter.
1 / 2
Show the numbers as a table
stagecountof the firstof the one before
Visited the site48,200100%
Created an account8,70018.0%18.0%
Started a trial4,1008.5%47.1%
Paid1,3502.8%32.9%
Monthly revenue bridge
€84K+€12.5K−€9.1K−€2.3K€85.1K+€4.8K€89.9K
Show the numbers as a table
stepchangerunning total
October€84,000€84,000
New€12,500€96,500
Churn-€9,100€87,400
Refunds-€2,300€85,100
Subtotaltotal€85,100
Price rise€4,800€89,900
Novembertotal€89,900
Where the disk went

Click or tap a block with a path to open it; the path above takes you back.

Show the numbers as a table
namevaluesharepath
Media556.9 GiB65.6%Media
· Videos383.7 GiB45.2%Media / Videos
· Photos173.2 GiB20.4%Media / Photos
Code162.1 GiB19.1%Code
· Repos80.1 GiB9.4%Code / Repos
· Build cache82 GiB9.6%Code / Build cache
Backups130.4 GiB15.4%Backups
Lines of code by team and area (thousands)
All341

Click or tap a ring to open it; the centre or the path above takes you back.

Show the numbers as a table
namevaluesharepath
Platform15946.6%Platform
· Runtime9327.3%Platform / Runtime
· Storage6619.4%Platform / Storage
Product16448.1%Product
· Web9527.9%Product / Web
· Mobile6920.2%Product / Mobile
Docs185.3%Docs
Commits, September to November
SepOctNov

Swipe the days sideways; arrow keys move between days.

Show the numbers as a table
datevalue
2026-09-017
2026-09-026
2026-09-035
2026-09-074
2026-09-092
2026-09-122
2026-09-144
2026-09-1510
2026-09-161
2026-09-173
2026-09-185
2026-09-218
2026-09-239
2026-09-245
2026-09-253
2026-09-262
2026-09-271
2026-09-289
2026-09-298
2026-09-307
2026-10-018
2026-10-029
2026-10-041
2026-10-055
2026-10-069
2026-10-112
2026-10-129
2026-10-139
2026-10-155
2026-10-166
2026-10-171
2026-10-181
2026-10-208
2026-10-213
2026-10-226
2026-10-236
2026-10-241
2026-10-251
2026-10-262
2026-10-297
2026-10-307
2026-10-311
2026-11-010
2026-11-044
2026-11-065
2026-11-070
2026-11-080
2026-11-092
2026-11-112
2026-11-126
2026-11-138
2026-11-142
2026-11-150
2026-11-168
2026-11-176
2026-11-183
2026-11-191
2026-11-212
2026-11-222
2026-11-233
2026-11-248
2026-11-267
2026-11-2710
2026-11-280
2026-11-291
2026-11-307

Each kind takes title, tone where it makes sense, y: { label, format, currency } for the value axis (the histogram's is x), and steps: that change data, marks or bins from one step to the next.

Compare

A comparison matrix puts options side by side, one line for each thing you judge them on. The first line names the options; every other line is a criterion and one value for each option, in the same order. A note in round brackets shows when a reader hovers, focuses or taps the value. With winner=on the best value of each yes/no, scored or good/bad row is marked; pick= flags the option you recommend.

Which queue?
CriterionRedis Streams5 best · mostOur pickKafka3 bestSQS3 best
Ordering
YesBest in this row
YesBest in this row
Runs itself
No
No
YesBest in this row
Throughput
3
5Best in this row
3
Latency lower is better
12 ms
25 ms
Replay old messages
No
Cost at our size
GoodBest in this row
Bad
Team knows it
YesBest in this row
YesBest in this row

With view=single, a phone shows one option at a time, chosen from buttons. Here the values are plain words and good, warn and bad, so no row is marked as the best.

Where to host the docs
CriterionOwn serversStatic hostWiki service
Set-up time
a week
an hour
a day
Custom domain
Good
Good
Search
Good
Who can edit
developers
developers
anyone with an account

Compare image

A before-and-after picture lays two images of the same size on top of each other, with a bar between them. Drag the bar (or anywhere on the picture), press the arrow keys, or tap the picture to flip from one to the other; the two labels jump to a whole image. Each image line gives the address and the alt text in quotes, which is what a screen reader and an LLM read. The address goes through the host's URL policy (a relative path, http or https; never data:). The two sample images are the files before-light.svg and after-dark.svg in this part's media/ folder: a host serves that folder as media/.

A dashboard, light and dark
The same dashboard on a dark pageA dashboard with four tiles and a bar chart on a light page

Diff

A diff block holds what git diff prints. It is drawn as a diff view: a file header with how much changed, line numbers on both sides, the changed words marked inside a changed line, and long unchanged runs folded. It is split on a wide part and unified on a narrow one; the buttons switch it, and view=split or view=unified fixes it. On a phone the lines do not wrap: the numbers and the sign stay in view while the code scrolls inside its box.

1 file changed+5−4

+5−4

… 11 lines
@@ -12,9 +12,10 @@ export function start(config: Config) {
1212 const port = config.port ?? 8080;
13removed: const host = "localhost";
13added: const host = config.host ?? "0.0.0.0";
1414 const server = createServer(handler);
15removed: server.listen(port, host);
15added: server.listen(port, host, () => log.info("listening", { port, host }));
1616 register(server);
1717 watch(config);
1818 return server;
… 27 lines
@@ -48,6 +49,6 @@ export function stop(server: Server) {
4849 unwatch();
49removed: server.close();
50added: server.close(() => log.info("closed"));
5051}
… 26 lines
@@ -80,18 +81,19 @@ export function reload(server: Server) {
8081 const next = readConfig();
81removed: if (next.port !== current.port) restart(server);
82added: if (next.port !== current.port || next.host !== current.host) restart(server);
8283 current = next;
8384 emit("reload", next);
8485 mark("reload");
9091 index();
9192 compact();
9293 verify();
94added: log.debug("reloaded", { port: next.port });
9395 return server;
9496}
… 11 lines
@@ -12,9 +12,10 @@ export function start(config: Config) {
12 const port = config.port ?? 8080;12 const port = config.port ?? 8080;
13 const host = "localhost";13 const host = config.host ?? "0.0.0.0";
14 const server = createServer(handler);14 const server = createServer(handler);
15 server.listen(port, host);15 server.listen(port, host, () => log.info("listening", { port, host }));
16 register(server);16 register(server);
17 watch(config);17 watch(config);
18 return server;18 return server;
… 27 lines
@@ -48,6 +49,6 @@ export function stop(server: Server) {
48 unwatch();49 unwatch();
49 server.close();50 server.close(() => log.info("closed"));
50}51}
… 26 lines
@@ -80,18 +81,19 @@ export function reload(server: Server) {
80 const next = readConfig();81 const next = readConfig();
81 if (next.port !== current.port) restart(server);82 if (next.port !== current.port || next.host !== current.host) restart(server);
82 current = next;83 current = next;
83 emit("reload", next);84 emit("reload", next);
84 mark("reload");85 mark("reload");
90 index();91 index();
91 compact();92 compact();
92 verify();93 verify();
94 log.debug("reloaded", { port: next.port });
93 return server;95 return server;
94}96}

With static the diff is drawn whole, with no button: every file open, and a folded run only says how many lines it holds.

1 file changed+1−1

src/greet.ts+1−1

@@ -1,4 +1,4 @@
11export function greet(name: string) {
2removed: return "Hello, " + name;
2added: return `Hello, ${name}!`;
33}
@@ -1,4 +1,4 @@
1export function greet(name: string) {1export function greet(name: string) {
2 return "Hello, " + name;2 return `Hello, ${name}!`;
3}3}

Downloads

A card for each file: a type icon, its size, a plain download link, and a checksum that copies on a tap, with the line that checks it. Nothing is counted and nothing is fetched until the reader presses Download.

Files for this page

  • The report, first pagesreport.pdf209 KB
    Check it with shasum -a 256 report.pdf
    Download
  • The spoken sampletalk.mp3229 KB
    Check it with shasum -a 256 talk.mp3
    Download
  • The hand-written animationbuild.json6.4 KBA Lottie file with no expressions and no images.
    Download
  • Source archive (an example address)durian-markdown-0.7.0.tar.gz1.2 MBThe address is an example; nothing is fetched until you press Download.
    Check it with shasum -a 256 durian-markdown-0.7.0.tar.gz
    Download
  • Raw datarequests.csv15.4 KBOne row per request.
    Download

Explore

A fence in the data's own language, followed by explore, becomes a foldable tree with a search box, a copy-path button on every key and a jq subset query box. It reads JSON, YAML or CSV (a CSV's rows become objects). query= is the starting query. The box runs our own small jq (the "jq subset": paths, pipes, select, map, keys, length, sort_by, group_by, to_entries, test, string interpolation, building objects and arrays); a query that needs more work than a page may use says so, and a function outside the subset is named, never answered wrongly. It lacks assignment (|=), reduce, foreach, def, paths, del, sub, gsub, match and walk.

One orderjson
2 results
  • result 1{
    • sku"tea"
    • qty2
    • price3.5
  • result 2{
    • sku"pot"
    • qty3
    • price12.25
What the query box understands (jq subset)

Has: paths and [] and slices, pipes, comma, select, map, map_values, keys, values, length, sort_by, group_by, unique_by, min_by, max_by, to_entries, from_entries, with_entries, add, has, contains, inside, any, all, flatten, test, startswith, endswith, split, join, first, last, nth, limit, range (bounded), if, try, //, as $x, string interpolation, @csv @tsv @json @text @html @uri @sh, array and object building, comparisons, and, or, not, arithmetic.

Missing: assignment (|=, =, +=), reduce, foreach, def, import, paths, path, del, walk, sub, gsub, match, capture, scan, recurse(f), until, while, repeat, env, input, destructuring, and any function not listed.

The same reader takes YAML and CSV. TOML exploration is refused until a TOML reader is available; the TOML example below is ordinary code:

A service configyaml
1 result
  • {
    • cpu"500M"
    • mem"256MI"
What the query box understands (jq subset)

Has: paths and [] and slices, pipes, comma, select, map, map_values, keys, values, length, sort_by, group_by, unique_by, min_by, max_by, to_entries, from_entries, with_entries, add, has, contains, inside, any, all, flatten, test, startswith, endswith, split, join, first, last, nth, limit, range (bounded), if, try, //, as $x, string interpolation, @csv @tsv @json @text @html @uri @sh, array and object building, comparisons, and, or, not, arithmetic.

Missing: assignment (|=, =, +=), reduce, foreach, def, import, paths, path, del, walk, sub, gsub, match, capture, scan, recurse(f), until, while, repeat, env, input, destructuring, and any function not listed.

toml
[server]
host = "198.51.100.7"
port = 8443
tls = true
[limits]
cpu = "500m"
Latency by regioncsv
1 result
  • "ap-south"
What the query box understands (jq subset)

Has: paths and [] and slices, pipes, comma, select, map, map_values, keys, values, length, sort_by, group_by, unique_by, min_by, max_by, to_entries, from_entries, with_entries, add, has, contains, inside, any, all, flatten, test, startswith, endswith, split, join, first, last, nth, limit, range (bounded), if, try, //, as $x, string interpolation, @csv @tsv @json @text @html @uri @sh, array and object building, comparisons, and, or, not, arithmetic.

Missing: assignment (|=, =, +=), reduce, foreach, def, import, paths, path, del, walk, sub, gsub, match, capture, scan, recurse(f), until, while, repeat, env, input, destructuring, and any function not listed.

Fishbone

Causes by category along a spine into the effect. In a narrow column the spine turns vertical.

Checkout takes 4seconds at p95Peopleon-call is new to theserviceProcessno load test beforea release· only staging hasreal dataToolsthe ORM loads everyline item· one query per lineEnvironmentthe database is inanother region
Checkout takes 4 seconds at p95Peopleon-call is new tothe serviceProcessno load testbefore a release· only staging hasreal dataToolsthe ORM loadsevery line item· one query perlineEnvironmentthe database is inanother region

With steps, the bones come in one at a time, and highlight lights one.

The deploy rolled backConfiga key was renamed inone place onlyTeststhe contract testwas skipped
The deploy rolled backConfiga key was renamedin one place onlyTeststhe contract testwas skipped
1The first two causes.
1 / 2

Flame chart and flame graph

A traced request and folded profiler stacks. Tap a frame to zoom; search highlights matching frames.

One request, traced

Tap a frame to zoom in.

Show the numbers as a table
FrameSelfTotalShare
db.query545445%
respond.write222218.3%
render.page181815%
auth.check121210%
handler.order88066.7%
request6120100%
CPU, 30 seconds

Tap a frame to zoom in.

Show the numbers as a table
FrameSelfTotalShare
db.query30038052.1%
parse12012016.4%
render.page959513%
lock.wait808011%
flush60608.2%
gc45456.2%
accept30304.1%
main0730100%
housekeeping0608.2%
serve067091.8%
handle059581.5%

A carousel shows one image at a time: swipe, use the arrow keys, the buttons or the dots. A tap opens the picture full screen, where pinch, wheel and double tap zoom it, and one finger or the mouse pans.

A grid crops to a ratio (the full picture stays in the lightbox), with the caption under each image.

One image, with zoom.

Gantt

A task line is <id> "label" <start> <end or length> [progress%] [done] [colour]; a start is a date or after <id> ...; milestone is a point; section groups the lines after it. today= draws a line (never the real clock). Hover, tap or focus a bar for its dates and what it waits for; Day, Week and Month change the scale.

Release 2.0
Nov 30Dec 7Dec 14Today

Hover or tap a bar for its dates.

Show the numbers as a table
TaskStartEndWaits for
Design (done)2026-12-012026-12-04
API (60%)2026-12-052026-12-12Design
Screens2026-12-052026-12-10Design
Beta2026-12-132026-12-15API, Screens
Launch (milestone)2026-12-16Beta

Under steps, progress, done and move change the plan as time passes; a slip carries the tasks after it. workdays=on makes lengths skip Saturday and Sunday, and critical=on outlines the longest chain.

A release that slips
Nov 30Dec 7Dec 14Dec 21Dec 28Today

Hover or tap a bar for its dates.

1The plan on 1 December
1 / 3
Show the numbers as a table
TaskStartEndWaits for
Design (done)2026-12-012026-12-04
API (40%)2026-12-072026-12-16Design
Screens2026-12-072026-12-14Design
QA2026-12-172026-12-23API, Screens

Glossary

Terms defined once. Where a term is used in the text, its first use in each section is a button with a dotted underline: hover it, tap it, or focus it and press Enter to read the meaning.

Words we use2
UL · also ubiquitous language
the words a team agrees on and uses in code and in talk
bounded context · also context map
one part of the system with its own words; see the book

Each team keeps its own inside a . The second use of UL in the same section stays plain text: UL.

Graph

A graph is for finding your way around a big network: what uses what, and what breaks if one part goes. Write group and node lines, then one edge a line (a -> b, with a label in quotes if it needs one). A node an edge names and no line declares is added (here the outside libraries). layout=layers puts each package above what it uses. Explore it: search a package, tap one to focus it and its neighbours (1 or 2 steps out), fold a group into one box, pan and zoom; the list beside the graph shows its links in and out. A graph this size reads as over 400 tokens, so the :::llm after it says the same in short.

A shop's packages, and what each one uses
5103312282223apps4user interface5domain9data access6core6build and test3reactchart.jszodpgioredisundicidate-fns

Turn on scripts to explore every node.

layout=force pulls linked services together and pushes the rest apart, so the clusters show. It fits calls between services, where there is no top or bottom. An id may carry a numbered range: node db-orders-{1..6} in data declares six shards, and orders -> db-orders-{1..6} draws a line to each. Fold a group (beside the graph, or a double tap on its box) and its lines join on one box with a count; Fold groups folds them all. A graph over 300 nodes, or one that would be drawn too small to touch in its box (a phone), starts with every group folded. Its LLM view is the nodes by group, the edges as a -> b lines, and the most connected nodes: here far over 400 tokens, so a :::llm says it in short.

Calls between the services of a shop
10118364214417832334322edge15identity15catalog15orders15payments15fulfilment15data stores15platform15

Turn on scripts to explore every node.

layout=radial centre=<node> puts one node in the middle and each ring one step further away, in either direction: what it uses and what uses it. Use it to answer "what touches this?". A small graph needs no :::llm: its LLM view is the graph itself, as lines.

What touches the sign-in service
442calls sign-in4sign-in calls4sign-insmskmspostgres

Turn on scripts to explore every node.

static draws the part still: the groups with how many nodes each holds, and a line that counts the edges between two groups. It is for print, a PDF, an email, or a reader who asks for less motion.

The same sign-in graph, drawn still
442calls sign-in4sign-in calls4sign-insmskmspostgres

The groups, with how many nodes each holds; a line counts the edges between two groups. 12 nodes · 12 edges

Http

An http block is a request and, after a blank line, its response, as text. It is drawn as a method tag and the address (the query split into names and values), the headers (folded after six), the body (JSON is pretty and can be folded), the status as a tag coloured by its class, and a button that copies the request as curl. A secret in a header is never written out: use a placeholder such as <token>.

Create an order
POSTapi.example.com/v1/orders?dry_run=false&currency=usdHTTP/1.1
Host
api.example.com
Content-Type
application/json
Accept
application/json
Authorization
Bearer <token>
Idempotency-Key
6f1c2d0e
User-Agent
shop-cli/2.4
{
"sku": "tea",
"qty": 2,
"ship": {
"to": "198.51.100.7",
"express": true
},
"notes": [
"gift",
"no receipt"
]
}
201CreatedHTTP/1.1
Content-Type
application/json
Location
/v1/orders/o-7
{
"id": "o-7",
"status": "open",
"total": {
"amount": 1840,
"currency": "usd"
}
}

With static the whole message is drawn: every header, the whole JSON tree, no button.

404Not FoundHTTP/1.1
Content-Type
application/json
Cache-Control
no-store
{
"error": "not_found",
"detail": {
"resource": "order",
"id": "o-9"
}
}

Log

A fence named log. It reads JSON lines, logfmt and the common "time level message key=value" shape. The filter box speaks LogQL (Grafana Loki's query language): {level="error"}, |= "timeout", != "health", |~ "5\\d\\d", | status >= 500; a box that starts with neither { nor | is plain words. Only the query half of LogQL is read, never metric queries. filter= is the starting filter. The author (often an agent) points at what matters with @highlight lines: a LogQL filter or line 3-5, a colour word and the reason in quotes.

The failed deployapp=shopenv=prod
Highlights
3 of 5 lines match {level=~"warn|error"}
  1. 32026-11-20T10:09:03Z10:09:03warn cache miss rate high rate=0.41
  2. 4–52026-11-20T10:09:05Z10:09:05error request failed path=/cart status=500 err="timeout after 30s" span=checkout trace=request×2
What the filter understands (LogQL subset)

Has: a selector {level="error", app=~"shop|cart"} over the labels and the fields of each line; line filters |= != |~ !~ ; | json and | logfmt; field filters like | status >= 500 and | duration > 2s (joined by and, or, a comma). Plain words mean |= "words".

Missing: metric queries (rate, count_over_time, sum by ...), line_format, label_format, unwrap, pattern, regexp, unpack, drop, keep.

Lottie

A Lottie file is a drawing that moves. This one was written by hand for the sample: a box fills with blocks, one row at a time, then a tick appears. It plays while it is on screen, stops off it, and shows one still frame when the reader asks for less motion. The colours: line maps names inside the file to theme colours, so it follows light and dark.

What happens while it builds

Loading

A box fills with blocks, one row at a time, then a tick appears.

Map and routes

Places and written routes work without a tile provider. A dashed route has no road geometry; the host may supply its own router.

Walk to the garden

A mouse drags · two fingers move and pinch · Ctrl + scroll zooms · arrows and + − on the keyboard

Meet at the library.

1 / 2

Country values, US states and flows share the same map and value list.

Daily flow

A mouse drags · two fingers move and pinch · Ctrl + scroll zooms · arrows and + − on the keyboard

39.550.461.472.3 – 83.2
units per dayNo data
Values · 3 regions · units per day
Flows · 1 arc · units per day

The globe uses the same data; with no WebGL it falls back to the flat map.

Global flow
Loading the globe…

A mouse drags to turn · two fingers turn and pinch · Ctrl + scroll zooms · arrows and + − on the keyboard

68.483.2
units per dayNo data
Values · 2 regions · units per day
Flows · 1 arc · units per day

A static globe is a flat map with all its values, ready to print.

A still map
68.483.2
No data
Values · 2 regions

Maths ($...$, $$...$$ and math)

The area of a circle is A=πr2A = \pi r^2, and a sum of the first nn numbers is:

∑k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2}

The same in a math block, with a fraction, a root and a matrix:

x=−b±b2−4ac2a(1001)x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \qquad \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

Prices stay text: it costs $5 and $10, and $not maths$ in code is left alone.

PDF

pdf.js draws the pages on a canvas, and its text layer makes the words selectable and searchable. The file below was printed from a small made-up document. The viewer works a page at a time; try the search box, the outline and the zoom.

Loading

view=scroll lays every page out in one scrolling column and draws the ones near the window.

Loading

Citations ([@key] and references)

A mark in the text opens its entry: marks make a study easier to read (), and two together are one group (; ). Hover, focus or tap a mark for the entry.

References2
  1. Lee, K. (2019). Notes on lists. Example Press. Retrieved November 20, 2026, from https://example.com/notescited once: 1
  2. Smith, J., & Lee, K. (2020). A study of marks. Journal of Studies, 12(3), 10–20. https://doi.org/10.1234/jbs.2020.4cited 2 times: 12

Sankey

A flow a line, from -> to: amount; node <id> "label" [colour] only to name or colour one. Hover, tap or focus a band to light its path and read its share.

Where a request's time goes

Hover or tap a flow or a node.

Show the numbers as a table
FromTomsShare
requestauth1213%
requesthandler8087%
handlerPostgres5569%
handlerrender2025%
handlerRedis56%

Flows under a step appear in it: the bands grow out of their source. In a narrow column, a sankey with more than three columns runs top to bottom.

Where the month's budget goes
1The money in and the big three
1 / 3

Hover or tap a flow or a node.

Show the numbers as a table
FromToUSDShare
RevenuePeople62,00062%
RevenueInfrastructure21,00021%
Revenuetools6,0006%
Revenuereserve11,00011%

Sequence

Who calls whom, in order. A call is a solid arrow, a reply a dashed one; a block (loop, alt, opt, par) frames the messages inside it. An LLM reads the messages as a numbered list.

loop until no question is leftscaffold createinit call, allanswersquestion replythe scriptstopped at aquestioninit call, onemore answerquestion replyproject written

↔ Swipe to see the whole diagram

With @step lines the story builds up one call a step: the earlier calls fade and the new one draws itself.

init call: allanswers
1The CLI sends an init call with every answer it holds.
1 / 3

Sparkline in a sentence (:spark[...])

:spark[3,5,2,8,9] draws a tiny line the height of the text. Add bar for bars and a colour word for the colour: :spark[3,5,2,8,9 bar good]. Hover, tap or focus it to see the numbers. A model reads (3, 5, 2, 8, 9).

Sign-ups this week were and rising, errors fell to , and the queue is after Wednesday's spike.

Stacktrace

A fence named stacktrace. It reads a trace as printed by Go, .NET, Bun or Node, Dart, Java or Python: the error line, each cause in its own block, threads as groups. Library frames fold into one bar; frames of your own code (app=) are marked, and with repo= and strip= they name the file and line at the page’s pinned commit (when its front matter has a matching pins entry). Tap a frame to open it.

A Go panicgo4 frames

panic: runtime error: index out of range [3] with length 3

    goroutine 18 [running]:

    Stack traces in the other five languages

    lang= may be left out when the trace says it. Each trace below is read by its own parser.

    .NET, with an inner exceptiondotnet4 frames

    System.InvalidOperationException: Cart failed

    Caused bySystem.ArgumentException: Index out of range (Parameter 'i')

    Bun or Node, with a causejs5 frames

    Error: request failed

    Caused byTypeError: bad json

    Dart, with an async gapdart4 frames

    Bad state: no element

    • ⋯ async gap
    Java, with Caused byjava4 frames

    java.lang.IllegalStateException: cart failed

    • … 12 more frames are the same as the trace above

    Caused byjava.io.IOException: boom

    • … 5 more frames are the same as the trace above
    Python, chainedpython3 frames

    ValueError: bad

    Caused byOSError: boom

    Stats

    Stat tiles are the row of big numbers at the top of a dashboard: each tile is one figure with its name, how it changed and, if given, a tiny line of its recent values, so a reader takes in the state of something at a glance before reading on. The colour word in brackets says whether the change is good or bad (a fall in latency is good); it is never guessed from the sign.

    • Requests
      1.2 M
      +12%last 7 days
    • p95 latency
      180 ms
      −8%
    • Errors
      0.4%
      +0.1of requests
    • Cost
      USD 412
      +3%

    A tile can also carry a glyph, a trend word and a sub-line. This block is static: it draws the tiles whole, the same in print.

    • Yield
      251 kg
      Across three plots
      ↗ Trend: up
      +8%this season
    • Water
      120 L
      Stored rainwater
      ↘ Trend: down
      −6%this week
    • Beds
      30
      Ready for planting
      → Trend: flat

    Timeline

    One line per event, oldest first; an indented line is a detail. A year, a month or a day.

    1. Design review
      • Scope and owners agreed
    2. First release
    3. Old drawing code removed
      • New drawn parts take their place
    4. Version 2 shipsthe big one

    With dir=across a wide screen lays it out sideways; a phone is always top to bottom. With steps, the events come in one group at a time.

    1. The idea
    2. A prototype
    3. A first user
    1The first half of the year.
    1 / 2

    Trace waterfall

    A request across services. Fold spans, search, zoom the mini map, or switch to Flame.

    POST /checkout
    webPOST /checkout842 msgatewayroute /checkout835 msauthverify.token38 msPostgresSELECT sessions28 mscartcart.load158 msPostgresSELECT cart_items69 msPostgresSELECT prices72 msinventorystock.reserve121 msPostgresUPDATE stock109 mspaymentcharge.card604 mspaymenttls.connect43 mspaymentprovider.call546 msqueuepublish.retry20 ms

    Hover, tap or focus a span for its card.

    Show the numbers as a table
    TraceLengthselfError
    web POST /checkout842 ms7 ms
    · gateway route /checkout835 ms15 ms
    · · auth verify.token38 ms10 ms
    · · · Postgres SELECT sessions28 ms28 ms
    · · cart cart.load158 ms17 ms
    · · · Postgres SELECT cart_items69 ms69 ms
    · · · Postgres SELECT prices72 ms72 ms
    · · inventory stock.reserve121 ms12 ms
    · · · Postgres UPDATE stock109 ms109 ms
    · · payment charge.card604 ms15 mspayment provider timed out
    · · · payment tls.connect43 ms43 ms
    · · · payment provider.call546 ms546 msupstream timeout after 540 ms
    · · queue publish.retry20 ms20 ms
    GET /health
    webGET /health9 ms

    Hover, tap or focus a span for its card.

    Show the numbers as a table
    TraceLengthselfError
    web GET /health9 ms2 ms
    · api health.check7 ms3 ms
    · · db SELECT 14 ms4 ms
    A flat list
    webGET /orders60 msapiorders.list52 msdbSELECT orders32 msapiorders.render13 ms

    Hover, tap or focus a span for its card.

    Show the numbers as a table
    TraceLengthselfError
    web GET /orders60 ms8 ms
    · api orders.list52 ms7 ms
    · · db SELECT orders32 ms32 ms
    · · api orders.render13 ms13 ms

    Venn

    Two to four sets in fixed, even shapes. It is not drawn to scale on purpose: the names are written in the regions. Hover, tap or focus a region to read its items; on a narrow screen they are listed under the figure.

    GoRustZig
    • Go only: Ana, Ben
    • Rust only: Eve, Fay
    • Zig only: 4 people
    • Go and Rust only: Cy
    • all three: Dee (writes all three)

    With steps, one set comes in at a time, with its regions.

    ReadersWritersReviewers
    • Readers only: Ana, Ben
    • Writers only: Dee
    • Readers and Writers only: Cy
    1Readers and writers overlap.
    1 / 2

    Video

    A video part keeps the browser's video and draws its own controls: a big play button on the poster, a bar with the chapters as segments (point at it to see the chapter and a still), captions drawn by us from a WebVTT file, picture in picture and full screen. The picture here is a made-up moving gradient.

    0:00 / 0:12

    clip is for a short screen recording that would otherwise be a GIF: it plays muted and in a loop while it is on screen, stops when it scrolls away, and stays still when the reader asks for less motion.

    Wardley map

    Components by evolution (left to right) and visibility (top to bottom). Positions are named keys, so the two numbers cannot be swapped.

    genesiscustom builtproductcommodityevolution →visible ↑CustomerCup of teaTeaKettlePowerKettles are a productnow

    ↔ Swipe to see the whole diagram

    1Today the kettle is a product we buy.
    1 / 2

    Weather

    A forecast written in the source; it never fetches. The units menu on the part switches °C and °F, km/h, mph, m/s and knots, mm and inches, hPa and inHg, and your choice is remembered in this browser.

    San Francisco
    1. Sun 22sunny18°11°0%–12 km/h1021 hPa
    2. Mon 23partly cloudy16°10°10%–15 km/h1018 hPa
    3. Tue 24rain14°9°80%6 mm30 km/h1004 hPa
    4. Wed 25storm13°8°95%14 mm45 km/h996 hPaFerry may stop
    5. Thu 26cloudy12°7°30%1 mm20 km/h1009 hPa

    Written in the source; nothing is fetched. Switch the units above; your choice is remembered in this browser.

    Hours work the same way, with one temperature, here written in °F and mph.

    Oakland
    1. 06:00
    2. 09:00
    3. 12:00
    4. 15:00
    5. 18:00
    6. 21:00
    1. 5%4 mph
    2. 20%8 mph
    3. 60%11 mph
    4. 85%14 mph
    5. 70%12 mph
    6. 25%7 mph

    Written in the source; nothing is fetched. Switch the units above; your choice is remembered in this browser.

    The same forecast with static: drawn whole in the fence's unit, with no menu.

    Sydney
    1. Sun 22sunny24°17°0%14 km/h
    2. Mon 23partly cloudy22°16°20%18 km/h
    3. Tue 24sleet3°-1°70%22 km/hIce on the road

    Written in the source; nothing is fetched.