# browser

> Headless browser written in Zig for AI agents and automation, driven through a CDP server.

- Type: agent or tool
- Field: Web Automation & Scraping
- Repository: https://github.com/lightpanda-io/browser
- GitHub stars: 42786
- Licence: AGPL-3.0
- Language: Zig
- Last push: 2026-12-01
- Page: https://imutechz.in/agents/browser

## What it is
Lightpanda is a headless browser built from scratch in Zig rather than a Chromium or WebKit fork. It can dump a page as HTML or markdown, or run a CDP server that Puppeteer and Playwright connect to. It is aimed at AI agents and automation workloads.

## Features
- Written from scratch in Zig
- CDP server for Puppeteer and Playwright
- Fetch and dump pages as HTML, markdown or structured data
- Option to obey robots.txt
- Docker images and nightly binaries
- Unix socket option for the server

## Best for
- Web scraping and crawling
- Browser automation for AI agents
- Lightweight headless runs

## Pros
- Works with existing Puppeteer and Playwright scripts
- Several install routes
- README benchmarks show lower memory and time than headless Chrome

## Cons
- No native Windows binary; needs WSL
- Linux builds need glibc
- AGPL-3.0 license

## Install
```
brew install lightpanda-io/browser/lightpanda
docker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:latest
```

## Usage
```
./lightpanda serve --obey-robots --log-format pretty --log-level info --host 127.0.0.1 --port 9222
```

Tags: headless-browser, cdp, web-scraping, browser-automation, puppeteer, playwright, zig, ai-agents
