This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.
Serve RealWorld
RealWorld's public pages can be served by the native renderer:
Terminal
EXACT_WEB_DIST=target/realworld-dist bun host/web/build.mjs realworld-web --wasm
cargo run --release -p realworld-web --bin realworld-render -- --serve target/realworld-dist --port 8080 --name Conduit --generations target/realworld-generations
The home feed, articles and profiles arrive as anonymous HTML. Their public
responses are cached for 60 seconds by default (--lifetime changes this).
Links work without the runtime, which loads when the page is idle; a press
made before it is ready is replayed once it is. Login and editing routes
start the client normally. The renderer compresses what it sends (brotli, else
gzip, by Accept-Encoding), and SIGTERM drains it. Reading-page transfer and
the later runtime download are separate costs. Keep the --generations directory
across deploys, outside the replaced dist. It retains the newest four builds of
app.wasm: an open page's ?v= URL gets its exact build, or 404 once it expires.
Malformed or repeated versions get 400. A browser holding a retained build can
download another as a delta (LLP 1047.000 §9): after a one-line app change, 9.5 KB
instead of 238.6. Versioned builds, stage files whose names match their content,
and the files a JavaScript build names by content (routes.json files, LLP
1153.004) are cached as immutable; other files revalidate.
Is this helpful
Last updated November 30, 2026