# @whatwg-node/node-fetch

> Fetch API implementation for Node

Latest version **0.8.6** (published 2026-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @whatwg-node/node-fetch
pnpm add @whatwg-node/node-fetch
yarn add @whatwg-node/node-fetch
bun add @whatwg-node/node-fetch
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.8.6 |
| Published | 2026-06-02 |
| First published | 2022-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 4 |
| Unpacked size | 239.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 198 |
| Author | Arda TANRIKULU |
| Maintainers | ardatan, theguild-bot |

## Links

- npm: https://www.npmjs.com/package/@whatwg-node/node-fetch
- Repository: https://github.com/ardatan/whatwg-node
- Homepage: https://github.com/ardatan/whatwg-node#readme
- Issues: https://github.com/ardatan/whatwg-node/issues
- npm.io page: https://npm.io/package/@whatwg-node/node-fetch

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^2.6.3
- [@fastify/busboy](https://npm.io/package/@fastify/busboy.md) ^3.1.1
- [@whatwg-node/disposablestack](https://npm.io/package/@whatwg-node/disposablestack.md) ^0.0.6
- [@whatwg-node/promise-helpers](https://npm.io/package/@whatwg-node/promise-helpers.md) ^1.3.2

## Recent versions

- 0.8.6 (latest) — 2026-06-02
- 0.9.0-alpha-20260914013948-5ef25650c778e9f10dddaaa6a5822027b0cf66e1 (alpha) — 2026-09-14
- 0.7.12-rc-20250225131304-4190dbdf70ce9831363d3828914f7283fca0ffd7 (rc) — 2025-02-25
- 0.9.0-alpha-20260914013638-834da4325a1c94e65ea78520f4b736a410acb342 — 2026-09-14
- 0.9.0-alpha-20260913174255-ee9b50bcf75f2504a4146f17fbdd08b0b0842b17 — 2026-09-13
- 0.9.0-alpha-20260913134434-8f0bcd101eef6b028658f0ad7c7afd464828f2a7 — 2026-09-13
- 0.9.0-alpha-20260913134335-b1c8985b460161c3c98f8230232fdbf3016c7c8a — 2026-09-13
- 0.9.0-alpha-20260913010012-054a47c88bd2e52b6bea3915e8f488d7c2ef9018 — 2026-09-13
- 0.9.0-alpha-20260912213754-3366b5db81636465aee32216172f5736c7ab0f84 — 2026-09-12
- 0.9.0-alpha-20260912213651-94c53b092bbfe675ade097816bd01ab76f9c4ed5 — 2026-09-12
- 0.9.0-alpha-20260912175132-d7f4b24389e7cdfbf2d762c26b6b50869db6565d — 2026-09-12
- 0.9.0-alpha-20260911181542-6f4a3952672f7b34ad551dcad88c23843151f405 — 2026-09-11
- 0.9.0-alpha-20260911181334-0be44c1d560468f1c9c59fd5f111c493547faf6b — 2026-09-11
- 0.9.0-alpha-20260911180909-4df92261257edf3fb6aa18e7c6b7dd404660498e — 2026-09-11
- 0.9.0-alpha-20260911180407-232d2988d94d44d4f5fb56575e71dd1ffedac11c — 2026-09-11
- … 1265 more at https://npm.io/package/@whatwg-node/node-fetch/versions

## README

# WhatWG Node

This repository contains a set of environment(Browser, Node.js, Deno, Cloudflare Workers, Bun, etc.)
agnostic packages for the [WhatWG](https://whatwg.org) standards.

Node.js currently is the only exception that doesn't fully support those standards so `whatwg-node`
packages ponyfill the missing parts without modifying or monkey-patching the native global APIs like
polyfills.

> Polyfill patches the native parts of an environment while ponyfill just exports the “patched”
> stuff without touching the environment’s internals. We prefer pony filling because it prevents us
> from breaking other libraries and environmental functionalities. In case a ponyfill is imported in
> an environment that already has that API built in like newer Node.js, Cloudflare Workers, Bun,
> Deno or Browser, no ponyfills are added to your built application bundle. So you have a generic
> package that works in all environments.

## Packages

### [@whatwg-node/fetch](./packages/fetch)

A ponyfill package for the [Fetch Standard](https://fetch.spec.whatwg.org/).

### [@whatwg-node/events](./packages/events)

A ponyfill package for the [DOM Events Standard](https://dom.spec.whatwg.org/#events).

### [@whatwg-node/server](./packages/server)

A platform-independent JavaScript HTTP server adapter implementation that uses the
[Fetch Standard](https://fetch.spec.whatwg.org/) to handle requests. The HTTP server implemented
with this library can be used in any JS environment like Node.js, Deno, Cloudflare Workers, Bun,
etc. For Node.js, it transpiles Node.js specific APIs to the standard ones, and for other
environments, it uses the standard APIs directly. Even if your environment doesn't use Fetch API for
the server implementation, you can still use `fetch` method to handle requests.

### [fetchache](./packages/fetchache)

A fetch wrapper that allows you to respect HTTP caching strategies on non-browser environments with
a key-value cache implementation. It follows the [HTTP Caching](https://tools.ietf.org/html/rfc7234)
and [Conditional Requests](https://tools.ietf.org/html/rfc7232) standards.

## Support the Project

whatwg-node is maintained in the open and helps keep web-standard APIs consistent across Node.js,
Bun, Deno, Cloudflare Workers, and other JavaScript runtimes. If this project saves you time or
helps power your work, please consider
[sponsoring its development](https://github.com/sponsors/ardatan).

Your support helps fund ongoing maintenance, compatibility work, and improvements across the
ecosystem. Every contribution, large or small, is genuinely appreciated.

---
_Source: https://npm.io/package/@whatwg-node/node-fetch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
