# lquixada/cross-fetch

Universal WHATWG Fetch API for Node, Browsers and React Native.

Repository: https://github.com/lquixada/cross-fetch
Canonical: https://ross.abutalabs.com/products/cross-fetch
Language: JavaScript
License: MIT
License Family: permissive
Topics: fetch, http, http-client, fetch-api, whatwg-fetch, node-fetch, cross-fetch, spec-compliant, isomorphic, isomorphic-fetch
Last push: 2025-04-15T12:40:26+00:00

## Health v2 (maintenance only)
Score: 41/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 16, release rhythm 40, longevity 100
- inputs: {"age_days": 3287, "days_push": 505, "days_rel": 620, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1695, forks 106 (observed 2026-08-28T04:05:23.614020+00:00)

## What it is
cross-fetch is a universal WHATWG Fetch API implementation that works across Node.js, browsers, workers, and React Native. It can be used as a local ponyfill import or an optional global polyfill, keeping fetch behavior spec-compliant on every platform.

## Use cases
- make http requests with fetch in node
- share the same fetch code between browser and node
- use fetch in react native apps
- polyfill fetch on older node versions
- use fetch in service workers or cloudflare workers
- isomorphic fetch for universal javascript apps

## When to choose
- your codebase runs on multiple platforms and needs one consistent fetch API
- you need a spec-compliant fetch ponyfill without polluting globals
- you want TypeScript types and a tiny dependency-free fetch wrapper

## When to avoid
- you only target modern browsers or Node 18+ where native fetch exists
- you need advanced features like interceptors or retries not covered by the fetch spec
- you need streaming request bodies in Node, which has limited support

## Facets
- artifact type: library
- maturity: stable
- function: http-client
- domain: web-development, apis, developer-tools
- platform: browser, cross-platform
- tags: fetch, whatwg-fetch, isomorphic, ponyfill, polyfill, react-native, typescript, nodejs

## Member repositories
- lquixada/cross-fetch (main) score 41

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:23.614020+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:37:56.379421+00:00, confidence not recorded.
  - readme: https://github.com/lquixada/cross-fetch (fetched 2026-08-28T04:05:23.614020+00:00, sha 8bae895cb9b8)
  - registry_npm: https://registry.npmjs.org/cross-fetch (fetched 2026-08-29T11:13:04.772617+00:00, sha f8aa1de3ab2d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
