Documentation

System architecture, Rust/WebAssembly kernel APIs, compositor-first scroll engineering, and Cloudflare deployment reference.

Open Playground
Architecture
Astro 5 · Rust · Tailwind v4

Cloudburst compiles into static HTML, CSS, JavaScript, and WebAssembly assets built for Cloudflare edge distribution. UI primitives come from bejamas/ui with zero client framework runtime, paired with motion for hardware-accelerated transitions and a compiled Rust crate for high-frequency physics.

src/pages/

Minimal entry surface at /, interactive WASM workbench at /pg, and reference guide at /docs.

crates/cloudburst-wasm/

Compiled via wasm-pack --target web --release into src/wasm/pkg with typed ES module bindings.

src/components/ui/

Owned bejamas/ui Astro components styled with Liquid Glass optical tokens and Tailwind CSS v4.

wrangler.jsonc & _headers

Edge asset routing, strict CSP with wasm-unsafe-eval, and immutable caching for hashed bundles and .wasm binaries.

Rust / WASM Kernel

The cloudburst-wasm crate exposes four allocation-free primitives designed to keep the JavaScript main thread clear during 160Hz interaction bursts.

160Hz Scroll & Compositor Pipeline

A 160Hz refresh rate allows 6.25ms per frame. Cloudburst avoids main-thread stalls and expensive paint invalidations across constrained and desktop GPUs through five engineering constraints:

  • Compositor-only mutations: Scroll progress, parallax, and Motion reveals animate strictly transform and opacity.
  • Zero layout thrashing: Document scroll height is observed via ResizeObserver instead of querying geometry inside scroll or animation-frame callbacks.
  • On-demand frame loops: The scroll physics loop wakes on passive scroll events and halts automatically as soon as ScrollPhysicsKernel::is_settled() returns true.
  • Content containment: Below-the-fold sections declare content-visibility: auto so low-range devices skip off-screen style and paint work.
  • Adaptive Liquid Glass: Enabling Low-Range GPU in Settings caps backdrop blur radius to 8px, simplifies specular layers, and scales canvas resolution dynamically.
Keyboard & Settings Drawer

Session preferences remain live across route transitions via Astro View Transitions and reset cleanly on a fresh load.

Open left Settings drawer on landing page Tab
Toggle Settings drawer from any route ⌘,
Move between controls inside open drawer Tab
Dismiss drawer and restore focus Esc
Cloudflare Deployment

Cloudburst uses Astro's static output pipeline with wrangler.jsonc configured for Cloudflare Workers Static Assets and Cloudflare Pages. No Node-only APIs, server cookies, or external runtime dependencies are required.

# 1. Compile Rust WASM + Astro static site
npm run build:all

# 2. Preview locally with Cloudflare Wrangler
npm run cf:dev

# 3. Deploy directly to Cloudflare
npm run cf:deploy
Build output directory: dist/ WASM MIME header: application/wasm