Wardian docs

Focus timer

Try it

This app talks to other apps over channels, which needs a Wardian. Download it and import it in Wardian to run it.

Download focus-timer.wardian Import it in Wardian: Settings → Import.

A Pomodoro timer for anyone who works in focused blocks: focus for a set time, take a short break, and after every few focus sessions take a long break. Each focus session you finish goes to the Focus log on the channel focus.session, once you allow it, so your time adds up per label.

What you put in#

InputTypeUnitAllowedDefaultRequired
Labelshort textup to 80 charactersempty (sent as "No label")optional
Focuswhole numberminutes1 to 18025required
Short breakwhole numberminutes1 to 605required
Long breakwhole numberminutes1 to 9015required
Long break after everyone of 2, 3, 4, 5, 6focus sessions4required
A soft chime when a phase endson or offon
Start the next phase on its ownon or offoff

What it shows#

How it behaves#

What goes on the channel, once per focus session:

{ "label": "Write the report", "minutes": 25, "started": "2026-10-08T08:47:00.000Z",
  "ended": "2026-10-08T09:12:00.000Z", "completed": true }

Layout#

Two columns that Arrange may swap or join; one column under 760px. Reading order and tab order:

  1. What you are working on (side): Label, type="text", size-lg, maxlength="80", with recent labels as suggestions. No validation beyond the length the control enforces.
  2. Lengths and sound (side): a fieldset Lengths with Focus, Short break and Long break, each type="number" inputmode="numeric" step="1" with its min/max, size-xs num, the unit "min" beside it in a w-affix. Checked when the field is left: "Enter whole minutes from 1 to 180" (60, 90), in the field's hint, with aria-invalid. Then the radio group Long break after every (2 to 6 focus sessions), then the two switches.
  3. Timer (main): the phases as a list with aria-current, the dial, the dots, then Start (solid, the main action), Skip to break, Reset. Space starts and pauses when the focus is not in a field.
  4. Sent to the log (main): the receipts, the empty state "Nothing yet…", the channel note when sending is not possible, then Send a test session.

States: Start reads Start, Pause or Resume; Skip reads Skip to break or Skip break; each sent session shows Sending…, Sent (as a receipt) or Not sent with Send again.

Files#

FileWhat it is
app.json"format": 2, the page, and "channels": {"send": ["focus.session"]}.
index.htmlThe page and its four panels. It loads /sdk/wardian.js for channels and ui/arrange.js for Arrange.
app.jsThe parsers for each input, the timer, the chime, and sending to the log.
style.cssThe layout and the dial.
ui/The Wardian component library: theme, button, field, card, badge, switch, toast, receipt, type, surface and Arrange.

It has no WebAssembly logic. app.wasm is the smallest valid module (8 bytes), because the format requires one at the top of a page package (SPEC.md §3.2).

When a send fails: if you did not allow the channel, the timer says so. If you pressed Don't allow, open Settings → App permissions, press Revoke next to focus-timer, then press Send again.

Limits. Lengths, label and the sent list last only until you close the app. The timer does not keep running when the app is closed.

This page is apps/focus-timer/README.md in the repository. Something wrong or missing? Change that file.