Reactive by design. Pure Roc.
Interactive browser apps in pure Roc.
A reactive engine written in Roc updates exactly the DOM that depends on what changed, with no virtual DOM, and every behaviour is testable natively. Explore the examples, read the guide, or drop in your own wasm build.
Try your own app
Build with roc build --target=wasm32 main.roc, then drop the resulting wasm file here.
-
01 · Write
A handler writes a state, a store cell or a table row, and says what it touched.
-
02 · Propagate
One pass runs only the sites that read it, each once, in nesting order.
-
03 · Patch
Exactly those DOM nodes are updated. There is no virtual DOM.
-
04 · Verify
The same engine runs natively, so every behaviour is a spec you can run without a browser.
Examples
Run the maintained apps
Markdown Editor
A markdown document with a session draft, a leave warning, cross-tab save notices, copy as text or HTML and paste to import, feeding a preview, outline and statistics.
Form Builder
A field designer with settings dialogs, a live preview and a form definition you can save and reopen. The designer and preview draw views of one table.
Kanban Board
Drag cards between four columns or reorder them within a column. The board uses one table of cards, a view for each column, and counts derived once for each write.
Spreadsheet Lite
An 8x12 formula grid with cell references, SUM ranges and cycle detection over fixed-point arithmetic. Select a rectangle to copy, paste or clear cells. An edit writes only the rows whose cells changed.
Data Grid
A 1200-row sortable, filterable, editable grid: the rows are a table and the grid a view that draws one page of it, while a summary aggregates the rows the filter matches.
Field Notes
Offline-first notes with local capture times, live relative ages and an outbox that drains on reconnect, with per-note sync status and retry.
Status Page
A public status page rolling four independent service checks into one derived status, with visibility-gated polling, an uptime history and an incident timeline, and a live p95 latency chart streamed through a port with bounded delivery.
Reading List
A reading list kept in the browser's IndexedDB through ports: the books survive a reload, a change in one tab shows in every other, and the only JavaScript the app brings is its port handlers.
Worker Lab
Roc tasks counting primes and drawing the Mandelbrot set in Web Workers: a picture that fills in strip by strip as each worker builds its strip's file, composed by reference into one image to save; a job grid with cancel, retry and supersession, an in-flight bound you can see, a heartbeat that never stalls, and a live pool panel.
CSV Converter
Drop a CSV of any size and convert it to TSV or JSON lines in a worker task, a chunk at a time, without its bytes passing through the page; preview the result, save it, or download a sample into a file first.
Log Explorer
Open a log of any size, or generate one: a worker indexes it once and keeps the index and the file, not its text. A Plume timeline follows the declared color preference, a search adds its matches, and a click opens the viewer at that time. The viewer follows its scrollbar and fits its observed height, with paging and precise jumps alongside it; the monitor shows preparation against each later question.