Stagehand (JavaScript)
Browser agent SDK for building web automation agents.
Scraping, browsers and parsing npm MIT Browser automation
How Stagehand (JavaScript) is used
Stagehand (JavaScript) is a dependency in 5 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 136 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Puppeteer (84 projects). Projects that use it most often also use Zod (74.3%), dotenv (53.7%), Browserbase SDK (36.8%).
Stagehand (JavaScript) popularity over time
Gid Score 61: downloads 63, use in agent projects 55, GitHub stars 66, downloads trend 61 (each 0-100). How it is calculated.
Often used with Stagehand (JavaScript)
| Zod | 74.3% of Stagehand (JavaScript) projects · 3.0× more than average |
|---|---|
| dotenv | 53.7% of Stagehand (JavaScript) projects · 3.4× more than average |
| Browserbase SDK | 36.8% of Stagehand (JavaScript) projects · 1141.2× more than average |
| TypeScript | 89.7% of Stagehand (JavaScript) projects · 1.6× more than average |
| AI SDK | 33.1% of Stagehand (JavaScript) projects · 7.5× more than average |
| OpenAI | 31.6% of Stagehand (JavaScript) projects · 6.9× more than average |
| Playwright (JavaScript) | 40.4% of Stagehand (JavaScript) projects · 2.4× more than average |
| tsx | 34.6% of Stagehand (JavaScript) projects · 2.3× more than average |
From all 136 projects in our scan that use Stagehand (JavaScript), including the dependency samples.
Agent Skills for Stagehand (JavaScript)
| Official: browserbase/skills | 18 skills · 11 with scripts · npx skills add browserbase/skills |
|---|
Skills teach your coding agent how to use Stagehand (JavaScript) well. Official means the pack comes from the same GitHub account as Stagehand (JavaScript). Read a skill before installing it: it can include scripts. All Agent Skills
Install
| Package | npm install @browserbasehq/stagehand |
|---|---|
| Main stacks | TypeScript / JavaScript (77), Next.js (51), Python (5), React Native / Expo (2) |
| Example projects | eastlondoner/vibe-tools, zaidmukaddam/youtube-transcripts-machine, jay-sahnan/signal, adrianhajdin/job_pilot, rwliebs/Dossier |
Alternatives to Stagehand (JavaScript)
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Stagehand (JavaScript) are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Puppeteer npm Headless Chrome/Chromium automation for scraping, testing and screenshot generation. |
74 | 84 (1.7%) | 6.7M | 95.7K | Apache-2.0 |
| Playwright Core npm Headless browser automation library for cross-browser testing and web scraping. |
83 | 75 (1.6%) | 78M | 98.1K | Apache-2.0 |
| Puppeteer Core npm Headless Chrome/Chromium control library for automation and testing. |
74 | 26 (0.5%) | 13.8M | 95.7K | Apache-2.0 |
| agent-browser npm CLI for browser automation designed to work with AI agents. |
62 | 10 (0.2%) | 984K | 44.3K | Apache-2.0 |
More in Scraping, browsers and parsing: Beautiful Soup lxml Playwright (Python) Cheerio fast-xml-parser jsonc-parser Mozilla Readability linkedom