Faker alternatives: 8 open-source test data and mocking tools
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
About Faker
Faker is a listed test data and mocking tool: Python library and CLI that generates localized fake data such as names, addresses and text.
Order: Listed tools in the same category, with tools in the same primary language (GitHub API) first, then by GitHub stars. Each line gives one fact from the tool's own documentation where it differs from what Faker's documentation states, with its source.
8 alternatives to Faker
Responses: Languages for writing tests: Python 3.8 or newer. source: README
Testcontainers Python: Languages for writing tests: Python. source: Docs: testcontainers-python
JSON Server: Definition format: JSON or JSON5 data file (db.json or db.json5). source: README
Mock Service Worker: Languages for writing tests: JavaScript. source: README
@faker-js/faker: Languages for writing tests: JavaScript (browser and Node.js). source: Docs: Getting Started
Mockito: Languages for writing tests: Java. source: README
Nock: Languages for writing tests: Node.js. source: README
Sinon.JS: Languages for writing tests: JavaScript. source: Docs: SinonJS home
Repository metrics
| JSON Server | 75,7151 | 2026-03-231v1.0.0-beta.15 | 2026-03-231 | MIT | JavaScript | slow |
|---|---|---|---|---|---|---|
| Faker | 19,4051 | 2026-09-141v40.39.0 | 2026-09-151 | MIT | Python | active |
| Mock Service Worker | 18,2161 | 2026-07-081v2.15.0 | 2026-09-081 | MIT | TypeScript | active |
| @faker-js/faker | 15,4931 | 2026-08-141v10.6.0 | 2026-09-221 | MIT | TypeScript | active |
| Mockito | 15,4571 | 2026-03-111v5.23.0 | 2026-09-091 | MIT | Java | active |
| Nock | 13,1261 | 2026-07-301v14.0.17 | 2026-07-301 | MIT | JavaScript | active |
| Sinon.JS | 9,7591 | 2018-01-261v4.2.2 | 2026-07-201 | BSD-3-Clause | JavaScript | active |
| Responses | 4,3421 | 2026-08-2610.26.3 | 2026-09-161 | Apache-2.0 | Python | active |
| Testcontainers Python | 2,3011 | 2026-07-241testcontainers-v4.15.0 | 2026-09-141 | Apache-2.0 | Python | active |
1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.