# node-fetch

> A light-weight module that brings the Fetch API to Node.js

Source: https://talira.ai/catalog/node-fetch-f6wxdep8
Every listing: https://talira.ai/catalog.md

Status: node-fetch looks abandoned: nothing has changed since August 2023, and its makers haven't said it has ended. No commits on the main or 2.x branches and no npm release since August 2023; the makers haven't announced an end. Source: https://github.com/node-fetch/node-fetch/commits/main

- Kind: Open source
- Types: Library
- Categories: [libraries / http clients](https://talira.ai/categories/libraries/http-clients), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^1]
- API: yes[^1]
- Creator: David Frank

node-fetch implements the browser's `window.fetch` API on top of Node.js's own `http` module, for code that wants the same `fetch` calls on the server. It uses native promises and Node.js streams for request and response bodies, decodes gzip, deflate and brotli, and adds a redirect limit, a response size limit and typed errors; its docs list where it differs from browser `fetch`. Version 3 is ESM only, while v2 stays CommonJS-compatible. Node.js now has `fetch` built in, and the project has had no release since August 2023; [Ky](https://talira.ai/catalog/ky-7jhb33p5.md), [ofetch](https://talira.ai/catalog/ofetch-brxwg7d2.md) and [axios](https://talira.ai/catalog/axios-0sg488rd.md) are maintained alternatives.

## Links

- GitHub: https://github.com/node-fetch/node-fetch

## Problems it solves

- use the same fetch() calls in old Node.js versions that don't have fetch built in
- polyfill globalThis.fetch, Headers, Request and Response in a Node.js app
- stream a fetch response body to a file with Node.js streams
- limit how many redirects a server-side fetch follows and how big the response can be
- send a file as a stream in a POST body from Node.js

## Features

- window.fetch-compatible API
- native promises and async functions
- Node.js streams for request and response bodies
- gzip, deflate and brotli decoding
- redirect limit and response size limit
- FetchError and AbortError types
- AbortSignal cancellation
- custom http.Agent
- TypeScript types

## Limitations

- Doesn't load with require() in CommonJS from v3: version 3 is ESM only, and v2 stays CommonJS-compatible[^1]
- Doesn't keep cookies between requests: there's no cookie store, so you read Set-Cookie headers yourself[^2]
- Doesn't cache responses: there's no built-in HTTP caching[^2]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.11 out of 1.
Signals: maintenance 0.00, backing 0.20, extensibility 0.20.

- created by David Frank

Warnings:

- abandoned: not maintained since August 2023
- GitHub activity not fetched yet

## Alternatives

- [undici](https://talira.ai/catalog/undici-kmdjat1w.md): An HTTP/1.1 client, written from scratch for Node.js
- [ofetch](https://talira.ai/catalog/ofetch-brxwg7d2.md): A better fetch API. Works on node, browser, and workers.
- [Got](https://talira.ai/catalog/got-0csab4w7.md): Human-friendly and powerful HTTP request library for Node.js
- [SuperAgent](https://talira.ai/catalog/superagent-b9qa7pyb.md): Ajax for Node.js and browsers (JS HTTP client)
- [axios](https://talira.ai/catalog/axios-0sg488rd.md): Promise based HTTP client for the browser and node.js
- [Ky](https://talira.ai/catalog/ky-7jhb33p5.md): Tiny & elegant JavaScript HTTP client based on the Fetch API

## Sources

[^1]: https://github.com/node-fetch/node-fetch (checked 20 Nov 2026)
[^2]: https://github.com/node-fetch/node-fetch/blob/main/docs/v3-LIMITS.md (checked 20 Nov 2026)
[^3]: https://github.com/node-fetch/node-fetch/blob/main/LICENSE.md (checked 20 Nov 2026)
