# Faker: 8.1 out of 10

A strong pick. 2nd of 10 in [Mocking and test data](https://elestia.ai/opensource/mocking/index.md).

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

- **Overall: 8.1** (likely 7.1 to 8.9)
  - Claude Opus 5.5 (8.0): 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): 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 many: 6.5** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (6.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): 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 lot: 8.6** (likely 7.5 to 9.3)
  - Claude Opus 5.5 (8.5): 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): 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 time: 8.0** (likely 6.9 to 9.0)
  - Claude Opus 5.5 (8.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): 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 widely: 6.9** (likely 5.9 to 8.1)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (5.8): 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.
- **Vouched for: 7.0** (likely 5.6 to 8.0)
  - Claude Opus 5.5 (6.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): 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.
- **Safe: 7.7** (likely 6.6 to 8.7)
  - Claude Opus 5.5 (7.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): 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

- Downloads, 4 weeks: 100M
- In a year: ×2.6
- GitHub stars: 16k
- Commits, 12 months: 482
- Last npm release: Aug 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/faker-js/faker
- npm: https://www.npmjs.com/package/@faker-js/faker

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
