lightpanda-browser
БесплатноБез исполняемых скриптовНе проверенLightpanda headless browser CLI for fast web content extraction, searching, and fetching When browsing the web, fetching URLs, searching the web, extracting…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
Lightpanda Browser
Overview
Lightpanda is an open-source headless browser built from scratch in Zig for machine/AI usage. It executes JavaScript, renders the DOM, and can emit Markdown or a semantic tree directly. Use it via CLI shell commands for fast content extraction.
Status: Beta. Works for most sites. Complex JS-heavy SPAs may fail -- fall back to Playwright for those.
Installation
On macOS, Lightpanda is installed persistently by the chezmoi-managed Homebrew bundle:
brew install lightpanda-io/browser/lightpanda
Use the bare lightpanda command. Current flags use hyphens, such as
--strip-mode and --log-level.
Ideal Command for AI Content Extraction
lightpanda fetch --dump markdown --strip-mode clutter --log-level fatal <url>
--dump markdownconverts the rendered document to Markdown--strip-mode clutterremoves scripts, stylesheets, and non-content clutter (reader mode)--log-level fatalkeeps routine logs out of stderr
CLI Reference
Commands
| Command | Purpose |
|---|---|
fetch |
Fetch a URL, execute JS, dump rendered HTML |
serve |
Start a CDP server (for Playwright/Puppeteer) |
help |
Show usage |
version |
Show version |
Fetch Options
| Flag | Description |
|---|---|
--dump <mode> |
Output html, markdown, or a semantic tree |
--strip-mode <modes> |
Tag group to remove: clutter, css, js, invisible, shell, ui (can be repeated) |
--with-base |
Add <base> tag to output |
Strip modes:
clutter-- heuristic to keep only main content (recommended for AI)js-- remove script tags and preload linkscss-- remove style tags and stylesheet linksui-- remove img, picture, video, css, svgshell-- remove page chrome (nav, aside, dialog, header, footer)invisible-- remove hidden elements (display:none, template)
Common Options (fetch and serve)
| Flag | Default | Description |
|---|---|---|
--obey-robots |
false | Respect robots.txt |
--http-proxy <url> |
none | HTTP proxy (supports user:pass@host:port) |
--proxy-bearer-token <token> |
none | Bearer auth for proxy |
--http-timeout <ms> |
10000 | Transfer timeout (0 = no timeout) |
--http-connect-timeout <ms> |
0 | Connection timeout (0 = no timeout) |
--http-max-concurrent <n> |
40 | Max concurrent HTTP requests |
--http-max-response-size <bytes> |
1 GiB | Limit response size |
--log-level <level> |
warn | debug/info/warn/error/fatal |
--log-format <fmt> |
logfmt | pretty/logfmt |
--user-agent-suffix <str> |
none | Appended to the Lightpanda user agent |
Environment Variables
| Variable | Description |
|---|---|
LIGHTPANDA_DISABLE_TELEMETRY=true |
Disable usage telemetry |
Common Patterns
Fetch a page (clean content)
lightpanda fetch --dump markdown --strip-mode clutter --log-level fatal https://example.com
Fetch with extended timeout (slow sites)
lightpanda fetch --dump markdown --strip-mode clutter --log-level fatal --http-timeout 15000 https://example.com
Fetch respecting robots.txt
lightpanda fetch --dump markdown --strip-mode clutter --log-level fatal --obey-robots https://example.com
Fetch with base tag (for resolving relative URLs)
lightpanda fetch --dump markdown --strip-mode clutter --log-level fatal --with-base https://example.com
Output Behavior
- stdout: The format selected by
--dumpafter JavaScript execution - stderr: Log messages
--log-level fatalsuppresses routine logs without hiding real command errors
When to Fall Back to Playwright
Use Playwright instead of lightpanda when you need:
- Interactive page manipulation (clicking buttons, filling forms)
- Multi-step navigation with session/cookie state
- Screenshots or visual testing
- Complex JS-heavy SPAs that lightpanda fails to render
- Waiting for specific elements or network conditions
Установить lightpanda-browser в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lightpanda-browser?
Lightpanda headless browser CLI for fast web content extraction, searching, and fetching When browsing the web, fetching URLs, searching the web, extracting web page content, or needing rendered HTML from a URL
Как установить скилл lightpanda-browser?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lightpanda-browser запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic