Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 markdown converts the rendered document to Markdown
  • --strip-mode clutter removes scripts, stylesheets, and non-content clutter (reader mode)
  • --log-level fatal keeps 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 links
  • css -- remove style tags and stylesheet links
  • ui -- remove img, picture, video, css, svg
  • shell -- 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 --dump after JavaScript execution
  • stderr: Log messages
  • --log-level fatal suppresses 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить lightpanda-browser с