{
 "kind": "tool",
 "slug": "puppeteer",
 "path": "tools/puppeteer/",
 "name": "Puppeteer",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Scraping, browsers and parsing",
   "tools/scraping-parsing/"
  ]
 ],
 "lead": "Headless Chrome/Chromium automation for scraping, testing and screenshot generation.",
 "chips": [
  {
   "label": "Scraping, browsers and parsing",
   "path": "tools/scraping-parsing/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install puppeteer"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/puppeteer/puppeteer"
  },
  {
   "label": "Website",
   "href": "https://github.com/puppeteer/puppeteer/tree/main#readme"
  },
  {
   "label": "API page",
   "path": "apis/puppeteer/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/puppeteer/puppeteer"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 17, 2026. ",
   "src": "https://github.com/puppeteer/puppeteer"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "86 projects",
   "status": "info",
   "sub": "#2 of 141 in its category",
   "note": "Dependency in 86 public GitHub projects set up for AI coding agents that we scanned (1.4%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Puppeteer does",
   "parts": [
    {
     "t": "prose",
     "text": "Puppeteer is the Chrome Browser Automation team's own JavaScript library for driving Chrome or Firefox, and each release is pinned to a specific browser build so protocol changes do not break your scripts."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Puppeteer popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "80",
       "of": "/ 100",
       "l": "Gid Score, #109 overall"
      },
      {
       "n": "16M",
       "l": "downloads a week, npm"
      },
      {
       "n": "95.9K",
       "l": "GitHub stars"
      },
      {
       "n": "86",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Puppeteer is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Puppeteer is a dependency in 86 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.8% of the 4,867 JavaScript/TypeScript ones), #2 of 141 in scraping, browsers and parsing.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 252; those are left out of every share on this page.",
      "The most used alternative in our scan is Playwright Core (80 projects).",
      "Projects that use it most often also use dotenv (50.0%), Axios (38.4%), Playwright (JavaScript) (44.2%).",
      "It is more common in projects set up for Continue (7.9%) than for GitHub Copilot (1.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "51 projects, 1.6%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "47 projects, 1.5%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "42 projects, 1.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "11 projects, 2.3%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "6 projects, 2.2%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "5 projects, 1.5%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "5 projects, 7.9%",
       "v": "Continue",
       "path": "agents/continue/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 50.0% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 38.4% of its projects",
       "v": "Axios",
       "path": "tools/axios/"
      },
      {
       "l": "In 44.2% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      },
      {
       "l": "In 74.4% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 24.4% of its projects",
       "v": "Jest",
       "path": "tools/jest/"
      },
      {
       "l": "In 54.7% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 54.7% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 57.0% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Puppeteer in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Clicks and keystrokes look like a real user's",
       "v": "The FAQ says all input events Puppeteer generates are trusted and fire the accompanying events, such as <code>mousedown</code> and <code>mouseup</code> before a click. Websites can tell trusted events from ones created by Web APIs."
      },
      {
       "l": "Browser version is pinned per release",
       "v": "Each Puppeteer release is bundled with a specific Chrome and Firefox release. The docs say this keeps browser changes from unexpectedly breaking Puppeteer. The pinned versions are listed in <code>revisions.ts</code>."
      },
      {
       "l": "CDP stays alongside WebDriver BiDi",
       "v": "BiDi support is production-ready from v23.0.0. The maintainers write that they will keep supporting Chrome automation over CDP, both for existing scripts and for Chrome-only use cases."
      },
      {
       "l": "Single-page app navigation counts",
       "v": "Puppeteer treats any URL change as a navigation. That includes anchor navigations and History API calls, not only full page loads."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Blocked install scripts mean no browser",
       "v": "The docs say npm, pnpm, Yarn, Bun and Deno block dependency install scripts by default. If the script is blocked, Chrome is not downloaded and you get errors at runtime. The fix is <code>npx puppeteer browsers install</code>, or adding <code>\"puppeteer\"</code> to <code>\"allowScripts\"</code>."
      },
      {
       "l": "JavaScript only, no grid",
       "v": "The FAQ says bindings for other languages and tooling to orchestrate automation at scale are beyond Puppeteer's scope. It names Selenium Grid as an example of the latter."
      },
      {
       "l": "API support differs between protocols",
       "v": "API support over WebDriver BiDi is not identical to CDP. The FAQ points to a separate guide for the \"subtle differences.\""
      }
     ]
    },
    {
     "t": "h3",
     "text": "Search a page and read a result title"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Ts",
       "code": "import puppeteer from 'puppeteer';\n// Or import puppeteer from 'puppeteer-core';\n\n// Launch the browser and open a new blank page.\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\n\n// Navigate the page to a URL.\nawait page.goto('https://developer.chrome.com/');\n\n// Set the screen size.\nawait page.setViewport({width: 1080, height: 1024});\n\n// Open the search menu using the keyboard.\nawait page.keyboard.press('/');\n\n// Type into search box using accessible input name.\nawait page.locator('::-p-aria(Search)').fill('automate beyond recorder');\n\n// Wait and click on first result.\nawait page.locator('.devsite-result-item-link').click();\n\n// Locate the full title with a unique string.\nconst textSelector = await page\n  .locator('::-p-text(Customize and automate)')\n  .waitHandle();\nconst fullTitle = await textSelector?.evaluate(el => el.textContent);\n\n// Print the full title.\nconsole.log('The title of this blog post is \"%s\".', fullTitle);\n\nawait browser.close();"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Puppeteer",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Puppeteer vs Playwright Core",
         "note": "used together in 0 projects",
         "path": "tools/compare/puppeteer-vs-playwright-core/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "dotenv: Loads .env variables",
        "@playwright/test: Playwright test runner",
        "axios: HTTP client",
        "jsdom: DOM in Node.js",
        "jest: Test runner",
        "zod: Schema validation"
       ]
      },
      {
       "title": "More in Scraping, browsers and parsing",
       "path": "tools/scraping-parsing/",
       "items": [
        {
         "text": "Beautiful Soup",
         "path": "tools/beautifulsoup4/"
        },
        {
         "text": "lxml",
         "path": "tools/lxml/"
        },
        {
         "text": "Playwright (Python)",
         "path": "tools/playwright/"
        },
        {
         "text": "Cheerio",
         "path": "tools/cheerio/"
        },
        {
         "text": "fast-xml-parser",
         "path": "tools/fast-xml-parser/"
        },
        {
         "text": "jsonc-parser",
         "path": "tools/jsonc-parser/"
        },
        {
         "text": "Mozilla Readability",
         "path": "tools/mozilla-readability/"
        },
        {
         "text": "linkedom",
         "path": "tools/linkedom/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Puppeteer",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 80",
        "16M/wk"
       ]
      },
      {
       "name": "Playwright Core",
       "why": "Headless browser automation library for cross-browser testing and web scraping.",
       "path": "tools/playwright-core/",
       "facts": [
        "Apache-2.0",
        "Gid 86",
        "203M/wk"
       ]
      },
      {
       "name": "Stagehand (JavaScript)",
       "why": "Browser agent SDK for building web automation agents.",
       "path": "tools/browserbasehq-stagehand/",
       "facts": [
        "MIT",
        "Gid 69",
        "2.6M/wk"
       ]
      }
     ],
     "more": "Compare Puppeteer with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install puppeteer"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Puppeteer\n- Install `puppeteer` when you want it to download a compatible Chrome. Install `puppeteer-core` when the project supplies its own browser.\n- If the package manager blocks install scripts, run `npx puppeteer browsers install` after install, or add `\"puppeteer\"` to `\"allowScripts\"` in `package.json`. Otherwise expect runtime errors from a missing browser.\n- Do not pair a Puppeteer version with an arbitrary browser version. Each release is bundled with a specific Chrome/Firefox build, listed in `revisions.ts`.\n- Prefer `page.locator(...)` with `::-p-aria(...)` or `::-p-text(...)` selectors, as in the README example. Always call `browser.close()` when done.\n- Use Puppeteer's input APIs for trusted events. Only use `page.evaluate` with DOM calls like `element.click()` when you deliberately need an untrusted event.\n- When targeting Firefox or WebDriver BiDi, check the WebDriver BiDi guide for API differences from CDP.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm puppeteer"
  ],
  [
   "Category",
   "Scraping, browsers and parsing"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Latest version",
   "browsers-v3.2.4, October 8, 2026"
  ],
  [
   "On GitHub since",
   "May 2017"
  ],
  [
   "Gid Score",
   "79.6"
  ],
  [
   "Rank in category",
   "#2 of 141"
  ],
  [
   "GitHub",
   "puppeteer/puppeteer"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Used by Wealthfront, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/puppeteer.png"
}