Suggest a tool

Faker vs @faker-js/faker: open-source test data and mocking tools compared

Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.

Summary

Faker: Python library and CLI that generates localized fake data such as names, addresses and text.

@faker-js/faker: JavaScript library that generates realistic fake data such as names, addresses and dates in many locales.

Both are listed under Test data and mocking. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation (2 of 10 fact cells here); that does not mean the feature is absent.

Side by side

Faker and @faker-js/faker: metrics and documented facts, in the fixed row order used for test data and mocking comparisons.
FactFaker@faker-js/faker
Stars19,405115,4931
Forks2,11811,1281
Contributors68415641
Last release2026-09-1412026-08-141
Last commit2026-09-1512026-09-221
Commits in 90 days9511411
LicenseMIT1MIT1
Primary languagePython1TypeScript1
Statusactive1active1
Languages for writing testsPython (3.8 and above) source: READMEJavaScript (browser and Node.js) source: Docs: Getting Started
Protocolsnot documentednot found in the project's documentation as of not documentednot found in the project's documentation as of
Definition formatCode (Python generator API via faker.Faker()); command-line faker script source: READMECode (JavaScript API methods; mustache string templates via faker.helpers.fake) source: README
Framework integrationspytest (faker fixture plugin); Factory Boy (factory.Faker) source: READMEVitest, Jest, Cypress, Playwright (examples in docs) source: Docs: Frameworks
Install methodpip (pip install Faker) source: READMEnpm (npm install --save-dev @faker-js/faker) source: README

1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.

When each fits

Written from each project's documented scope, not from preference. Neither tool is ranked.

Faker

Fits projects that bootstrap databases, create XML documents, stress test persistence or anonymize production data; its README describes a Python package that generates fake data. source: README

@faker-js/faker

Fits projects that need fake data in JavaScript for testing and development; its README describes generating fake but realistic data in large amounts. source: README

More on these tools

Sources

  1. GitHub REST API: repository, read
  2. GitHub REST API: repository, read
  3. GitHub REST API: contributors, read
  4. GitHub REST API: contributors, read
  5. GitHub REST API: latest release, read
  6. GitHub REST API: latest release, read
  7. GitHub REST API: commits, read
  8. GitHub REST API: commits, read
  9. README, read
  10. Docs: Getting Started, read
  11. README, read
  12. Docs: Frameworks, read

Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.