# node-fetch: 2.8 out of 10

Do not start with it. 9th of 10 in [HTTP clients](https://elestia.ai/opensource/http-clients/index.md).

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

- **Overall: 2.8** (likely 1.8 to 3.9)
  - Claude Opus 5.5 (2.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.
  - GPT-6.2 Sol (3.6): 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.
- **Needed by many: 3.8** (likely 2.7 to 5.4)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.5): 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.
- **Helps a lot: 4.6** (likely 3.5 to 5.7)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (6.2): 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.
- **Holds up over time: 1.9** (likely 0.9 to 3.3)
  - Claude Opus 5.5 (1.5): 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.
  - GPT-6.2 Sol (2.3): 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.
- **Used widely: 6.2** (likely 4.7 to 7.7)
  - Claude Opus 5.5 (5.0): 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.
  - GPT-6.2 Sol (7.4): 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.
- **Vouched for: 4.4** (likely 3.2 to 5.5)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (5.7): 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.
- **Safe: 5.1** (likely 3.6 to 6.5)
  - Claude Opus 5.5 (4.5): 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.
  - GPT-6.2 Sol (5.6): 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.

## 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

- Downloads, 4 weeks: 1.1B
- In a year: ×3.4
- GitHub stars: 8.8k
- Commits, 12 months: 0
- Last npm release: Jul 2023
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/node-fetch/node-fetch
- npm: https://www.npmjs.com/package/node-fetch

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
