browser: Zig-based headless browser 16x lighter than Chromium

lightpanda-io/browser

·2026.09.07 20:31

A headless browser written from scratch in Zig, rather than a Chromium fork or WebKit patch. Designed for AI agents and automation tasks, it uses approximately 16x less memory and runs 9x faster than existing browsers. Benchmarks on an AWS EC2 m5.large instance recorded a peak memory of 123MB for 933 web page requests and a processing time of 5 seconds for 100 pages.

Compatible with existing automation clients such as Puppeteer and Playwright via a CDP server, and supports the Webdriver BiDi protocol. It can accept a URL and directly dump it as HTML, Markdown, PNG, PDF, or structured data (JSON-LD, OpenGraph, etc.), facilitating web scraping and data extraction. It offers an option to respect robots.txt and supports communication via Unix domain sockets.

The built-in agent mode performs browser operations using natural language instructions or slash commands. It supports various LLM providers such as Anthropic, OpenAI, and Gemini, and saves the generated PandaScript (JavaScript) at the end of a session to allow deterministic re-execution without an LLM. This enables a workflow where an LLM is used during the prototyping phase, while only the script is executed in production without a model.

It embeds an MCP server to support JSON-RPC 2.0 communication via stdio or HTTP transport. In HTTP mode, each connection has an independent session (pages, cookies, memory), so state conflicts do not occur even when multiple agents run simultaneously. It is released under the AGPL-3.0 license and is available on Linux, macOS, and WSL2 environments.

GitHub
GitHub repository

lightpanda-io/browser

Lightpanda: the headless browser designed for AI and automation

Zig

This introduction was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report errors, attribution issues, or removal requests via Contact.