Install the package
Prerequisites
- Node.js 22.12.0+. Reader has ESM compatibility issues with Bun - use Node.
- x86_64 architecture for Docker. Chromium is bundled as x86_64 only, so Apple Silicon Macs must use native Node.js or a remote Linux server for Docker deployments.
- Chrome system libraries on Linux (see below). On macOS, Hero downloads Chrome automatically on first run.
macOS
Nothing extra needed. Install the package and run your code - Hero downloads a matching Chrome build automatically on first use.Linux (Debian / Ubuntu)
Reader needs Chrome’s system dependencies to run a headless browser. Install them with:Docker
Reader ships with a production-ready Dockerfile underexamples/deployment/docker/ in the GitHub repo. The key constraints:
platform: linux/amd64- Chromium is bundled as x86_64shm_size: 2gb- Chrome uses/dev/shmheavily and crashes with the default 64 MBseccomp:unconfined+cap_add: SYS_ADMIN- required for the Chrome sandbox
Verify the install
Create a file,test.js:
Where to go next
Quickstart
Walk through your first scrape in more depth.
Examples
Runnable examples for batch, crawl, proxies, and more.

