qmetrics.net

Lightpanda

Headless browser written in Zig for AI agents and automation

Lightpanda screenshot

Lightpanda is a headless browser built from scratch in Zig. It runs JavaScript without graphical rendering, works with Puppeteer and Playwright over CDP, and includes an MCP server and an agent mode.

Overview

Lightpanda is a headless browser written from scratch in Zig. It is not a fork of Chromium, Blink or WebKit. It executes JavaScript, so it can handle pages built with Ajax and single-page frameworks, but it has no graphical rendering engine. It targets automation, crawling and AI agents, where a full desktop browser uses more memory and CPU than needed.

The project reports a benchmark of 933 real web pages on an AWS EC2 m5.large instance, compared with headless Chrome. Peak memory for 100 pages was 123MB against 2GB, and execution time was 5 seconds against 46 seconds.

There are several ways to use it. The command line can dump a URL as HTML, markdown, structured data (JSON-LD, OpenGraph and similar), PNG or PDF. It can start a CDP server that Puppeteer and Playwright connect to, or a WebDriver BiDi server. An agent mode lets you describe tasks in plain English, and a session can be saved as a deterministic PandaScript and replayed later without an LLM. Supported model providers include Anthropic, OpenAI, Gemini, Mistral, Ollama and any OpenAI-compatible endpoint.

A built-in MCP server runs over stdio or HTTP. In HTTP mode each connection gets its own isolated session, and several agents can also share one session. Implemented web features include CORS, the DOM, XHR and Fetch, cookies, custom headers, proxy support, network interception, robots.txt support and an adblocker.

Binaries are available for Linux and macOS on x86_64 and aarch64, through Homebrew, the AUR, Nix and official Docker images. There is no native Windows build, so Windows users run it inside WSL. Usage telemetry is on by default and can be turned off with an environment variable. A hosted cloud offering that accepts Puppeteer and Playwright connections is also advertised.

Key features

  • Written from scratch in Zig, not based on Chromium
  • JavaScript execution without graphical rendering
  • CDP server for Puppeteer and Playwright
  • WebDriver BiDi support
  • Dump pages as markdown, structured data, PNG or PDF
  • Agent mode with replayable PandaScript
  • MCP server over stdio or HTTP with isolated sessions
  • Proxy, network interception, cookies and robots.txt support

Use cases

  • Web scraping and crawling of JavaScript-heavy pages
  • Browser backend for AI agents
  • Replacing headless Chrome to cut memory and CPU use
  • Automated browser testing via Puppeteer or Playwright
  • Converting web pages to markdown for LLM input

Tags

Similar software

TrendRadar

AI-assisted multi-source news and trend monitor

TrendRadar aggregates hot lists, RSS feeds, and scheduled web search, then filters and analyzes items before pushing reports to chat and email channels.

★ 63.9k⟳ yesterdayGPL-3.0

EasySpider

Visual no-code web scraping and browser automation

EasySpider designs crawler and RPA flows by clicking elements in a browser. It runs on desktop OSes, supports headless and CLI execution, and exports results to spreadsheets or MySQL.

★ 44.8k⟳ 11 days agoAGPL-3.0

CloakBrowser

Stealth Chromium wrapper for Playwright and Puppeteer

CloakBrowser ships a patched Chromium binary and drop-in launch helpers for Python, JavaScript, and .NET. Fingerprints are altered at compile time rather than via injected scripts.

★ 33.1k⟳ 2 days agoMIT
Open Source Alternative to:AdsPowerGoLogin+1

Moli

Rust headless browser runtime for AI agents and automation

Moli is a headless browser aimed at AI agents that fetch pages, search the web, and automate browser tasks. It runs on Linux, macOS, and Windows and is driven via CLI, CDP, or WebDriver.

★ 24.6k⟳ todayApache-2.0

AI Goofish Monitor

AI-assisted Xianyu marketplace listing monitor with web console

Runs scheduled Playwright crawls on Goofish listings, scores matches with multimodal AI, and alerts through several notification channels behind a password-protected admin UI.

★ 21.1k⟳ 1 month agoMIT

XHS-Downloader

Xiaohongshu link extraction and media downloader

XHS-Downloader collects Xiaohongshu post metadata and download URLs, saves images and video, and offers GUI, TUI, CLI, API, MCP, Docker, and browser script workflows.

★ 13.4k⟳ 2 days agoGPL-3.0