Faker
A strong pick. 2nd of 10 mocking and test data.
Faker is the standard JavaScript library for generating realistic fake data (names, addresses, dates, finance, and so on) in many locales, with seeding for repeatable output. It is the clear pick for test and seed data today. Use 10.5.0 or later because of a 2026 code-execution advisory in helpers.fake.
Best for: Any JS/TS project that needs realistic, locale-aware, seedable fake data for tests, fixtures, database seeds or demos.
Scores
Overall8.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It is the default and best tool for fake data in JS. It is actively maintained by a team, and it has strong reach. It does a narrower job than MSW or Sinon, so it complements them rather than competing with them. The ESM-only switch, bundle size, the recent advisory and slower relative growth keep it below 9.
- npm downloadsLast4Weeks: 100M per 4 weeks
- github commitsLastYear: 482 commits
- fakerjs.dev/guide/upgrading: v10 breaking changes
GPT-6.2 Sol: 8.2, likely 7.1 to 9.2
Faker is a strong pick when a new project needs realistic, localized fixture values, with a mature typed API and active maintenance. Fishery handles reusable object factories, and Mock Service Worker handles network interception, so the right choice depends on what the tests need to fake. Below-baseline install growth and v10's compatibility friction temper the recommendation.
- github.com/faker-js/faker/releases/tag/v10.6.0: Stable release shows active work across locale data, generators, and documentation.
- fakerjs.dev/guide/upgrading: Documents Node.js requirements and workarounds for CommonJS Jest.
- generate-data.com/blog/javascript-test-data-generator: Shows how Faker's value generators complement Fishery's object factories.
- mswjs.io/docs: Mock Service Worker handles network interception.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Install growth trailed the catalog baseline.
Needed by many6.5
How many developers need a tool for this job?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Fake data is needed in many projects: for tests, database seeding, Storybook, demos and mock APIs. It covers one part of the category's job, not request mocking or spies. It runs in the browser, Node, Deno and Bun.
- github description: Fake data in the browser and Node.js
- fakerjs.dev/guide/frameworks: Guides for use across many frameworks
GPT-6.2 Sol: 6.4, likely 5.2 to 7.4
Realistic fixtures are useful in web apps, APIs, and database-backed services. Faker works in Node.js and browsers and fits several test runners, but teams with small, fixed fixtures may rarely need a dedicated generator. The State of JavaScript survey shows demand for mocking tools broadly and gives little basis for estimating how many teams need generated data specifically.
- 2025.stateofjs.com/en-US/libraries/testing: Developers report mocking as a major testing pain point.
- fakerjs.dev/guide/usage: Node.js, browser, and Deno usage with fixture examples.
- generate-data.com/blog/javascript-test-data-generator: Shows how Faker values fit into typed Fishery factories.
Helps a lot8.6
How well does it do the job for those who need it?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
It is the most complete fake-data generator in JS. It has rich modules, many locales, seeding, custom instances and full types, and it keeps adding data such as postal addresses and real routing numbers in 10.5. Its limits are bundle size, ESM-only friction with Jest, and seeded output that changes between majors. Factory libraries like Fishery complement it rather than replace it.
- yrkan.com/tools-updates/faker-js-v10-5-whats-new: 10.5 features and Jest compatibility docs
- fakerjs.dev/guide/upgrading: v10 is ESM-only, needs Node 20.19+, deprecated methods removed
- github.com/faker-js/faker/issues/2748: Bundle size and tree-shaking complaints
- qaskills.sh/blog/faker-deterministic-seed-parallel-tests: Seeding works; pin the version for determinism
- npm hasTypes: Types included
GPT-6.2 Sol: 8.7, likely 7.5 to 9.6
Faker has a broad typed API, copyable examples, and explicit controls for randomness and relative dates. Faker and Fishery work well together when a project needs typed factories with overrides and sequences. The full browser bundle is large, and benchmarks of earlier v10 builds leave current bulk-generation performance uncertain. Types and examples give coding agents a way to check generated API calls, though agent accuracy remains unmeasured.
- npm latestVersion, hasTypes: Stable version 10.6.0 ships TypeScript types.
- fakerjs.dev/guide/usage: Documents seeds, reference dates, locale imports, and bundle size.
- generate-data.com/blog/javascript-test-data-generator: Demonstrates typed factories, field overrides, and repeatable fixtures.
- github.com/stacksjs/ts-faker/blob/main/BENCHMARKS.md: A competing project found faster generation in selected benchmarks against v10.0.0.
Holds up over time8.0
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
A community team runs it under an organisation, with 482 commits and 5 releases in the last year and a push the day before the read date. Issue handling is good (82 open against 756 closed) and 586 people have contributed. Funding comes from small donations, and maintainers have written that this model is fragile. Majors bring planned breaking changes with upgrade guides.
- github commitsLastYear: 482 commits, 5 releases
- github openIssues/closedIssues: 82 open, 756 closed
- fakerjs.dev/update.html: Multi-maintainer community team since 2022
- dev.to/shinigami92/oss-funding-is-broken-a-maintainers-perspective-from-fakerjs-1mgn: Maintainer says donation funding is fragile
GPT-6.2 Sol: 8.0, likely 6.8 to 9.0
Faker logged 482 commits and five releases in the past year, lists several maintainers, and has v11 work underway. An outside tracker reports fast median issue responses and pull request merges, though the latest stable release was in August. The v10 migration caused real friction for Jest users, and sponsorship links give limited visibility into long-term funding.
- github commitsLastYear, releasesLastYear, pushedAt, latestRelease: 482 commits and five releases, with pushes continuing into November.
- fakerjs.dev/about/team: Lists multiple code maintainers and individual sponsorship links.
- github.com/faker-js/faker/blob/next/README.md: Identifies v11 as the next development line.
- tracker.git.tools/faker-js/faker: Reports a 12-hour median issue response and 2.3-day median PR merge time.
- github.com/faker-js/faker/issues/3606: Users reported Jest compatibility failures after the v10 upgrade.
- github.com/faker-js/faker/blob/next/.github/FUNDING.yml: Lists Open Collective as a funding channel.
Used widely6.9
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has about 100M downloads per 4 weeks, up from 39M a year ago, plus 15.5k stars and 17.6k dependent repos. The growth ratio of about 2.6 is below the 4.1 median, so it is losing ground relative to the rest of npm. Part of the volume comes from tools that install it indirectly. It is still the default for fake data, with no real rival in JS.
- npm downloadsLast4Weeks: 100.3M, against 38.6M a year ago (ratio 2.6)
- medianDownloadsRatio: Median ratio is 4.1
- dependents: 17,617 repos and 2,113 packages
GPT-6.2 Sol: 5.8, likely 4.7 to 7.1
The dependency index found 17,617 repositories and 2,113 npm packages, which puts Faker ahead of Fishery and Mock Service Worker in indexed repository count and well behind Nock and Sinon.JS. Four-week installs grew from 38.6 million to 100.3 million, but the 2.60× ratio fell below the catalog's 4.1× baseline while Mock Service Worker grew 4.68×. Automated and transitive installs and partial repository coverage leave the number of teams choosing Faker directly uncertain.
- evidence.dependents: 17,617 indexed repositories and 2,113 npm packages.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 2.60× against a catalog median of 4.1×.
- peers: Mock Service Worker grew 4.68× and had 11,851 indexed repositories. Fishery had 230.
- github stars, bluesky posts: 15,556 stars and six Bluesky posts, versus 53 posts for Mock Service Worker.
- github.com/stoplightio/prism/blob/main/packages/http/package.json: Prism's HTTP package installs Faker as a dependency.
Vouched for7.0
Who stands behind it being good?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
Framework guides, many independent tutorials and QA write-ups treat it as the standard, and many tools build on it. It does not appear in the major developer surveys, and there are no notable independent benchmarks. Bluesky attention is low (6 posts), and the top post is about the 2025 licence dispute.
- helpmetest.com/blog/fakerjs-advanced-guide: Independent advanced usage guide
- qaskills.sh/blog/faker-test-data-generation-guide-2026: 2026 QA guide that uses Faker as the default
- bluesky posts: 6 posts; top post about the licence dispute
GPT-6.2 Sol: 7.5, likely 6.2 to 8.5
Stoplight Prism depends on Faker for dynamic API responses, Prisma uses it in a database seeding walkthrough, and Atomic Object shows it filling Cypress forms. These are independent examples across several kinds of testing. The evidence is strongest for fixture workflows, with little survey evidence on Faker satisfaction or retention.
- github.com/stoplightio/prism/blob/main/packages/http/package.json: Prism's HTTP package declares Faker v10 as a dependency.
- github.com/stoplightio/prism/blob/main/docs/guides/11-dynamic-response-with-faker.md: Prism documents Faker-backed dynamic responses.
- blog.prisma.io/blog/improving-query-performance-using-indexes-2-MyoiJNMFTsfq: Prisma uses Faker to generate seed records in a worked example.
- spin.atomicobject.com/cypress-and-faker-js: April 2026 practitioner write-up shows Faker in Cypress form tests.
- 2025.stateofjs.com/en-US/libraries/testing: Provides testing survey context with no Faker-specific retention result.
Safe7.7
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has zero runtime dependencies and an MIT licence on npm. There is one HIGH advisory (GHSA-qxc2-j82w-r537): code execution when untrusted input reaches helpers.fake. It was fixed in 10.5.0, and it matters little for test-only use. There is no Scorecard data. The 2025 dispute over the copyright notice was handled by restoring the notice in v9.5.1, but GitHub does not detect the licence.
- advisories: 1 HIGH advisory, 2026
- osv.dev/vulnerability/CVE-2026-73231: CVSS 7.8; fixed in 10.5.0
- hn.jakechampion.name/reader/https://marak.com/blog/2025-3-3-corporations-update-fakerjs-millions-downloaded-liability-looms: Licence notice dispute; notice restored in 9.5.1
- npm dependencies: 0 dependencies
- scorecard: No Scorecard data
GPT-6.2 Sol: 8.3, likely 7.1 to 9.3
Faker has zero runtime dependencies, a permissive MIT license, and a GitHub Actions workflow that publishes with npm provenance. Version 10.5.0 fixed the high-severity code execution flaw in the template helper before public disclosure, and 10.6.0 includes the fix. The OpenSSF Scorecard result and the number of people who can trigger a release remain unverified.
- npm dependencies, license: Zero runtime dependencies and an MIT license.
- evidence.scorecard: Collector returned no OpenSSF Scorecard result.
- github.com/faker-js/faker/blob/v10.6.0/LICENSE: Tagged release includes MIT terms and upstream copyright notices.
- github.com/advisories/GHSA-qxc2-j82w-r537: High-severity advisory names 10.5.0 as the first fixed release.
- github.com/faker-js/faker/releases/tag/v10.5.0: June release predates the July public advisory and records trusted publishing.
- github.com/faker-js/faker/blob/v10.6.0/.github/workflows/publish-release.yml: Tagged workflow requests npm provenance when publishing.
Good
- Very wide data coverage, from person and address to finance, commerce and dates, with many locales and active locale contributions.
- Seedable instances give deterministic output for repeatable tests.
- Written in TypeScript, has zero runtime dependencies, and is kept up by an active community team with steady releases.
- It is the de facto default, so docs, examples and AI-agent code for it are plentiful and mostly correct.
Bad
- Bundles can be large unless you import a single-locale instance. Tree-shaking only got better in v9.
- v10 is ESM-only and needs Node 20.19 or newer. Some Jest setups need extra configuration.
- Seeded output changes between major versions, so snapshot tests need the version pinned.
- A 2026 HIGH advisory let untrusted templates passed to helpers.fake run code (fixed in 10.5.0).
The numbers
- npm downloads, 4 weeks
- 100M ×2.6 in a year
- GitHub stars
- 16k
- Commits, 12 months
- 482
- npm version
- 10.6.0 Aug 2026
- Versions, 12 months
- 5
- Advisories, 24 months
- 1 of 1 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Read on 21 November 2026 from GitHub (faker-js/faker), npm (@faker-js/faker), OSV and the OpenSSF Scorecard.
Mocking and test data
- 8.5Mock Service Worker
- 8.1Faker
- 7.1Nock
- 6.9Mockttp
- 6.9Sinon.JS
- 6.5Fishery
- 5.7fetch-mock
- 5.6JSON Server
- 5.4testdouble.js
- 4.1Mirage JS