mrkeyoor.comAsk

puppeteer/puppeteertested 07 Nov 2026commit 9319ada

puppeteer review

Use Puppeteer for custom JavaScript control of Chrome or Firefox when your team can own browser deployment, application readiness and cleanup.

  • README install 24 s
  • README snippet failed
9/138passed, run exited non-zero
  • 33.0 MB on disk
  • 26 dependencies
Automationevaluationupdated 22 Nov 2026
+15stars / 7d

Puppeteer is a JavaScript library that controls Chrome and Firefox from code. Its documented uses include screenshots, PDFs, page interaction and network inspection.

Verdict

Use Puppeteer for custom JavaScript control of Chrome or Firefox when your team can own browser deployment, application readiness and cleanup. Our source build succeeded in 93 seconds, but its test command failed; the separate npm 25.18.1 README-example attempt stopped with TransformError. Teams requiring WebKit coverage and an integrated testing framework should start with Playwright Test.

puppeteer infographic: control Chrome and Firefox from JavaScript, plus its uses, our test result, pitfalls and who it suits
Tested 19 November 2026: the README snippet failed with "name: 'TransformError'". Before that: 7 Nov: 9 of 138 source tests passed; npm install took 24 s.

We ran it

Lab card: what happened when we ran puppeteer
Lab card from our sandbox run
Screenshot of puppeteer (pptr.dev)
pptr.dev
Install✓ · 119s123 packages · 745 MB
Build✓ · 93s
Tests✗ · 57s9 passed · 129 failed of 138 (mocha)
Known vulns270 critical · 6 high · 19 moderate · 2 low (npm audit)
Repo1581 files~115,293 lines of source · 8.8 MB · 14 CI workflows · tests dir

Answers from our run

Does puppeteer build from source?

Dependencies installed in 119 seconds (123 packages), and the build succeeded in 93 seconds. We cloned commit 9319ada into a clean Debian container with 3 CPUs and no project-specific setup.

Do puppeteer's tests pass?

No. The project's own test command finished in 57 seconds and reported 9 passed, 129 failed (mocha).

Does puppeteer have known vulnerabilities in its dependencies?

npm audit flagged 27 known advisories in the dependency tree at the time of our run.

Who should not use puppeteer?

Teams requiring WebKit coverage and a bundled test runner: Playwright Test documents both.

What are the alternatives to puppeteer?

Playwright Test, Selenium, Cypress. Use Puppeteer for custom JavaScript control of Chrome or Firefox when your team can own browser deployment, application readiness and cleanup.

Setup3/5In our 2026-11-19 run it installed as the README says in 24 s, but the README’s “Example” example failed as written with “name: 'TransformError'”.Editor’s note: Installation succeeded in both runs, but the source tests failed and the README example stopped during transformation; successful browser setup was not demonstrated.
Docs3/5The README has an install section (“Get started | API | FAQ | Contributing…”) and a usage section (“Example”), but its “Example” example failed as written in our 2026-11-19 run (“name: 'TransformError'”).Editor’s note: Installation and browser-control guidance is visible, but the README-example failure has no diagnosed cause or successful rerun for evaluating reproducibility.
Community5/5Last push on 2026-11-22, 95,883 stars and maintainers answered or closed 9 of the 10 most-discussed issues we sampled.Editor’s note: The sampled discussions contain attributed workarounds and unresolved reports, without measuring response times or production adoption.
Maturity4/5Latest release puppeteer-core-v25.18.1 on 2026-11-17, repository created 2017-05-09 and its test suite did not pass in our sandbox (9 of 138 passed).Editor’s note: The checkout has 14 CI workflow files and historical issue activity, but these runs do not assess sustained browser reliability or current platform coverage.

How we score

Discussed on

  1. hnPuppeteer Support for Firefox655 points
  2. hnPuppeteer: Headless Chrome Node API406 points
  3. hnPrototype: Puppeteer for Firefox335 points
  4. hnShow HN: Web scraping that just works with OpenFaaS with Puppeteer145 points
  5. hnShow HN: Getting started with Puppeteer and Chrome Headless for Web Scraping142 points

Who it’s for

JavaScript developers building screenshot, rendered-page extraction or custom browser workflows.
Teams choosing their own orchestration and testing tools.
Operators who can manage browser installation, page readiness and cleanup.

Who it’s NOT for

Teams requiring WebKit coverage and a bundled test runner: Playwright Test documents both.
Deployments restricted to copying node_modules without arranging the browser cache.
Teams expecting a browser download to handle host libraries, ARM availability and sandbox configuration automatically.

Setup reality

Our November 7 source run at commit 9319ada installed in 119 seconds and built in 93 seconds, with 123 dependencies and 745 MB recorded. Tests exited 1 in 57 seconds. The parser recorded 9 passed and 129 failed of 138; the retained Mocha tail contains different failure and pending counts. npm audit reported 27 known vulnerabilities, including 6 high.

Our separate November 19 run installed npm package 25.18.1 in 24.4 seconds, recorded 33.0 MB of node_modules and 26 packages besides Puppeteer, then attempted the unedited README TypeScript example from commit aebed4488e7b through tsx. That step exited 1 with TransformError in 0.3 seconds. Teardown succeeded.

The README documents npm i puppeteer and npx puppeteer browsers install when the browser download needs to be run manually. The November 7 sandbox configuration specified 3 CPUs, 8 GB RAM and image lab-node:22; the November 19 configuration specified 2 CPUs and 4 GB RAM.

Choose it when browser control is the job

Puppeteer controls Chrome and Firefox from JavaScript; choose it for a custom browser workflow when your team can own the surrounding orchestration. Chrome's Puppeteer documentation lists screenshots, PDFs, page interaction and network inspection. Teams requiring WebKit coverage and a bundled testing framework should start with Playwright Test's documented runner, assertions, isolation and parallelization. Those requirements give the choice a concrete starting point before either tool enters your application.

This review covers puppeteer/puppeteer, the browser automation library. The repository README describes control through the DevTools Protocol or WebDriver BiDi and says the default browser runs headless, without a visible interface. Our two execution accounts reached different stages: the source checkout built and then failed its test command; the npm-package attempt stopped while transforming the README example. The sections below keep those outcomes separate from other users' browser and deployment reports.

What people use Puppeteer for

Emil Hein reports using Puppeteer to watch script requests and distribute screenshots through S3 and Slack. His serverless workflow account describes checking whether an expected script loads, with a 20-second timeout. The examples below also include screenshot comparison and extraction from rendered pages. Each names the person or discussion behind the account, so a tutorial demonstration and a deployment report retain their different meanings.

Who used it Task and reported outcome
Emil Hein Watched network traffic for an expected script request, using a 20-second timeout.
Emil Hein Saved screenshots in S3 and attached them to a Slack channel for automated tests.
GitHub user cdeutsch Used BackstopJS in Docker for screenshot comparisons across operating systems, reporting two days spent finding an ARM workaround.
Montvidas, in Oxylabs' tutorial Extracted rendered quotes into JSON containing text, authors and tags.
Vercel community thread author Ran screenshot and scraping endpoints that subsequently stopped working; recreating the linked example also failed.

Hein also describes automating a system that lacked an official API, using its authenticated interface and a shortcut involving the login token. His account makes the approach system-dependent. For a different requirement, r/homelab user oguruma87 wanted JavaScript-rendered job listings for a hometown job board. Commenter hasdata_com recommended headless browser libraries, naming Puppeteer, Playwright and Selenium and pointing beginners toward Playwright's code generation.

What happened when we ran it

Our November 19 run installed Puppeteer 25.18.1, then stopped with TransformError while transforming the unedited README example. The example checkout was commit aebed4488e7b, and execution used tsx. Its unprivileged lab-node:22 container was configured with 2 CPUs, 4 GB RAM, no published ports and no secrets. These identifiers distinguish the npm package under evaluation from the repository checkout containing the example.

The clone step took 1 second. Package installation, size and dependency counting completed before the example attempt. The failed step records a 32-line TypeScript block, exit 1 and a 0.3-second duration. Its retained output contains Node stream stack frames and the error name. The finding records that the snippet failed as written in this setup, followed by successful teardown.

Hands-on question Answer Verdict Why
Did the recipe fetch the checkout? Clone completed in 1 second. Completed Clone step.
Did npm installation complete? Puppeteer 25.18.1 installed in 24.4 seconds. Completed Installation step.
What installed size was recorded? node_modules occupied 33.0 MB. Measured Installed-size step.
How many additional packages were installed? 26 packages besides Puppeteer. Counted Dependency-count step.
Did the unedited README example complete? It failed in 0.3 seconds with TransformError and exit 1. Failed Example execution step.
Did teardown complete? Teardown reported ok. Completed Teardown record.

Our separate November 7 source run installed commit 9319ada in 119 seconds and built it in 93 seconds. We measured these results in a sandbox configured with 3 CPUs, 8 GB RAM and image label lab-node:22. The source-run measurements also recorded 1,581 repository files, approximately 115,293 lines of source and an 8.8 MB checkout. The source run's total recorded duration was 290 seconds.

November 7 source run Recorded result
npm installation Succeeded in 119 seconds; 123 dependencies recorded; 745 MB on disk
Build Succeeded in 93 seconds
Tests Exit 1 in 57 seconds; parser summary: 9 passed, 129 failed of 138
npm audit 27 known vulnerabilities: 0 critical, 6 high, 19 moderate, 2 low
Repository scan 14 CI workflow files, a tests directory and monorepo workspaces; no Dockerfile detected

The retained test tail contains multiple summaries whose relationship is unresolved. It lists 9 passes in each summary, failure counts of 98, 118, 130 and 114, and corresponding pending counts of 33, 13, 1 and 17. The parser's 129-of-138 failure summary and those tail entries are different recorded views of the failed command. Adding the tail's counts together would create a total that the run never reported.

Where people get stuck: browser availability and application readiness

Browser availability and application readiness are separate failure stages: a missing executable blocks launch, while an updating form can disrupt input after launch. Historical ARM issue #7740 reports The chromium binary is not available for arm64. Historical typing issue #1648 describes lost focus while a React form updated. Those reports call for different responses, even though both appear to the script author as failed automation.

Report What the discussion offers
#7740, ARM browser availability talisto installed Chromium through the base image's package manager, skipped the bundled download and changed the executable path; ngraef discussed version matching.
#391, CentOS launch failure Reports include sandbox, font and dependency problems; replies distinguish RHEL package names from Debian names.
#4796, connection timeout tbadlov moved the Cloud Function response until after Puppeteer finished and reported success in that case.
#1648, incomplete typing Replies discuss framework readiness and validation states; direct value assignment did not trigger React onChange.
#1325, execution-context errors One user fixed their case by waiting for an element; a maintainer mentioned a tip-of-tree fix, followed by a report of continued failure in 1.0.0-rc.
#299, download completion A commenter reported page.goto staying unresolved after downloads finished; discussion proposed saving response buffers or making manual requests.

In the Cloud Function case, tbadlov changed when the function responded, rather than simply increasing a timeout. For page input, the useful readiness condition belongs to the application: an element's presence and a form's readiness are different states. The practical Node tutorial illustrates that distinction with delayed inline content and a wait tied to the value the script needs to read.

Browser installation and cache packaging are separate work

The README documents npx puppeteer browsers install for downloading browsers after installation when dependency scripts were blocked. Its installation note says blocked scripts prevent Puppeteer's browser download and lead to runtime errors. That makes package installation and browser acquisition separate deployment steps. The full package's download behavior is useful only when the package manager allows it or the browser-install command runs separately.

The documentation snapshot places the default cache at $HOME/.cache/puppeteer starting with v19.0.0 and describes hosting configurations that need the cache inside the project. The package comparison in the practical tutorial says the full package manages a matching browser, while puppeteer-core requires deliberate executable, channel or connection management. Choose core when your infrastructure already supplies the local or remote browser; the executable then belongs to that infrastructure's deployment configuration.

Repeated jobs need a browser lifecycle

Repeated jobs need explicit page cleanup, browser cleanup and a rule for jobs that exceed their allowed duration. The practical tutorial closes the browser in finally, making cleanup part of the script's control flow. A service evaluation should likewise identify who closes the page after extraction throws and who stops browser work after the caller has finished. These are concrete design questions for the worker that hosts Puppeteer.

Historical issue #5893 reports memory growth with Puppeteer 2.1.1 while repeatedly creating and closing pages. Its reproduction uses an endless loop, and later comments describe long sessions. Separately, issue #478 records sul4bh's screencasting experiments: roughly 5 fps initially, 1 fps in headless mode, and a later report averaging 25 frames per second while playing a 25 fps video. A maintainer suggested tracing with embedded screenshots for inspection.

Security: keep the browser sandbox enabled

Keep Chrome's sandbox enabled rather than copying --no-sandbox into a deployment template as an unexplained default. Historical CentOS issue #391 includes No usable sandbox!, followed by Chrome's warning about the flag. The sandbox is the browser's isolation mechanism; the reported launch error therefore calls for attention to the host's sandbox configuration as well as its browser libraries and fonts.

Our source run's npm audit recorded 27 known vulnerabilities, including 6 high. For owned-site access, Reddit user Amitk2405 separately reported challenge pages in a Playwright setup using puppeteer-extra-plugin-stealth through playwright-extra. Commenter ian_k93 suggested allowlisting the owned test runner in Cloudflare. The author described control over the staging site, making access policy part of that particular test environment's configuration.

Puppeteer vs Playwright, Selenium and Cypress

Playwright Test bundles a test runner, assertions, isolation and parallelization, while Puppeteer supplies browser control for a workflow you assemble. Playwright's introduction also documents Chromium, Firefox and WebKit coverage. Start with those concrete requirements: the browser matrix, an existing automation interface and the debugging workflow your team needs. The comparison below uses the alternatives' own documentation for their consequential capabilities.

Choice Why you would pick it
Puppeteer Build a custom Chrome or Firefox workflow using the documented screenshot, PDF, interaction and network capabilities.
Playwright Test Get a bundled runner, assertions, isolation and parallelization, with Chromium, Firefox and WebKit coverage.
Selenium Retain WebDriver automation or use Grid for parallel tests across machines.
Cypress Use a testing environment whose UI shows command execution, assertions and network requests.
puppeteer-core Use a browser you already manage, with explicit executable or connection management.

Browserless additionally markets remote browser connections as a way to outsource concurrency limits, queueing, session timeouts and browser lifecycle. That is the vendor's service proposition. It answers a different purchasing question from choosing a test runner: whether your team wants to operate the browser processes itself. Keeping an existing WebDriver system, adopting Playwright Test and connecting Puppeteer to a managed browser are three distinct integration decisions.

What the other reviews get wrong

ProsperaSoft's Chrome-only description conflicts with Chrome's documentation, which explicitly names Chrome and Firefox. The ProsperaSoft comparison says Puppeteer is limited to Chrome; Chrome's description includes Firefox and WebDriver BiDi. BrowserScan's experimental-Firefox wording also differs from Nitay Neeman's updated guide describing stable Firefox support. Neeman separately notes that some APIs remain Chrome-only, so the browser names alone do not describe every API's availability.

The old mixn fork's Node v6.4.0 requirement is historical installation guidance; the newer practical tutorial calls for a supported Node.js release. Montvidas' video places Chromium in node_modules, whereas the cache documentation describes $HOME/.cache/puppeteer from v19.0.0. These corrections change which setup instructions a reader should follow without changing either recorded installation measurement.

Neeman's blanket assurance of compatibility with the host operating system exceeds browser/API matching: the historical ARM binary report and Linux launch discussion identify separate host problems. Likewise, the old fork's zero-setup wording should be read alongside the cache documentation's hosting-provider configuration guidance. Downloading a matching browser and packaging a working server deployment are separate operations.

FAQ

Puppeteer is a JavaScript library for controlling Chrome and Firefox, as the official project description states. The questions below focus on installing that library and choosing its surrounding workflow. They cover npm installation, package choice, alternatives and rendered-page extraction, all of which appear in developer searches or the linked discussions. The repository covered throughout is puppeteer/puppeteer.

How do I install and run Puppeteer with npm?

Install with npm i puppeteer; the README also documents npx puppeteer browsers install when a separate browser download is needed. Its example launches a browser, creates a page, navigates to Chrome's developer site, interacts with search and closes the browser. The practical tutorial uses a first.mjs file with inline HTML, giving learners a page without a website account or separate server to prepare.

Should I use puppeteer or puppeteer-core?

Use puppeteer-core when you already manage a local or remote browser; use the full package when you want its browser-management behavior. The documentation snapshot describes explicit executablePath or channel configuration for a browser you manage. The practical tutorial states the same package distinction. The decision assigns responsibility for acquiring and configuring the executable to either the package installation or your infrastructure.

Should I choose Puppeteer, Playwright or Selenium?

Choose Puppeteer for custom JavaScript browser control, Playwright Test for its bundled testing tools and WebKit coverage, or Selenium for a WebDriver or Grid requirement. Playwright documents its runner and browser targets, while Selenium documents WebDriver and distributed Grid execution. An existing interface or required browser is a firmer selection criterion than a general preference for one project's automation style.

Is Puppeteer or Playwright better for scraping JavaScript-rendered pages?

Both appear in the r/homelab recommendations for extracting JavaScript-rendered job listings. Commenter hasdata_com names Puppeteer, Playwright and Selenium, adding that beginners often like Playwright's code generation. Montvidas' Puppeteer demonstration extracts rendered quotes into JSON. For that tutorial's page, waiting for quote elements precedes extraction; pagination, scroll-triggered content and challenge pages appear as separate obstacles in the same tutorial.

Should I use Puppeteer or Playwright for PDF generation?

Puppeteer's official examples explicitly include generating PDFs from websites, making it a documented option for document output. The 25.18.1 examples page also lists screenshots and request interception. For a PDF evaluation, use a document with the fonts, layout and print behavior your application requires. That keeps the acceptance task tied to the output you intend to save rather than to a testing framework's feature list.

What we have not tested yet

The November 19 example stopped during transformation, leaving browser launch, screenshot output, scraping accuracy, PDF fidelity and browser performance untested in that run. The error has no diagnosed cause or successful corrected rerun here. The November 7 test tail needs complete-log reconciliation before assigning a unique test total or causes to individual failures. The image label establishes configured image identity, not actual Node or operating-system versions.

The two runs used different commits and resources, so their sizes and timings do not combine into minimum requirements. Browser-inclusive disk usage, runtime memory and equivalent Puppeteer, Playwright and Selenium workloads remain untested. Current ARM64 compatibility, a complete CentOS deployment recipe and exact system-Chromium release mappings also need current evidence. The Vercel report contains no diagnostic detail or confirmed remedy, and the historical download discussion leaves additional upstream work outstanding.

Long-running reliability, reproduction of #5893 on 25.18.1, browser recycling, managed-hosting cost and complete-frame video capture have no measured outcome here. Stable Firefox API parity and supported stable-browser reliability also require separate checks. The October 2025 Chrome Canary and Firefox Nightly monitoring discussion concerns prerelease-browser tests; its alternating outcomes do not establish stable-browser failures.

The mixed Playwright and stealth-plugin account has no isolated Puppeteer reproduction or successful follow-up. The audit summary lacks dependency paths, exploit conditions and a production-only subset; it is not a security assessment of a hosted screenshot service. Rendered layout, resolved evidence links, related links, recommendation modules and template content were outside this text review. The next useful execution is a pinned package and browser completing the intended task on the deployment host, with output saved and cleanup observed.

Alternatives

ProjectWhat it isPick it when
Playwright Test gh↗An end-to-end testing framework with a runner, assertions, isolation and parallelization.Choose it when an integrated testing framework and Chromium, Firefox and WebKit coverage match your requirements.
Selenium gh↗Browser automation through WebDriver, with Grid for execution across machines.Choose it when your automation already depends on WebDriver or needs Grid.
Cypress gh↗A testing environment with a visual command log and application snapshots.Choose it when application testing and interactive debugging are the main job.

Sources

  1. Puppeteer repository and README
  2. Chrome for Developers: Puppeteer
  3. Playwright Test introduction
  4. Selenium documentation
  5. Why Cypress
  6. Puppeteer official examples
  7. Emil Hein: serverless Puppeteer use cases
  8. Oxylabs tutorial presented by Montvidas

More automation reviews