Lightpanda browse

From bidewio/better-openclaw · View interactive version

Lightpanda browse is an AI agent skill from the GitHub repository bidewio/better-openclaw. Browse the web using the ultra-fast LightPanda headless browser at {{LIGHTPANDA_HOST}}:{{LIGHTPANDA_PORT}}. 9x less memory than Chrome. CDP-compatible with Puppeteer.

How to use this skill

Skill file

LightPanda Browse Skill

LightPanda is an ultra-fast headless browser available via CDP at ws://{{LIGHTPANDA_HOST}}:{{LIGHTPANDA_PORT}}.

Connection

Connect via Puppeteer or Playwright using the CDP WebSocket endpoint:

const browser = await puppeteer.connect({
  browserWSEndpoint: "ws://{{LIGHTPANDA_HOST}}:{{LIGHTPANDA_PORT}}"
});

Navigate and Scrape

const page = await browser.newPage();
await page.goto('https://example.com');
const title = await page.title();
const content = await page.evaluate(() => document.body.innerText);

Extract Links

const links = await page.evaluate(() =>
  Array.from(document.querySelectorAll('a'))
    .map(a => ({ href: a.href, text: a.textContent }))
);

Take Screenshots

# Via CDP protocol
curl -s http://{{LIGHTPANDA_HOST}}:{{LIGHTPANDA_PORT}}/json/version

Key Advantages

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.