How Nock is used
Nock is a dependency in 7 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 26 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Mock Service Worker (85 projects). Projects that use it most often also use Chai (34.6%), Jest (30.8%), dotenv (42.3%).
Nock popularity over time
Gid Score 56: downloads 75, use in agent projects 31, GitHub stars 54, downloads trend 52 (each 0-100). How it is calculated.
Often used with Nock
| Chai | 34.6% of Nock projects · 107.4× more than average |
|---|---|
| Jest | 30.8% of Nock projects · 4.8× more than average |
| dotenv | 42.3% of Nock projects · 2.7× more than average |
| Mocha | 26.9% of Nock projects · 64.3× more than average |
| rimraf | 26.9% of Nock projects · 10.6× more than average |
| ts-node | 26.9% of Nock projects · 5.6× more than average |
| TypeScript | 73.1% of Nock projects |
| nodemon | 23.1% of Nock projects · 15.2× more than average |
From all 26 projects in our scan that use Nock, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Nock as a dependency.
How Nock is funded
Open Collective: nock
| Received, last 12 months | $143 Oct 2025 – Sep 2026 |
|---|---|
| Estimated annual budget | $234 Open Collective's estimate |
| Balance | $2,998 |
| Raised since the start | $7,620 · $4,622 paid out |
| Typical month median, last 12 months | $12 · $13 over 24 months |
| Last 12 months vs the 12 before | -16% |
| Contributors, last 12 months | 4 |
Top company backers all time, 22 companies in total
| Third Iron | $372 since Feb 2019 |
|---|---|
| TheNextWe | $300 since Apr 2023 |
| Metabolize | $82 since Nov 2018 |
| DateiWiki | $69 since Dec 2020 |
| Fortune games | $55 since Sep 2019 |
Oct 2021Sep 2026
Money by month, last five years. First money received in Apr 2018. The typical month is the median: one big one-off donation does not move it.
USD after payment processor fees, as Open Collective reports it; fiscal host Open Source Collective. Source
GitHub Sponsors
| @nock | 1 current sponsor |
|---|
GitHub shows how many people and companies sponsor an account, not how much they pay.
Ways to fund Nock
GitHub Sponsors Open Collective
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | npm install nock |
|---|---|
| Main stacks | TypeScript / JavaScript (22), Next.js (2), PHP (1), React Native / Expo (1) |
| Example projects | Automattic/wp-calypso, lagowski/ClaudeAutoPM, Calindra/cartesify, allbridge-io/allbridge-core-js-sdk, zengenuity/mastra-pr-reviewer |
Alternatives to Nock
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Nock are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Mock Service Worker npm API mocking library for seamless request interception in tests and development. |
68 | 85 (1.8%) | 12.9M | 18.3K | MIT |
More in Testing: Vitest Playwright (JavaScript) Testing Library jsdom Jest pytest Happy DOM axe-core Playwright