Cloudflare compatibility labWorker
A small full-stack framework, running at the edge.
This project exercises the parts of Topcoat that compile cleanly to Rust/Wasm and behave honestly inside Cloudflare Workers.
One request, one HTML response
Server rendering when you want it. Browser reactivity when you need it.
Pages and components stay in Rust. Topcoat selectively turns reactive expressions into JavaScript and sends shard or HTMX work back to the Worker.
Explore the feature path
Each page isolates one boundary so the network behavior stays visible.
$(...)BrowserClient reactivity
Type-checked Rust expressions become tiny browser-side updates with no Wasm client bundle.
#[shard]Browser → WorkerServer shards
Reactive arguments trigger a server component render and swap only the returned fragment.
hx-postBrowser → WorkerHTMX fragments
Explicit form requests return focused HTML fragments plus Topcoat's typed HTMX headers.
CookieStore<T>WorkerCookie state
A typed cookie store persists harmless preferences and counters across requests.