Bundle and run real TypeScript + React in the browser — no server, no native binaries.
Built on:
almostnode— Node.js-flavored runtime in the browser (VFS, npm package manager, service worker).@rollup/browser— Rollup's official browser build.esbuild-wasm— WASM build for TSX/JSX transformation.
browser-run/
├── packages/
│ ├── almostnode/ # Node-like runtime (copied from libs/almostnode)
│ └── rollup-vfs/ # @rollup/browser + VFS bridge plugins
└── apps/
└── demo/ # React + Tailwind + TS todo app, bundled in the browser
pnpm install
pnpm dev # opens the demo at http://localhost:5173
pnpm test:e2e # runs Playwright E2E suite- The host page (
apps/demo) loadsalmostnodeand creates an in-memory VFS. - The user's TypeScript source files are written into the VFS.
@rollup/browserruns in the same page, usingpackages/rollup-vfsplugins that read from the VFS and transform.tsxthroughesbuild-wasm.- The resulting bundle is wrapped in HTML (with Tailwind via CDN) and loaded
into an
<iframe>via a Blob URL.
No build server, no native code — the whole pipeline runs client-side.