Elestia Open Source Ratings
8.1

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.5Mock Service Worker
  2. 8.1Faker
  3. 7.1Nock
  4. 6.9Mockttp
  5. 6.9Sinon.JS
  6. 6.5Fishery
  7. 5.7fetch-mock
  8. 5.6JSON Server
  9. 5.4testdouble.js
  10. 4.1Mirage JS
Compare all 10 on six scores