Browserless wraps Puppeteer to drive headless Chrome or Chromium from Node.js. It adds helpers for HTML, text, PDF, and screenshots with retries, ad blocking, and CLI access.
Overview
Browserless is a headless Chrome and Chromium driver on top of Puppeteer. Node.js code initializes a browser factory, opens isolated browser contexts akin to tabs, and runs high-level methods until contexts and the browser are closed.
Built-in methods fetch page HTML, extract plain text, render PDFs, and capture screenshots from URLs, with defaults for navigation, device emulation, and optional overlays. The goto layer supports ad blocking, request abort rules, authentication, scrolling, injected scripts, and timezone changes among other controls.
The API stays compatible with common Puppeteer flows while sharing one browser process across many contexts. Optional packages extend behavior for Lighthouse, screencast capture, and related tasks, and a separate Microlink-hosted API offers managed infrastructure.
Installation is via npm alongside puppeteer or puppeteer-core. The @browserless/cli package supports terminal-driven automation as part of scripted workflows.
Key features
- Puppeteer-compatible high-level API
- HTML, text, PDF, and screenshot helpers
- Isolated browser contexts
- Built-in ad and tracker blocking
- Navigation retries and timeouts
- Device viewport presets
- CLI for terminal automation
Use cases
- Server-side page screenshots
- Generating PDFs from URLs
- Extracting readable text from sites
- Automated headless browsing scripts