Storyboard
npm run storyboard writes .canica/storyboard/index.html: one page (any browser, phone too) with every screen of
the app on a canvas. No server and no database: server/seed.ts runs once in the in-memory engine tests use, and
the app's real pages render inertly from what it returned (queries answer from recorded fixtures, writes run nothing,
the viewer, the time and the device are fixed). The page carries the app's bundle and renders the screens in view
itself (the others, and all of them far out, are outlines).
- Screens are grouped by feature (the route tree:
/todos,/todos/all,/todos/projects/$projecttogether); Outline lists them (collapse a feature; tap to go there). Modals and menus sit beside the screen that opens them, once per feature; what the layout opens (the user menu, a palette) once, in "Global"; email templates in "Emails". - Every button, link and menu item was clicked in the inert render. Arrows (the legend: "?" on a phone): solid, opens a
screen, modal or menu; violet with a card, a write and its outcomes (pending, ok and where it leads, each typed
error the screen shows; tap one to see it); dashed, a modal returns a value its caller acts on (
“Delete” → returns “delete” → remove); dotted, signs in or out; a small mark on the device's edge, a write nothing on screen answers (→ setDone; tap it for its name), a link out, a file picker. Arrows leave each screen's main state. Images are drawn as grey blocks with a picture icon on purpose (the storyboard loads nothing). - States on demand: tabs on each screen (data, loading, empty, unexpected error, not found, each typed error its
queries can fail with, each rule of each form field, submitting, refused by the server) and one switcher for all of
them ("Errors" shows each screen's own app error first). Signed in, nothing fails with
Unauthenticated: that is the signed-out view (a public app's "signed out" tab reads what a guest really gets). Form states type values each input can hold (a time in a time field) and are checked: a state that would not show what it says (a rule the input cannot break, a form that only appears after a failed write is reached through that write) is left out and listed. Typed errors are read from the code:new TooManyTodos({ max: 200 })in a handler or a helper it calls (literal fields show as written),db.get→ NotFound,Email.send,requireSignIn,ctx.fetch…,ctx.runQuery("x"). - Tap a screen: how to get there, what it reads (with args and typed errors), what it writes and where each outcome leads, what every element does, its forms and their rules. Phone, tablet and desktop width (the screens reflow).
- The same code and seed give the same page, byte for byte (clock 2026-01-15 12:00 UTC, UTC, en-US, sequential ids);
screens that changed since the last run are marked ("Changed" shows only those).
meta.jsonhas each screen's text, what each element does, the typed errors, layout warnings (sideways scrolling, text cut off), also printed. server/seed.tsprovides the data through your mutations (as(name).mutationOk(…)/.queryOk(…),setTime,advance,day(-1),at(-1, "09:30");run("importItem", args)for an internal mutation; anasyncseed can upload:await as("viewer").uploadOk(sampleImage(), "photo.png");defineSeed(app, seed, { now: "2026-03-01T09:00:00Z" })for another date; return{ captures: { "/rooms/$room": [{ room }] } }to choose rows). Without a seed, rows are made up from the schema (marked "generated data"): write one. The first run downloads Playwright's Chromium (once). Before finishing, look at every screen and its states: each requirement visible, each state designed, each action leading somewhere.