node-fetch
Do not start with it. 9th of 10 HTTP clients.
node-fetch is a Fetch API polyfill for Node.js. It has had no release since July 2023, and Node.js has shipped its own fetch since version 18, so it is a poor choice for a new project. Use Node's built-in fetch, or undici when you need more control. Keep node-fetch only where it already runs and is hard to remove.
Best for: Only legacy codebases on Node.js 16 or older, or code that depends on node-fetch's exact stream behaviour and cannot migrate yet.
Scores
Overall2.8
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 2.0, likely 1.0 to 3.0
Node.js now has a built-in fetch, so node-fetch's job is done, and the project has stopped shipping. It had no release in over three years, and an unfixed 2026 regression broke the widely used v2 line. Native fetch, undici, Ky or Axios are all better picks for new work. Its huge download count comes from legacy transitive installs and does not offset this.
- github releasesLastYear: 0 releases; last release July 2023
- jdstaerk.substack.com/p/nodejs-security-fix-silently-broke: Calls it effectively unmaintained and recommends native fetch
- undici.nodejs.org/best-practices/undici-vs-builtin-fetch: Built-in fetch and undici cover the same use case
- peers undici: Actively maintained, with 814 commits last year
GPT-6.2 Sol: 3.6, likely 2.5 to 4.7
Keep node-fetch where existing code relies on its Node streams or HTTP agents. Built-in fetch covers routine requests on supported Node.js releases, and actively maintained Undici offers more transport control. The long release gap weighs heavily for new projects, while the value of node-fetch’s compatibility features depends on the codebase.
- nodejs.org/api/globals.html#fetch: Node ships stable, browser-compatible fetch backed by Undici.
- github.com/nodejs/undici/blob/main/docs/docs/best-practices/undici-vs-builtin-fetch.md: Describes the connection controls available through Undici.
- github.com/node-fetch/node-fetch/releases/tag/v3.3.2: The latest stable release dates to July 2023.
- github.com/googleapis/gaxios/blob/main/src/gaxios.ts: A maintained downstream client still uses node-fetch and Node HTTP agents.
- github commitsLastYear, releasesLastYear; peers Undici commitsLastYear, latestPublishedAt: Undici remains active while node-fetch recorded no commits or releases in the past year.
Needed by many3.8
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 6.0
Sending HTTP requests is a near-universal need. But node-fetch serves only Node.js, and only as a stand-in for a fetch that Node now has built in. The developers who still need a polyfill are a shrinking niche on old Node versions.
- github description: Brings the Fetch API to Node.js only
- undici.nodejs.org/best-practices/undici-vs-builtin-fetch: Node has shipped a built-in fetch since v18
GPT-6.2 Sol: 3.5, likely 2.4 to 4.7
HTTP requests are a common need, and Node.js is widely used. Supported Node.js releases already ship fetch, leaving node-fetch mainly useful for older runtimes and code tied to its Node streams or agents. Surveys measure runtime use, so the size of that niche is uncertain.
- 2025.stateofjs.com/en-US/other-tools: Node.js and browsers led the runtime survey.
- nodejs.org/api/globals.html#fetch: Global fetch is enabled by default from Node 18 and stable from Node 21.
- npmjs.com/package/node-fetch?activeTab=dependencies: Documents Node streams, custom agents, and older Node support.
Helps a lot4.6
How well does it do the job for those who need it?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
It implements the basic Fetch API with streams and types. It falls short of the spec compared with native fetch and undici, and a cross-origin redirect header-leak report is still open. The June 2026 Node release broke v2 on HTTPS, keep-alive and compressed responses, and the project did not fix it. Native fetch does the same job better for nearly everyone.
- jdstaerk.substack.com/p/nodejs-security-fix-silently-broke: node-fetch@2 fails with ERR_STREAM_PREMATURE_CLOSE on Node 22.23 and 24.17
- github.com/node-fetch/node-fetch/issues: Open issues on auth headers kept across redirects and a DEP0169 warning on Node 24
- pkgpulse.com/guides/got-vs-undici-vs-node-fetch-http-clients-nodejs-2026: Independent guide calls node-fetch legacy and advises against it on Node 18+
GPT-6.2 Sol: 6.2, likely 5.0 to 7.3
Version 3.3.2 handles routine requests well, with documented options, bundled types, and useful network errors. Its familiar API makes simple calls easy to write, while differences in stream types and module loading can trip up shared code. An independent local benchmark put it behind built-in fetch and Undici, though the gap depends on the workload.
- npmjs.com/package/node-fetch?activeTab=dependencies: Documents v3 request options, error handling, and bundled types.
- github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md: Documents the switch to ESM and changes to stream handling.
- github.com/node-fetch/node-fetch/issues/1837: User reports incompatible stream types between node-fetch and native fetch.
- github.com/HasData/nodejs-fetch-benchmark: A Node 22 loopback test found lower throughput than built-in fetch and Undici.
Holds up over time1.9
Will it still be a good choice in two years?
Claude Opus 5.5: 1.5, likely 0.5 to 3.0
There were no commits and no releases in the last year, and the last release was in July 2023. A breaking Node.js change in 2026 went unpatched. Users have opened issues calling it abandoned and asking for a note that points to built-in fetch. The ecosystem is moving clearly towards native fetch and undici.
- github commitsLastYear / releasesLastYear: 0 commits and 0 releases
- npm latestPublishedAt: 2023-07-25
- scorecard Maintained: Score 0
- github.com/node-fetch/node-fetch/issues: Issue #1876 says the project is abandoned; the v4 roadmap from 2022 is still open
GPT-6.2 Sol: 2.3, likely 1.2 to 3.6
The collector recorded no commits or releases in the past year, and the v4 roadmap is still open with no recent progress shown. About 190 issues and 60 pull requests are open, while Undici continues shipping and downstream projects are moving to built-in fetch. The repository is still open and receives small donations, so maintenance could resume.
- github commitsLastYear, releasesLastYear, openIssues, openPullRequests, archived: Zero commits and releases in the past year, with 191 open issues and 60 open pull requests.
- github.com/node-fetch/node-fetch/releases/tag/v3.3.2: Latest stable v3 release was published in July 2023.
- github.com/node-fetch/node-fetch/issues/1452: The v4 roadmap opened in 2022 and remains open.
- opencollective.com/node-fetch: The collective reports an estimated annual budget of about $380.
- github.com/shadcn-ui/ui/pull/10905: The shadcn CLI migrated to built-in fetch in June 2026.
- peers Undici commitsLastYear, latestPublishedAt: Undici recorded 814 commits and a November 2026 release.
Used widely6.2
How many use it, and is that growing?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
Its install base is very large: 1.1B downloads in 4 weeks and 1.8M dependent repositories. Most of those downloads are transitive, through libraries such as cross-fetch, gaxios and firebase-tools. Its ratio to a year ago (3.4x) is below the median of 4.1, so it is losing ground, and few new projects choose it directly.
- npm downloadsLast4Weeks: 1.13B, against 326M a year before (ratio 3.4, below the 4.1 median)
- dependents repos: 1.82M repositories, the highest of the peers, mostly from legacy code
- bluesky posts: 1 post, a user complaint; Axios has 83 and undici 59
GPT-6.2 Sol: 7.4, likely 5.8 to 8.9
ecosyste.ms found 1.82 million dependent repositories and about 35,000 dependent packages, giving node-fetch the largest indexed repository footprint among these peers. Its four-week downloads rose from 326 million to 1.13 billion, but the 3.45× increase trails the catalog median of 4.1× and Undici’s 11.5×. SDK installs and automated builds inflate downloads, and the dependent counts cover older projects and both major versions, so fresh direct adoption is hard to estimate.
- dependents repos, packages: 1,817,321 indexed repositories and 34,871 packages depend on it.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Downloads grew 3.45× against a 4.1× catalog baseline.
- peers dependentRepos, downloadsLast4Weeks, downloadsSame4WeeksYearAgo, blueskyPosts: Largest indexed repository count among peers, with faster download growth for Undici and more Bluesky attention for Undici and Axios.
- github stars, bluesky posts: 8,845 stars and one repository-linking Bluesky post in the past two years.
- github.com/googleapis/gaxios/blob/main/package.json: Google’s gaxios installs v3 as a runtime dependency.
- github.com/box/box-node-sdk/blob/main/package.json: Box’s Node SDK installs v2 as a runtime dependency.
Vouched for4.4
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
Large libraries such as Google's gaxios still depend on node-fetch@2, but that reflects legacy, not a current endorsement. Current independent sources recommend migrating away from it. Attention from users in 2024–2026 is mostly complaints about breakage.
- pkgpulse.com/guides/got-vs-undici-vs-node-fetch-http-clients-nodejs-2026: Recommends native fetch over node-fetch
- adventures.nodeland.dev/archive/cve-2026-48931-shouldnt-have-been-a-cve: A Node core maintainer discusses the regression that broke node-fetch@2
- hackerNews top: 2026 stories are about node-fetch breaking
GPT-6.2 Sol: 5.7, likely 4.3 to 7.0
Google’s gaxios uses v3 as its default Node transport, and Box’s SDK still depends on v2. Production users reported v2 failures after a June 2026 Node update, and an independent benchmark showed a throughput disadvantage for v3. Current SDK use supports the score, while evidence about v3 satisfaction across projects is limited.
- github.com/googleapis/gaxios/blob/main/src/gaxios.ts: The default adapter loads node-fetch on Node.js.
- github.com/googleapis/gaxios/blob/main/package.json: The declared runtime dependency is node-fetch v3.
- github.com/box/box-node-sdk/blob/main/package.json: Box’s SDK still declares node-fetch v2.
- github.com/nodejs/node/issues/63989?timeline_page=1: Users reported production breakage involving v2, and Node merged a fix.
- github.com/HasData/nodejs-fetch-benchmark: Independent throughput benchmark covers v3 on one machine and workload.
Safe5.1
How safe is it to depend on?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
The past advisories were fixed, there are only three dependencies, and the licence is MIT. But with no maintenance, the open report on cross-origin redirect header handling and future Node changes may never be fixed. The OpenSSF Scorecard is 4.9, with Maintained, Token-Permissions, Pinned-Dependencies and SAST all at 0.
- advisories: 3 in total, none in the last 24 months; the high-severity header leak was fixed in 2022
- scorecard score: 4.9, with Maintained at 0
- npm dependencies: 3 dependencies
- github.com/node-fetch/node-fetch/issues: Issue #1880: auth and proxy headers are not stripped on cross-origin redirects
GPT-6.2 Sol: 5.6, likely 4.1 to 6.9
The package uses the permissive MIT license and has three direct dependencies. All three cataloged advisories were fixed by 3.3.2, with fixes available by public disclosure for the high- and moderate-severity 2022 cases. Scorecard gives strong marks for code review and flags weak token permissions and unpinned workflow dependencies. A 2026 report about redirect handling remains open, and the number of people with npm publish access could not be verified.
- npm license, dependencies: MIT license and three direct dependencies.
- advisories total, last24Months: Three cataloged advisories, with zero in the past 24 months.
- github.com/advisories/GHSA-w7rc-rwvf-8q5r: The response-size issue was fixed before stable v3.
- github.com/advisories/GHSA-r683-j2x4-v87g: Lists v3.1.1 as patched for the high-severity redirect advisory.
- github.com/node-fetch/node-fetch/releases/tag/v3.1.1: Security release shipped on January 16, 2022, the date of public disclosure.
- github.com/advisories/GHSA-vp56-6g26-6827: Lists v3.2.10 as patched for the moderate-severity advisory.
- github.com/node-fetch/node-fetch/releases/tag/v3.2.10: The patch shipped on July 31, 2022, ahead of public disclosure.
- scorecard score, checks: 4.9 overall, with code review at 10 and maintenance, token permissions, and dependency pinning at zero.
- github.com/node-fetch/node-fetch/blob/v3.3.2/.github/workflows/release.yml: The release workflow uses GitHub Actions, semantic-release, and an npm token.
- github.com/node-fetch/node-fetch/issues/1880: An open report raises a concern about credential headers during redirects.
Good
- It follows the standard Fetch API, so moving to native fetch is usually a matter of deleting the import.
- It is small, MIT-licensed and has only three dependencies.
- It ships TypeScript types, and very many existing tutorials and codebases use it.
Bad
- There has been no release since v3.3.2 in July 2023 and no commits in the last year.
- The Node.js security release of June 2026 broke node-fetch@2 with false 'Premature close' errors, and no patch followed.
- Native fetch in Node 18+ makes it unnecessary, and it adds nothing in the browser.
- The v2 (CommonJS) and v3 (ESM-only) split still trips up users, and AI agents keep suggesting it.
The numbers
- npm downloads, 4 weeks
- 1.1B ×3.4 in a year
- GitHub stars
- 8.8k
- Commits, 12 months
- 0
- npm version
- 3.3.2 Jul 2023
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 3 ever
- OpenSSF Scorecard
- 4.9 out of 10, Oct 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (node-fetch/node-fetch), npm (node-fetch), OSV and the OpenSSF Scorecard.