Examples
Explore the apps
Each example opens on its own focused app page, runs from a prebuilt wasm artifact, and includes source files you can download, modify, and rebuild locally with Roc. They are in learning order: start at the top, or jump to the feature you need.
Section 01
Reactive basics
A store of shared state, tables and their views, derived values, keyed lists and components. Each change updates exactly what depends on it, and nothing leaves the page.
Section 02
Effects and the network
Requests, timers, storage and the address bar, asked for by the app and answered back into it; each example talks to a simulated service that lives beside it.
Section 03
JavaScript through ports
When an app needs a browser API the platform does not model, its own JavaScript answers typed requests and sends messages, and nothing else.
Section 04
Workers and files
Roc tasks running in Web Workers, and files that never pass through the page: the page stays responsive however long the work takes.