Logo di Lightpanda

Lightpanda

Community
ninehills
Lightpanda

Lightpanda browser, drop-in replacement for Chrome and Openclaw default browser - faster and lighter for tasks without graphical rendering like data retrieval. Use it via MCP server, CLI fetch, or CDP with Playwright/Puppeteer.

Panoramica

Pubblicato daninehills
Repositoryskills
Nome della skillLightpanda
Stelle
278
Fork
26
File inclusi
1
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da ninehills su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Lightpanda in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/ninehills/skills/tree/main/lightpanda
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ninehills/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/lightpanda .claude/skills/Lightpanda
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Lightpanda in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Lightpanda non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Lightpanda non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Lightpanda

Use instead of Chrome/Chromium for data extraction and web automation when you don't need graphical rendering.

Lightpanda is a headless browser built from scratch for AI agents. It's 9x faster and uses 16x less memory than Chrome. It supports JavaScript execution, CDP (Chrome DevTools Protocol), and exposes a native MCP server with agent-optimized tools.

Alternative to built-in web search

When the built-in Web Search tool is unavailable, or when you need more control over search results (e.g., following links to extract full page content), you can use Lightpanda with DuckDuckGo as an alternative. Prefer the built-in Web Search tool when it is available and sufficient for your needs.

Install

bash
bash scripts/install.sh

Lightpanda is available on Linux and macOS only. Windows is supported via WSL2.

The binary is a nightly build that evolves quickly. If you encounter crashes or issues, run scripts/install.sh again to update to the latest version (max once per day).

If issues persist after updating, open a GitHub issue at https://github.com/lightpanda-io/browser/issues including:

  • The crash trace/error output, or a description of the unexpected behavior
  • The script or MCP tool call that reproduces the issue
  • The target URL and expected vs actual results

When to Use What

Lightpanda offers three interfaces. Choose based on your needs:

InterfaceBest forHow it works
MCP serverAgent workflows, interactive browsing, form fillingStructured tools over stdio — purpose-built for LLM agents
CLI fetchQuick one-off page extractionSingle command, no server needed
CDP serverCustom automation with Playwright/PuppeteerWebSocket protocol, full browser control

MCP Server (Recommended for Agents)

The MCP server is the simplest way for agents to use Lightpanda. It exposes purpose-built tools over stdio with no setup beyond the binary.

Setup for Claude Code

bash
claude mcp add lightpanda -- $HOME/.local/bin/lightpanda mcp

Setup for other MCP clients

Add to your MCP client configuration:

json
{
  "mcpServers": {
    "lightpanda": {
      "command": "$HOME/.local/bin/lightpanda",
      "args": ["mcp"]
    }
  }
}

Replace $HOME with the actual path (e.g., /home/username or /Users/username).

Available MCP Tools

Navigation & content extraction:

  • goto — Navigate to a URL and load the page
  • markdown — Get page content as markdown (accepts optional URL to navigate first)
  • links — Extract all links from the page
  • semantic_tree — Get a simplified semantic DOM tree optimized for AI reasoning (supports backendNodeId filter and maxDepth limit)
  • structuredData — Extract structured data (JSON-LD, OpenGraph, etc.)
  • evaluate — Execute JavaScript in the page context

Interactive element discovery:

  • interactiveElements — List all interactive elements on the page
  • detectForms — Detect forms with their field structure and types
  • nodeDetails — Get detailed info about a specific node by backendNodeId
  • waitForSelector — Wait for a CSS selector to match (default timeout: 5000ms)

User actions (return page URL and title after each action):

  • click — Click an interactive element by backendNodeId
  • fill — Fill text into an input, textarea, or select element
  • scroll — Scroll the page or a specific element

Available MCP Resources

  • mcp://page/html — Full serialized HTML of the current page
  • mcp://page/markdown — Token-efficient markdown representation of the current page

MCP Usage Example

A typical agent workflow:

  1. goto a URL
  2. semantic_tree or markdown to understand the page
  3. interactiveElements to find clickable/fillable elements
  4. click / fill to interact
  5. markdown to extract the result

CLI Fetch — Quick Extraction

For one-off page extraction without starting a server:

bash
$HOME/.local/bin/lightpanda fetch --dump markdown --wait-until networkidle https://example.com

Options

  • --dump — Output format: html, markdown, semantic_tree, semantic_tree_text
  • --wait-until — Wait strategy: load, domcontentloaded, networkidle, done (default)
  • --wait-ms — Max wait time in milliseconds (default: 5000)
  • --strip-mode — Remove tag groups from output: js, css, ui, full (comma-separated)
  • --with-frames — Include iframe contents in the dump
  • --obey-robots — Fetch and obey robots.txt

Examples

Extract page as markdown:

bash
$HOME/.local/bin/lightpanda fetch --dump markdown https://example.com

Extract semantic tree (compact, AI-friendly):

bash
$HOME/.local/bin/lightpanda fetch --dump semantic_tree_text --wait-until networkidle https://example.com

Fetch with longer wait for slow pages:

bash
$HOME/.local/bin/lightpanda fetch --dump html --wait-ms 10000 --wait-until networkidle https://example.com

CDP Server — Advanced Automation

For full browser control via Playwright or Puppeteer:

Start the Browser Server

bash
$HOME/.local/bin/lightpanda serve --host 127.0.0.1 --port 9222

Options:

  • --log-level info|debug|warn|error — Set logging verbosity
  • --log-format pretty|logfmt — Output format for logs
  • --timeout — Inactivity timeout in seconds (default: 10)
  • --obey-robots — Fetch and obey robots.txt

Using with playwright-core

Connect using playwright-core (not the full playwright package):

javascript
const { chromium } = require('playwright-core');

(async () => {
  const browser = await chromium.connectOverCDP({
    endpointURL: 'ws://127.0.0.1:9222',
  });

  const context = await browser.newContext({});
  const page = await context.newPage();

  await page.goto('https://example.com');
  const title = await page.title();
  const content = await page.textContent('body');

  console.log(JSON.stringify({ title, content }));

  await page.close();
  await context.close();
  await browser.close();
})();

Using with puppeteer-core

Connect using puppeteer-core (not the full puppeteer package):

javascript
const puppeteer = require('puppeteer-core');

(async () => {
  const browser = await puppeteer.connect({
    browserWSEndpoint: 'ws://127.0.0.1:9222'
  });

  const context = await browser.createBrowserContext();
  const page = await context.newPage();

  await page.goto('https://example.com', { waitUntil: 'networkidle0' });
  const title = await page.title();

  console.log(JSON.stringify({ title }));

  await page.close();
  await context.close();
  await browser.close();
})();

Custom LP CDP Domain

Lightpanda exposes a custom LP domain via CDP with agent-optimized methods not available in standard Chrome DevTools Protocol. Use these via page.evaluate with CDP sessions or direct WebSocket messages.

Content extraction:

  • LP.getMarkdown — Extract page content as markdown. Params: nodeId (optional)
  • LP.getSemanticTree — Get semantic tree representation. Params: format (text for text format), prune (default: true), interactiveOnly, backendNodeId, maxDepth
  • LP.getStructuredData — Extract structured data (JSON-LD, OpenGraph, etc.)

Interactive elements:

  • LP.getInteractiveElements — Find all interactive elements. Params: nodeId (optional)
  • LP.detectForms — Detect and extract form information
  • LP.getNodeDetails — Get detailed info about a node. Params: backendNodeId (required)
  • LP.waitForSelector — Wait for a CSS selector match. Params: selector (required), timeout (default: 5000ms)

Actions:

  • LP.clickNode — Click a node. Params: nodeId or backendNodeId
  • LP.fillNode — Fill an input/select element. Params: nodeId or backendNodeId, text
  • LP.scrollNode — Scroll page or element. Params: nodeId or backendNodeId (optional), x, y

Example using CDP session with Playwright:

javascript
const client = await context.newCDPSession(page);

// Get page as markdown
const { markdown } = await client.send('LP.getMarkdown');

// Get semantic tree
const { semanticTree } = await client.send('LP.getSemanticTree', { format: 'text', maxDepth: 5 });

// Wait for element and click it
const { backendNodeId } = await client.send('LP.waitForSelector', { selector: '#submit-btn', timeout: 3000 });
await client.send('LP.clickNode', { backendNodeId });

Important Notes

  • For web searches, use DuckDuckGo instead of Google. Google blocks Lightpanda due to browser fingerprinting.
  • Lightpanda is under heavy development and may have occasional issues. It executes JavaScript, making it suitable for dynamic websites and SPAs.
  • CDP connection limits: Only 1 CDP connection per process. Each connection supports 1 context and 1 page. For parallel browsing, start multiple processes on different ports — Lightpanda starts instantly, so this is fast.
  • CDP state management: The browser resets all state on CDP connection close. Keep the WebSocket connection open throughout a session. On each connection, always create a new context and page, and close both when done.
  • The MCP server handles connection management automatically — these CDP limits don't apply when using MCP tools.

Scripts

  • scripts/install.sh — Install Lightpanda binary

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Lightpanda?

Lightpanda browser, drop-in replacement for Chrome and Openclaw default browser - faster and lighter for tasks without graphical rendering like data retrieval. Use it via MCP server, CLI fetch, or CDP with Playwright/Puppeteer.

Perché usare Lightpanda su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Lightpanda è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Lightpanda in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/ninehills/skills/tree/main/lightpanda. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Lightpanda?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Lightpanda?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Lightpanda: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Lightpanda è gratuita?

È pubblicata su GitHub da ninehills. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇