tinybrowser runs Rust agent browser in WASM
Built in Rust on Blitz, Servo crates, and QuickJS-ng, tinybrowser packages a headless browser for AI agents into a single ~19 MB native binary or a WASI Preview 2 WebAssembly component (`@tinybrowser/wasm`). It speaks Chrome DevTools Protocol and W3C WebDriver (Classic and BiDi) for drop-in Playwright and Selenium automation, backed by a live demo painting pages directly via WASM instead of an iframe.
Shipping a multi-hundred-megabyte Chromium binary and its OS dependency tree just so an AI agent can read pages and click buttons has always been absurd overkill—tinybrowser makes a credible play at replacing headless Chrome with an embeddable, MIT-licensed Rust engine.
- –Solid early web compatibility: the project already passes 70.4% of Web Platform Tests subtests (1.59M of 2.26M) and 62.5% of test files with zero crashes—and scored 67/100 on Acid3 in Hacker News testing—by combining Servo's `html5ever`/`stylo`, DioxusLabs' Blitz layout/paint crates, and QuickJS-ng.
- –Built specifically for agent loops: alongside CDP and WebDriver, the repo ships a Cloudflare Workers MCP Executor app running the WASM engine inside `workerd` isolates with SQLite-persisted sessions, accessibility-tree snapshots using deterministic element refs, and batched actions (`click`, `fill`, `upload`).
- –Lightweight deployment footprint: installs via `npx tinybrowser`, shell one-liner, or `@tinybrowser/wasm` for Node 22+, Bun, browsers, and edge workers—though the browser-in-a-browser demo still relies on a server hop proxy (`/api/hop`) to get around CORS.
- –Clear experimental caveats: QuickJS-ng has no JIT (making JS-heavy SPAs slower than V8), rendering is limited to headless one-shot RGBA/PNG frames with no video playback, and out-of-process iframe isolation plus OS sandboxing aren't battle-tested yet.
DISCOVERED
2h ago
2026-12-05
PUBLISHED
4h ago
2026-12-05
RELEVANCE
AUTHOR
auraham