Most scraping pages don't need a full copy of Chrome. They need a JavaScript engine to run the page's scripts, a DOM to query afterwards, and a way to get the result out. Lightpanda is a headless browser built around exactly that: written from scratch in Zig, not a Chromium fork, with V8 for JavaScript, html5ever for parsing and libcurl for the network. It reached 1.0 on 2026-10-02, and 1.0.5 shipped on 2026-11-20, so older guides that call it beta are describing a different release.
We installed 1.0.5 on a Mac (arm64), ran it against a JavaScript-rendered sandbox page, and drove it from Playwright. Everything marked "we ran" below is from that session.
When Lightpanda is the right tool
The useful question is not "is it faster than Chrome" but "does this target need a real browser at all". Work down the list:
- The data is already in the raw HTML or in a JSON endpoint the page calls: you don't need a browser. A plain HTTP client, or [curl_cffi](/blog/web-scraping-with-curl-cffi) if the site checks TLS fingerprints, is cheaper than anything here.
- The page builds its content with JavaScript and doesn't fingerprint the browser: this is Lightpanda's lane. You get a DOM after the scripts run, without paying Chrome's per-page memory cost, which matters when you run many pages in parallel.
- An LLM agent needs to read pages: `--dump markdown` and the MCP server return text an agent can use directly, with no screenshot step.
- You need pixels (screenshots, visual checks, canvas): Lightpanda's PNG and PDF dumps are explicitly a text-only rendering. Use [Playwright](/blog/web-scraping-with-playwright) with Chromium.
- The target fingerprints the browser or blocks automation: Lightpanda won't help, because it announces itself. See [Camoufox](/blog/web-scraping-with-camoufox) and [Patchright](/blog/web-scraping-with-patchright), and our [stealth-browser benchmark](/blog/stealth-browser-engine-compare-2026).
Install it
The project publishes single-file binaries for Linux and macOS (x86_64 and aarch64), a Docker image, and a Homebrew tap. There is no native Windows build; use WSL. Pin a release rather than the nightly:
curl -L -o lightpanda https://github.com/lightpanda-io/browser/releases/download/1.0.5/lightpanda-aarch64-macos
chmod a+x ./lightpanda
./lightpanda version # 1.0.5
For Linux swap in lightpanda-x86_64-linux or lightpanda-aarch64-linux. Those builds link against glibc, so on Alpine you will hit cannot execute: required file not found; use a glibc base image. The Docker route is one command:
docker run -d --name lightpanda -p 127.0.0.1:9222:9222 lightpanda/browser:latest
The binary we downloaded was about 92 MB. Telemetry is on by default, so set LIGHTPANDA_DISABLE_TELEMETRY=true in the environment if you don't want usage data sent.
Dump a page from the CLI
The sandbox site quotes.toscrape.com/js/ builds its quote list in JavaScript, so it makes a clean test. A plain fetch sees an empty shell:
curl -s https://quotes.toscrape.com/js/ | grep -c 'class="quote"'
# 0
Lightpanda runs the page's scripts first:
./lightpanda fetch --dump html https://quotes.toscrape.com/js/ | grep -o 'class="quote"' | wc -l
# 10
That fetch took 1.61, 1.51 and 1.49 seconds across three runs, and /usr/bin/time -l reported a peak resident size of about 35 MB. Most of that wall time is the network round trip, so read it as "cheap", not as a benchmark.
The --dump flag has more than HTML. markdown converts the page, semantic_tree and semantic_tree_text give the accessibility-style structure, structured_data prints JSON-LD, OpenGraph and meta tags as JSON, and --dump-selector 'span.text' returns only the matching elements. For slow pages, --wait-selector, --wait-script, --wait-ms and --wait-until control when the dump happens.
Drive it from Playwright
Start the CDP server and point Playwright at it. We used port 9333 because 9222 was already taken on our machine, which is worth knowing: the default port collides with any Chrome started with remote debugging.
./lightpanda serve --host 127.0.0.1 --port 9333
curl -s http://127.0.0.1:9333/json/version
# {"Browser": "Lightpanda/1.0", ..., "Lightpanda-Version": "1.0.5", "webSocketDebuggerUrl": "ws://127.0.0.1:9333/"}
# pip install playwright (no browser download needed for connect_over_cdp)
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp("http://127.0.0.1:9333")
context = browser.contexts[0] if browser.contexts else browser.new_context()
page = context.new_page()
page.goto("https://quotes.toscrape.com/js/", wait_until="networkidle")
rows = page.eval_on_selector_all(
".quote",
"els => els.map(e => ({text: e.querySelector('.text').innerText,"
" author: e.querySelector('.author').innerText}))",
)
print(len(rows), rows[0])
page.close()
browser.close()
With Playwright 1.65.2 for Python against Lightpanda 1.0.5 this printed 10 and the first quote (Albert Einstein), and the server process sat at about 39 MB resident afterwards. Your Playwright code is the same code you would write for Chrome: only the connect_over_cdp line changes. The README has an equivalent Puppeteer script using browserWSEndpoint.
Scripts, MCP and agent mode
Lightpanda ships its own scripting layer, PandaScript: JavaScript with a few built-in primitives, run with lightpanda run. We ran this one:
const page = new Page();
await page.goto("https://quotes.toscrape.com/js/");
return page.extract({ quotes: [".quote .text"] });
It returned {"quotes":["“The world as we have created it... with all ten quotes. A lightpanda agent mode can write these scripts for you from a plain-English task using an LLM you configure, then replay them without a model.
For agent clients there is a built-in MCP server. Add it to your MCP config with "command": "/path/to/lightpanda", "args": ["mcp"]. In 1.0.5 lightpanda mcp --list-tools prints 40 tools, including goto, markdown, extract, click, fill, waitForSelector, getCookies and session_new. Pass --tools goto,markdown,extract to expose only those and keep tool definitions out of the model's context. lightpanda mcp --port 9223 serves it over HTTP with a separate browsing session per connection. We listed the tools but did not run an agent against it. For how agents consume web data in general, see web scraping with AI.
What it doesn't do
This is the section to read before you commit.
It does not disguise itself. The headers a server received from our fetch were User-Agent: Lightpanda/1.0 and Sec-Ch-Ua: "Lightpanda";v="1". Trying to override that fails at startup:
./lightpanda fetch --user-agent "Mozilla/5.0 (Macintosh) Chrome/130" https://httpbin.org/headers
# fatal: invalid user-agent err=Reserved hint="must be printable ASCII and can't contain Mozilla"
You can append a suffix with --user-agent-suffix, or set --locale and --timezone, but you cannot present as Chrome. A site that blocks unknown or automated clients will block Lightpanda on the first request, and we make no claim that it gets past Cloudflare, DataDome or similar systems. The project also ships --obey-robots, which is off by default and fetches and obeys robots.txt when you turn it on.
Other limits worth knowing:
- No real rendering. Screenshots and PDFs are text-only, so anything that depends on layout, canvas or WebGL is out of scope.
- CORS is enforced by default since 1.0.0. A cross-origin fetch or XHR that fails a CORS check is blocked; `--disable-features cors` turns that off.
- Behavior still changes between releases. The 1.0.5 notes list behavior changes (for example, `page.evaluate()` in PandaScript now returns a promise, so saved scripts need `await`), so pin the version in production.
- AGPL-3.0 licensing. If you embed or modify it in a networked product, read the license with your lawyer, not this post.
- No stealth stack. For fingerprint-sensitive targets you still need an engine from our [fleet benchmark](/blog/stealth-browser-fleet-benchmark-2026), plus residential IPs and session handling.
On the numbers: the project's README reports 123 MB peak memory against 2 GB for headless Chrome and 5 seconds against 46 seconds over 100 pages, measured on an AWS m5.large against 933 real pages. That is a vendor measurement with its own methodology, so test your own workload before you size a fleet around it.
When a browser, even a light one, isn't the answer
A lightweight browser still leaves you running the infrastructure: process lifecycle, proxies, retries, and keeping up with Web API gaps when a target changes. For platforms where you want the data and not the browser, a structured API skips that layer:
import requests
r = requests.get(
"https://api.crawlora.net/api/v1/amazon/search",
params={"k": "mechanical keyboard"},
headers={"x-api-key": "YOUR_API_KEY"},
)
for item in r.json()["data"]:
print(item["asin"], item["list_price"], item["link"])
Browser rendering, proxy rotation and bot handling happen behind the endpoint and you get normalized JSON back. There is also an official Python SDK.
Wrap-up
Lightpanda is a good fit when a page needs JavaScript but not a disguise: parallel crawls of ordinary sites, agent browsing that wants Markdown, and CI checks where Chrome's footprint hurts. It is the wrong choice when the target is hostile to automation or when you need pixels. Install a pinned 1.0.x binary, try fetch --dump on your target first, and only move to the CDP server when you need Playwright's API.
Skip the browser stack on hard targets
Structured endpoints, managed proxies and rendering, pay-on-success billing. 2,000 free credits/month, no card.
Related reading
- Web scraping with Playwright: the API you keep when you connect Lightpanda over CDP
- Web scraping with Puppeteer: the other client Lightpanda's README documents
- Web scraping with curl_cffi: try this first if the data is already in the HTML
- Web scraping with Camoufox and with Patchright: the stealth side Lightpanda deliberately skips
- Stealth browser engine benchmark: how engines that do try to blend in actually fared
- Web scraping with AI: how agents consume pages, including over MCP
- How websites prevent web scraping in 2026: the detection layers a self-identifying browser runs into
Frequently asked questions
What is Lightpanda?
Lightpanda is an open-source headless browser written in Zig. It is not a Chromium fork: it uses V8 for JavaScript, html5ever for HTML parsing and libcurl for networking, executes page scripts and builds a DOM, and does not render pixels. It reached version 1.0 on 2026-10-02 and 1.0.5 on 2026-11-20.
Is Lightpanda faster than headless Chrome?
The project's README reports about 9x faster execution and 16x less peak memory than headless Chrome over 100 pages (5 seconds and 123 MB against 46 seconds and 2 GB), measured on an AWS m5.large over 933 real pages. That is the vendor's own benchmark. In our own run, one JavaScript-rendered page fetched in about 1.5 seconds at roughly 35 MB peak memory, but that is a single page on one Mac and is dominated by network time, not a head-to-head.
Can I use Playwright or Puppeteer with Lightpanda?
Yes, over the Chrome DevTools Protocol. Start lightpanda serve and call connect_over_cdp (Playwright) or puppeteer.connect with browserWSEndpoint (Puppeteer). We ran Playwright 1.65.2 for Python against Lightpanda 1.0.5 and extracted ten quotes from a JavaScript-rendered page; the only change from a Chrome script was the connection line.
Does Lightpanda bypass Cloudflare or other bot detection?
No, and it is not designed to. It sends the User-Agent Lightpanda/1.0 with matching client hints, and any --user-agent value containing "Mozilla" is rejected at startup, so it cannot present itself as Chrome. Sites that block unknown automated clients will block it. For fingerprint-sensitive targets use a stealth engine such as Camoufox or Patchright.
Does Lightpanda have an MCP server?
Yes. lightpanda mcp starts an MCP server over stdio, and lightpanda mcp --port 9223 serves it over HTTP with a separate browsing session per connection. In 1.0.5 --list-tools prints 40 tools, including goto, markdown, extract, click, fill and waitForSelector, and --tools restricts which ones are exposed.
What license is Lightpanda under, and does it send telemetry?
The repository is licensed AGPL-3.0, which matters if you embed or modify it in a networked product. Usage telemetry is on by default; set LIGHTPANDA_DISABLE_TELEMETRY=true to turn it off.
