Lightpanda

The Tiny Browser Built for Robots, Not Humans

ELI5 Edition — No Jargon, Just Analogies

First — What Is a "Headless Browser"?

📺
A normal browser like Chrome is like a TV with a screen. It downloads web pages, draws pictures, plays videos, and shows everything to you beautifully.
📻
A headless browser is like a TV without a screen. It still downloads and understands web pages, but it never bothers drawing them. It just reads the data and reports back — perfect for a robot that doesn't have eyes.

So What Is Lightpanda?

🐼
Most headless browsers are just Chrome with the screen ripped off. They still carry all the baggage — the layout engine, image decoder, font renderer, GPU code — even though nobody is looking.
✨
Lightpanda was built from scratch as a browser that never had a screen in the first place. Think of it as a race car designed without doors, windows, or a radio — it only has what it needs to go really, really fast.

How Much Faster? A Lot.

Loading 100 web pages on the same computer

11x
Faster than Chrome
9x
Less memory
23K
GitHub stars

In real terms: Chrome used 207 MB of memory and took 25 seconds. Lightpanda used 24 MB and finished in 2.3 seconds. Same task, fraction of the resources.

Why Do AI Agents Need This?

🤖
Imagine you're an AI assistant, and someone asks you to "go to this website and fill out a form." You need a browser to do that! But you don't need to see the website — you just need to understand it and interact with it.
💰
Running Chrome for every AI agent is like renting a movie theater just to listen to an audiobook. Lightpanda is like plugging in earbuds — same story, a tiny fraction of the cost.

When you're running thousands of agents at once, those savings add up to millions of dollars.

How Does It Work?

Three ingredients, no fluff

HTML Parser
Reads the page
→
JavaScript Engine (V8)
Runs the code
→
Network (LibCurl)
Talks to the internet

What's missing on purpose: No CSS layout engine, no image decoder, no font renderer, no GPU code. All the stuff that makes a browser pretty is thrown away because robots don't care about pretty.

Why Is It Written in Zig?

🧱
Most browsers are written in C++ — a language that's powerful but messy, like building with bricks held together by duct tape. Bugs hide everywhere.
⚡
Zig is a newer language that's just as fast as C++ but much cleaner and safer. Think of it like building with LEGO — the pieces snap together precisely, and you can see exactly how everything fits.

Fun fact: Zig gives you fine-grained control over memory — meaning Lightpanda can use exactly the memory it needs and not a byte more. That's why it only needs 24 MB where Chrome needs 207 MB.

It Speaks Chrome's Language

CDP = Chrome DevTools Protocol

🔌
Thousands of tools (like Puppeteer and Playwright) were built to control Chrome. They speak a special language called CDP. Lightpanda learned to speak the same language — so all those tools work with Lightpanda too, no changes needed.
🔋
It's like a new electric car that uses the same charging ports as Tesla. You don't need new chargers — you just plug in your existing ones and they work.

Who Uses Lightpanda?

AI Agent Builders

  • Give AI agents the ability to browse the web
  • Run thousands of browser sessions in parallel
  • Tools like browser-use and LaVague plug right in

Web Scrapers

  • Collect data from websites that need JavaScript
  • Do it with fraction of the server costs

Testing Teams

  • Run automated website tests 11x faster
  • Use existing Puppeteer/Playwright scripts

Cloud Platforms

  • Lightpanda offers a managed cloud service
  • Connect via WebSocket — no setup needed
  • Pay per use instead of running servers

The Big Picture

"The best browser for robots is one that was never designed for humans."

As AI agents become more capable, they need to interact with the web at massive scale. Running a full Chrome for each agent is wasteful and expensive. Lightpanda strips the browser down to just what machines need — and it's open source (AGPL-3.0), so anyone can use it.

github.com/lightpanda-io/browser • lightpanda.io