Burrow is an open-source, Bun-native dev environment that runs entirely in a browser tab with a real Bun transpiler, virtual filesystem, live server preview, and a local AI coding agent, all client-side without a backend.

Stars

126

7-day growth

No data

Forks

7

Open issues

0

License

MIT

Last updated

2026-07-15

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It is a rare open-source, client-side-only dev machine that includes a local AI coding agent running on WebGPU, uses Bun's real transpiler via WebAssembly, and offers an alternative to proprietary WebContainers under MIT license.

Who it is for

  • Bun and JavaScript developers who want to prototype without local setup
  • Educators teaching full-stack development in a browser
  • Hobbyists experimenting with AI-assisted coding in a sandbox
  • Frontend developers needing a portable, offline-capable dev environment

Use cases

  • Quickly prototype a Bun HTTP server or Hono app from any device
  • Learn and experiment with Bun, TypeScript, git, and npm in a browser
  • Use the AI agent to automatically edit files and run commands for small tasks
  • Share a live coding workspace that persists across reloads via IndexedDB

Strengths

  • Runs entirely client‑side with no remote backend, preserving privacy and offline capability
  • Uses Bun's actual Rust‑based transpiler via WASM, avoiding reimplementation quirks
  • Includes a local AI coding agent that runs on the user's GPU via WebGPU
  • Fully open source under MIT license, enabling customization and self‑hosting

Considerations

  • No raw TCP support, so PostgreSQL/Redis clients need a separate relay
  • Git push/pull operations are not yet supported
  • Limited to Bun.serve () w/ fetch handlers only; no WebSocket or routes support
  • Early project with a smaller compatibility surface compared to WebContainers

README quick start

A whole dev machine in a browser tab. Real Bun, real git, a real shell, a live server preview, and a local AI coding agent — all running on your own machine, inside the page. No backend, no remote sandbox, nothing leaves the tab.

An open-source, Bun-native alternative to WebContainers.

Try it live → burrow.page

Open it, type bun run index.ts, watch a server come up. Then ask the agent panel to "create a Bun HTTP server in src/server.ts and run it" — a model on your GPU edits the files and runs the commands, in the tab.


The trick

You can't compile Bun to WebAssembly and run it in a browser — Bun is Zig on JavaScriptCore, and JSC-in-WASM isn't practical. So Burrow does what WebContainers does: run JavaScript on the browser's own engine, and virtualize everything around it. The pieces that make that feel like a real machine:

  • bun.wasm — Bun's actual Rust transpiler, compiled to WebAssembly and driven through a hand-written WASI shim. Your .ts/.tsx/.jsx is transpiled with genuine Bun semantics, not a reimplementation.
  • A virtual filesystem that everything shares — the editor, the shell, git, the package manager, and the runtime all read and write the same in-memory tree, which is snapshotted to IndexedDB so your workspace survives a reload.
  • Web Workers as processes — each bun run boots a dedicated module worker from a generated bootstrap; the code executes on the host engine.
  • A service worker as the networkBun.serve() inside a worker is bridged back out to a real, fetchable URL in the page, so you can open your server in an iframe (or a new tab) and hit its routes.

Everything is client-side. The only network calls Burrow itself makes are a CORS proxy for git clone and the npm registry for bun install — both are plain same-origin passthroughs you can see in server.ts.

What you get

TerminalInteractive bash (via just-bash) — history, tab-completion, Ctrl+C/A/E/U/W/L, pipes, globs, cd/export that persist.
EditorCodeMirror 6, file tree with full create/rename/delete, per-file debounced autosave, a live git diff panel.
Runtimebun run file.ts — real transpile → module graph → worker execution, with streamed stdout/console.
Server preview`Bun.

Description

a whole dev machine in a browser tab - bun.wasm, shell, git, and local AI. phones home to nobody.

Related repositories

Similar projects matched by category, topics, and programming language.

TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191