Mocking and test data
Fake APIs, functions and data in tests. We rate 10; Mock Service Worker leads with 8.5 out of 10.
The numbers
Read from GitHub, npm and the OSV advisory database on 21 November 2026. Downloads also count build servers and installs by other tools, and they grow for almost every package: for the median project we rate, they are ×4.1 of a year before.
| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
|---|---|---|---|---|---|---|
| Mock Service Worker | 135M | ×4.7 | 18k | 123 | Nov 2026 | 0 |
| Faker | 100M | ×2.6 | 16k | 482 | Aug 2026 | 1 |
| Nock | 34M | +74% | 13k | 32 | Nov 2026 | 0 |
| Mockttp | 2.6M | ×2.4 | 889 | 135 | Oct 2026 | 0 |
| Sinon.JS | 55M | +58% | 9.8k | 117 | Jul 2026 | 0 |
| Fishery | 6.2M | ×3.0 | 1k | 5 | Dec 2025 | 0 |
| fetch-mock | 6.2M | +44% | 1.3k | 82 | Oct 2025 | 0 |
| JSON Server | 1.7M | +23% | 76k | 60 | Mar 2026 | 0 |
| testdouble.js | 579k | −18% | 1.4k | 51 | Oct 2026 | 0 |
| Mirage JS | 1.6M | +41% | 5.5k | 0 | Oct 2023 | 0 |