Documentation
System architecture, Rust/WebAssembly kernel APIs, compositor-first scroll engineering, and Cloudflare deployment reference.
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.
Minimal entry surface at /, interactive WASM workbench at /pg, and reference guide at /docs.
Compiled via wasm-pack --target web --release into src/wasm/pkg with typed ES module bindings.
Owned bejamas/ui Astro components styled with Liquid Glass optical
tokens and Tailwind CSS v4.
Edge asset routing, strict CSP with wasm-unsafe-eval, and immutable
caching for hashed bundles and .wasm binaries.
The cloudburst-wasm
crate exposes four allocation-free primitives designed to keep the JavaScript main
thread clear during 160Hz interaction bursts.
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
transformandopacity. - Zero layout thrashing:
Document scroll height is observed via
ResizeObserverinstead 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: autoso 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.
Session preferences remain live across route transitions via Astro View Transitions and reset cleanly on a fresh load.
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 dist/ WASM MIME header: application/wasm