Status: Accepted (2026-11-30). Builds on 0402 (React shell, framework-free controllers) and the website decision in 0026.
The launch needs a “try it in your browser” page: one click, no install, and people feel the speed. The maintainer’s requirements:
The app already had an offline mode: without an API, every route opened the editor on createLocalSession. That mode is not enough for a public demo:
GET /v1/me first, a request to a server that does not exist;/), which break under /linora/demo/;apps/web/demo.html and src/demo/main.tsx are built by vite build --mode demo (npm run build:demo) into apps/web/dist-demo/. The page ships as index.html.
FileController, the router or the account, token and file screens. The bundler drops the sync client’s network code (RemoteSyncClient, RealtimeConnection) because nothing references it.vite build, index.html) keeps its config and entry, and no code path in the app changed../). Scripts, styles and the bundled font load from paths relative to the page: the font through new URL(..., import.meta.url), the rest from ./assets/. The same files work at /linora/demo/, on a fork’s Pages site and from any local static server. The build is one chunk (the demo opens straight into the editor, so nothing loads lazily) and has no modulepreload polyfill.DemoFile (src/demo/demoFile.ts) stands in for FileController. It keeps pages in memory, each on its own createLocalSession(createDoc(id)) (the existing DocSession implementation the tests and the bench already use), and swaps them with setSession, keeping a camera per page.
EditorHost and the new PagesHost interface, so the existing EditorFrame, the panels and PagesPanel render it unchanged. PagesHost is a type-only change in EditorChrome.tsx, and FileController satisfies it.addSite(100), addStress(1_000_000, 'mixed')). A toast reports the time up to the frame that carries the GPU upload."sideEffects": false on @linorahq/shared. The contracts package has no import-time side effects, only declarations. The flag lets the bundler drop shared modules that a build does not use. The demo loses the /v1 route table and request schemas (api.ts) and the MCP tool schemas (mcp.ts).apps/web/test/demo-build.test.ts (npm test) builds the demo into a temp folder and asserts:
index.html with relative asset URLs only, all present;/v1, WebSocket, EventSource, XHR, beacon, fetch call, worker, service worker or SharedArrayBuffer in the bundle;apps/web/test/demo.test.ts tests the scene and the page actions.tools/demo/check.ts is the browser check: headless Chrome against a plain static server under /linora/demo/ (no custom headers). It records every request and socket, and with --perf measures the demo against the full app..github/workflows/pages.yml runs npm ci and npm run build:demo, and copies apps/web/dist-demo into _site/demo/. The workflow’s pinning and permission rules are unchanged; setup-node gains npm caching, as in ci.yml.VITE_DEMO=1 skipping the probe). It would still ship the account screens and the API client behind dead branches, keep an absolute base, and make every change to the shell a demo concern too./linora/demo/. It works only at that one path, so a fork, a renamed repo or a local check under another path breaks. The relative base has no downside here: the page has no client-side routes.LocalHub or a fake server in the browser. It would add a sequencer and a second replica per page for no user-visible gain. There are no peers.mcp.ts (8.7 KB minified, never used by the web app) is gone;/linora/demo/, with no sockets.npm run dev serves the demo at /demo.html.