GitHub - lightpanda-io/browser: Lightpanda: the headless browser designed for AI and automation

Source

Summary

Lightpanda is a headless browser written from scratch in Zig - not a Chromium fork - targeting AI agents, scraping, and automation workloads. It claims 11x faster execution and 9x lower memory footprint than Chrome, with full CDP compatibility so existing Playwright and Puppeteer scripts work without modification. Currently in beta with nightly binaries for Linux and macOS.

Key Insight

  • The performance gap is the story: 11x faster and 9x less RAM than Chrome on the same task (AWS EC2 m5.large benchmark). At scale - thousands of concurrent scraping or agent sessions - this translates directly to infrastructure cost.
  • CDP compatibility is the unlock: It exposes a CDP server on port 9222, so any Playwright/Puppeteer script connects by just swapping browserWSEndpoint. No rewrite needed.
  • Written in Zig, not Chromium: This is not a wrapper or fork. It uses libcurl for HTTP, html5ever for parsing, and v8 for JS. The deliberate choice to skip graphical rendering keeps the binary lean.
  • Practical limitation: Web API coverage is partial and growing. Complex SPAs or sites using obscure browser APIs may break. Beta stability means production use requires testing against your specific targets.
  • Docker image available: lightpanda/browser:nightly exposes CDP on port 9222 out of the box - easiest path to drop-in replacement in a containerised scraping stack.
  • Telemetry on by default: Set LIGHTPANDA_DISABLE_TELEMETRY=true before deploying anywhere sensitive.