TTopcoaton Cloudflare
GET /api/health
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.

Current runtime

Cloudflare Worker

Server
Rust/Wasm
Persistence
Cookie only
Health
Ready

Explore the feature path

Each page isolates one boundary so the network behavior stays visible.

4 demos
$(...)Browser

Client reactivity

Type-checked Rust expressions become tiny browser-side updates with no Wasm client bundle.

#[shard]Browser → Worker

Server shards

Reactive arguments trigger a server component render and swap only the returned fragment.

hx-postBrowser → Worker

HTMX fragments

Explicit form requests return focused HTML fragments plus Topcoat's typed HTMX headers.

CookieStore<T>Worker

Cookie state

A typed cookie store persists harmless preferences and counters across requests.