Playwright (JavaScript)
Cross-browser automation library for end-to-end testing.
Testing npm Apache-2.0
Used in agent projects
1,117
8.8% of 12,697 public repos built with AI coding agents
Rank in testing
#2 of 40
by use in those projects
Downloads
74.2M
npm, last 7 days, @playwright/test
GitHub stars
97.4K
last push Oct 10, 2026
How Playwright (JavaScript) is used
Playwright (JavaScript) is a dependency in 1,117 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (8.8%), #2 of 40 in testing. The most used alternative there is Vitest. Projects that use it most often also use Vitest (48.7%), Testing Library (29.9%), TypeScript (77.4%). It is more common in projects set up for OpenCode (25.0%) than for Devin Desktop (13.5%).
Often used with Playwright (JavaScript)
| Vitest | 48.7% of Playwright (JavaScript) projects · 4.0× more than average |
|---|---|
| Testing Library | 29.9% of Playwright (JavaScript) projects · 4.1× more than average |
| TypeScript | 77.4% of Playwright (JavaScript) projects |
| jsdom | 26.6% of Playwright (JavaScript) projects · 5.0× more than average |
| ESLint | 59.6% of Playwright (JavaScript) projects · 1.6× more than average |
| Vite | 44.4% of Playwright (JavaScript) projects · 1.9× more than average |
| Prettier | 38.1% of Playwright (JavaScript) projects · 2.2× more than average |
| Zod | 36.8% of Playwright (JavaScript) projects · 2.2× more than average |
By coding agent
| Claude Code | 19.1% of projects set up for it |
|---|---|
| GitHub Copilot | 17.7% of projects set up for it |
| Cursor | 15.9% of projects set up for it |
| OpenAI Codex | 24.1% of projects set up for it |
| Gemini CLI | 21.9% of projects set up for it |
| OpenCode | 25.0% of projects set up for it |
| Devin Desktop | 13.5% of projects set up for it |
| Kiro | 19.9% of projects set up for it |
Share of public repos configured for each agent that list Playwright (JavaScript) as a dependency.
Install
| Package | npm install @playwright/test |
|---|---|
| Packages counted | @playwright/test, playwright, @playwright/mcp, @playwright/cli, @playwright/experimental-ct-react, @playwright/browser-chromium, @playwright/browser-webkit, @playwright/browser-firefox |
| Main stacks | TypeScript / JavaScript (688), Next.js (309), Python (43), PHP (39) |
| Example projects | WordPress/gutenberg, NG-ZORRO/ng-zorro-antd, founded-labs/react-native-reusables, enso-org/enso, primer/react |
Alternatives to Playwright (JavaScript)
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Vitest npm Next-generation testing framework powered by Vite with native ESM. |
1,549 (12.2%) | 123M | 17.2K | MIT |
| Testing Library npm Testing utilities for React encouraging testing user behavior. |
915 (7.2%) | 68.7M | 19.7K | MIT |
| Jest npm Delightful JavaScript testing framework with minimal configuration. |
702 (5.5%) | 46.3M | 45.6K | MIT |
| jsdom npm JavaScript implementation of web standards for testing DOM interactions. |
681 (5.4%) | 112M | 21.7K | MIT |
| pytest pypi Simple, powerful Python testing framework with fixtures and plugins. |
330 (2.6%) | 196M | 14.6K | — |
| Chai npm BDD/TDD assertion library for Node.js and browsers with expressive syntax. |
305 (2.4%) | 14M | 8,265 | MIT |
| Mocha npm Feature-rich JavaScript test framework for Node.js and browsers. |
281 (2.2%) | 12.6M | 22.9K | MIT |
| ts-mocha npm Mocha wrapper for running TypeScript tests directly with ts-node without compilation. |
191 (1.5%) | 573K | 196 | MIT |