# Puppeteer

> JavaScript API for Chrome and Firefox

Source: https://talira.ai/catalog/puppeteer-vbv4zakx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [documents / pdf / generation](https://talira.ai/categories/documents/pdf/generation), [developer tools / browser automation](https://talira.ai/categories/developer-tools/browser-automation), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: linux, macos, windows, docker[^3][^4]
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1][^2]
- Free tier: yes[^1][^2]
- Self-hostable: yes[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^5]

Puppeteer is a Node.js library that controls Chrome or Firefox over the DevTools Protocol or WebDriver BiDi, headless by default. It is used for browser automation, testing and scraping, and its page.pdf() method prints any page to PDF with Chrome's print engine, so HTML, CSS and JavaScript render exactly as in the browser; page.pdf() waits for fonts to load. Under Firefox (WebDriver BiDi) only some PDF options are supported. It is maintained by Google's Chrome Browser Automation team.

## Links

- Website: https://pptr.dev
- GitHub: https://github.com/puppeteer/puppeteer
- Docs: https://pptr.dev/guides/pdf-generation

## Problems it solves

- my invoice page uses a JavaScript chart library and it has to look the same in the PDF
- print a React dashboard to PDF exactly as it renders in Chrome
- from Node, open a URL, wait for the network to go quiet, then save it as a PDF
- save a web page as PDF from a script instead of clicking print in the browser
- need to log in to our app first and then export the report page to PDF
- the HTML to PDF library we use doesn't understand flexbox or grid
- generate PDFs from Tailwind-styled HTML templates in an Express server
- stream a PDF of a rendered page straight to the HTTP response
- add page numbers in a header or footer when printing HTML from code
- automate Chrome to take screenshots and PDFs of many pages in a batch job

## Features

- page.pdf() and createPDFStream() print to PDF
- headless by default
- waits for fonts before printing
- Chrome and Firefox via DevTools Protocol or WebDriver BiDi
- downloads a compatible Chrome on install (puppeteer-core does not)
- screenshots, navigation, form input and scraping

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.82 out of 1.
Signals: maintenance 1.00, adoption 1.00, momentum 0.88, community 1.00, backing 0.55, extensibility 0.00.

- last commit 9 days ago
- 293 commits in the last 90 days
- latest release browsers-v3.2.7 13 days ago
- 95.8k GitHub stars
- 613 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Related

- Works with [Chrome DevTools for agents](https://talira.ai/catalog/chrome-devtools-for-agents-9kxe7gvr.md)

## Alternatives

- [Playwright](https://talira.ai/catalog/playwright-r7fvkefh.md): Fast and reliable end-to-end testing for modern web apps
- [WeasyPrint](https://talira.ai/catalog/weasyprint-c7dnxd3b.md): Renders HTML and CSS to PDF, from Python or the command line
- [@react-pdf/renderer](https://talira.ai/catalog/react-pdf-renderer-e1aq29ey.md): PDFs, made with React
- [PDFKit](https://talira.ai/catalog/pdfkit-2tzqj5bd.md): A JavaScript PDF generation library for Node and the browser.
- [Prince](https://talira.ai/catalog/prince-cbgkkxts.md): Convert HTML to PDF. Beautiful printing with simple CSS.
- [jsPDF](https://talira.ai/catalog/jspdf-1ag2wrna.md): Client-side JavaScript PDF generation for everyone.

## Sources

[^1]: https://github.com/puppeteer/puppeteer/blob/main/LICENSE (checked 17 Nov 2026)
[^2]: https://github.com/puppeteer/puppeteer (checked 17 Nov 2026)
[^3]: https://pptr.dev/guides/system-requirements (checked 17 Nov 2026)
[^4]: https://pptr.dev/guides/docker (checked 17 Nov 2026)
[^5]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
