The live demo starts when it’s in view.Save a take, then three at once · click a line in the margin to open it · Archive offline shows an error
Messages land in a margin beside the work, never on it.
Each unfolds from a mark on a spine, then folds to one line, so the margin is the history: filled is unread, hollow is read, a diamond is an error. A burst fuses into one counted mark, and every message keeps its own Undo.
What it costs a frame
Not measured yet.
What it needs
Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages
With an agent
install("toasts")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it up
What it’s for
Confirming background saves
Retaining undo after a toast expires
Monitoring failures during a batch
A history of what the app just did
Pitfalls, in brief
Reserve the margin in the layout: a column beside the work, or a band above it on a phone.
In a column, give the host a height the notices cannot change (lay it over its grid cell, as the demo does), or an opened note makes the work’s card taller.
A host of 17em or wider is taken as a strip and shows one record at a time.
Group only events that share a meaningful count.
An error never times out: it stays open until someone reads it, retries it or presses Read all.
1 more in brief
History belongs to one mounted centre and lives in memory (200 records by default).
6 pitfalls in full, the hook-up guide, the module source and its tests come with the part.
Where it comes from
Written for the library. Fully custom code.
W3C WAI-ARIA Authoring Practices: An error announcement leaves focus where the operator is working.
A small appearance system: colour presets as CSS variables (light, dark, two high-contrast, two accent looks), a “Match system” choice that follows the…