Roc Solid
Markup in Roc · pages on a native server · components in WebAssembly

Examples · examples/checkboxes

Million

A million checkboxes shared by everyone with the page open: a box checked in one tab shows in every other within a moment, and the page holds only the visible rows.

SourceREADMEAll the examples

What it shows#

Screenshots#

The grid: rows of checkboxes, some checked, each row's first box numbered, and the count of checked boxes and pages online above
The boxes
Half a million boxes down: the rows there, rendered as the grid scrolled to them
Half a million boxes down

What it's made of#

Its browser half
235.1 KB
wasm, brotli; 301.5 KB gzip
Pages and endpoints
1 + 2
route files' pages, and handlers
Lines of Roc
514
its own .roc and .rocx, blank lines left out
Tests
24
19 expects, 5 node tests
Weighs
235.1 KB of wasm, brotli (301.5 KB gzip, 772.1 KB raw)
Made of
1 page · 2 endpoints · 514 lines of Roc · 19 expects · 5 node tests
Uses
packages/virtual

Measured on 2026-11-29 at commit 74eec5b. The wasm is the app's browser half, built with --opt=size; every page also loads start.js, the page's JavaScript, 22.8 KB brotli. All the examples says how they're measured.

Run it#

With the toolchain set up (just setup), start it from its own directory: it builds, serves at http://127.0.0.1:8080 and builds again when you save. Its README says what to look at.

cd examples/checkboxes && ../../bin/rocx dev

To build it, check it and run its tests, from the repository's root:

just examples checkboxes
just examples-release checkboxes   # as deployed: rocx build, then the tests against a server built --opt=speed