A headless browser built from scratch in Zig, not a Chromium fork
Built from scratch in Zig to spare AI agents the cost of hauling around a full Chromium runtime for simple headless tasks.

What it does
Lightpanda is a headless browser written entirely in Zig that renders pages, executes JavaScript via V8, and speaks the Chrome DevTools Protocol (CDP). You can point Puppeteer or Playwright at it, dump pages to HTML or Markdown, or hook it directly into an AI agent via its built-in MCP server. It is explicitly not a fork of Chromium or WebKit; the team built it from zero using html5ever for parsing, libcurl for HTTP, and their own DOM implementation.
The interesting bit
The project is betting that most headless automation doesn’t need a full desktop browser, so it strips away everything else and claims roughly 16× lower peak memory and 9× faster execution than Headless Chrome when crawling 100 real pages on the same AWS instance. It also bakes in an MCP server for stdio-based AI tool integration, which is a pragmatic nod to where automation is heading.
Key highlights
- CDP-compatible websocket server means existing Puppeteer scripts can connect via
browserWSEndpointwithout modification. - Built-in MCP server exposes the browser to AI agents through JSON-RPC 2.0 over stdio.
- Benchmarks against Headless Chrome on 933 real pages show 123 MB peak memory versus 2 GB, and 5 seconds versus 46 seconds for 100 pages.
- Ships as a single binary with Docker images for Linux amd64/arm64; no native Windows build yet (WSL only).
- Telemetry is enabled by default but can be disabled with an environment variable.
Caveats
- Still in beta: the README warns you may encounter errors or crashes, and CORS support is currently unimplemented.
- Linux release binaries are linked against glibc, so they fail on musl-based distros like Alpine unless you build from source.
- Hundreds of Web APIs remain to be implemented; coverage is explicitly described as a work in progress.
Verdict
Worth evaluating if you run headless browsers at scale for scraping or AI agent tooling and need to cut RAM usage. Skip it for now if you require rock-stable CORS handling, native Windows support, or full modern web API coverage.
Frequently asked
- What is lightpanda-io/browser?
- Built from scratch in Zig to spare AI agents the cost of hauling around a full Chromium runtime for simple headless tasks.
- Is browser open source?
- Yes — lightpanda-io/browser is open source, released under the AGPL-3.0 license.
- What language is browser written in?
- lightpanda-io/browser is primarily written in Zig.
- How popular is browser?
- lightpanda-io/browser has 32.1k stars on GitHub and is currently cooling off.
- Where can I find browser?
- lightpanda-io/browser is on GitHub at https://github.com/lightpanda-io/browser.