puppeteer
Installation
SKILL.md
Puppeteer
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol.
When to Use
- Headless Chrome Automation & Scraping: High-performance headless browser control for web scraping, automation, and crawling.
- Server-Side PDF & Screenshot Generation: Rendering HTML templates into pixel-perfect PDFs and high-resolution screenshots.
- Single-Page App Prerendering: Pre-rendering client-side SPAs into static HTML for SEO indexing.
- Chrome DevTools Protocol (CDP) Access: Tapping directly into raw Chrome DevTools Protocol events, performance profiling, and heap snapshots.
Quick Start
import puppeteer from "puppeteer";