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.

Input · app.wasm

Try your own app

Build with roc build --target=wasm32 main.roc, then drop the resulting wasm file here.

  1. 01 · Write

    A handler writes a state, a store cell or a table row, and says what it touched.

  2. 02 · Propagate

    One pass runs only the sites that read it, each once, in nesting order.

  3. 03 · Patch

    Exactly those DOM nodes are updated. There is no virtual DOM.

  4. 04 · Verify

    The same engine runs natively, so every behaviour is a spec you can run without a browser.

Examples

Run the maintained apps

All examples
Featured example Conduit RealWorld (Conduit) demo: hash-routed feeds, sessions, profiles, markdown articles, comments, favorites, follows, and server-confirmed write paths. Launch the application Featured example Million-Row Explorer Two million orders generated inside four workers and never sent to the page: every filter asks each shard for a few kilobytes of counts, the page adds them to a live order feed arriving through a port, and four Plume charts draw the sum, with the query times the runtime measured. Launch the application
01 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. 02 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. 03 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. 04 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. 05 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. 06 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. 07 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. 08 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. 09 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. 10 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. 11 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.