using-lightpandalisted
Install: claude install-skill msewell/agent-stuff
# Using Lightpanda
## What Lightpanda is
Lightpanda is a headless browser written in Zig with V8 for JavaScript and
html5ever for HTML parsing. It is **not** a Chromium fork. It deliberately
omits the entire rendering pipeline (layout, paint, compositing, GPU, font
and image decoding).
Three modes of operation:
- `lightpanda fetch <URL>` — one-shot CLI, dumps HTML or markdown to stdout.
- `lightpanda serve` — CDP WebSocket server; target for Puppeteer/Playwright.
- `lightpanda mcp` — native MCP stdio server exposing browser actions as tools.
Sub-100ms cold start. ~9–11× faster and ~9–16× less memory than headless
Chrome on equivalent workloads. Beta maturity — ~95% site compatibility.
## Scope
- Interactive, stateful browsing flows where the agent must `goto`, `click`,
and `fill` over multiple steps.
- JS-dependent pages where static HTTP fetches miss important content.
- Targeted extraction from rendered page state using `markdown`,
`structuredData`, or a scoped node subtree.
## Non-goals
- Open-web source discovery or ranking.
- Bulk multi-URL research extraction tasks.
- Generic URL-to-markdown conversion when no page interaction is needed.
- Non-HTML document conversion (PDF/DOCX/PPTX/audio/image workflows).
## When Lightpanda won't work
Stop and use Chrome (or tell the user to) when:
- **Screenshots, PDF export, or pixel inspection** are needed — no renderer.
- **Bot-protected sites** (Cloudflare managed challenge, DataDome, Akamai,
PerimeterX) — Lightp