Used in agent projects
83
0.7% of 12,697 public repos built with AI coding agents
Rank in testing
#14 of 40
by use in those projects
Downloads
17.9M
npm, last 7 days, @faker-js/faker
GitHub stars
15.5K
last push Oct 9, 2026
How Faker.js is used
Faker.js is a dependency in 83 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.7%), #14 of 40 in testing. The most used alternative there is Vitest. Projects that use it most often also use Playwright (JavaScript) (50.6%), Zod (55.4%), Prettier (51.8%).
Often used with Faker.js
| Playwright (JavaScript) | 50.6% of Faker.js projects · 5.8× more than average |
|---|---|
| Zod | 55.4% of Faker.js projects · 3.3× more than average |
| Prettier | 51.8% of Faker.js projects · 3.0× more than average |
| date-fns | 38.6% of Faker.js projects · 4.5× more than average |
| Testing Library | 37.3% of Faker.js projects · 5.2× more than average |
| Sonner | 34.9% of Faker.js projects · 4.3× more than average |
| Tailwind Merge | 47.0% of Faker.js projects · 2.8× more than average |
| dotenv | 44.6% of Faker.js projects · 2.8× more than average |
By coding agent
| GitHub Copilot | 1.2% of projects set up for it |
|---|---|
| Claude Code | 0.9% of projects set up for it |
| Cursor | 1.1% of projects set up for it |
| OpenCode | 2.2% of projects set up for it |
| OpenAI Codex | 1.6% of projects set up for it |
Share of public repos configured for each agent that list Faker.js as a dependency.
Install
| Package | npm install @faker-js/faker |
|---|---|
| Main stacks | TypeScript / JavaScript (45), Next.js (35), React Native / Expo (2), Rust (1) |
| Example projects | commercetools/merchant-center-application-kit, SanderElias/Samples, fountain-ink/app, CDCgov/cdc-open-viz, databayt/hogwarts |
Alternatives to Faker.js
| 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 |
| Playwright (JavaScript) npm Cross-browser automation library for end-to-end testing. |
1,117 (8.8%) | 74.2M | 97.4K | Apache-2.0 |
| 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 |