# nodejs/undici

An HTTP/1.1 client, written from scratch for Node.js

Repository: https://github.com/nodejs/undici
Canonical: https://ross.abutalabs.com/products/undici
Homepage: https://undici.nodejs.org/
Language: JavaScript
License: MIT
License Family: permissive
Topics: nodejs, http, client
Last push: 2026-08-26T00:05:06+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 3036, "days_push": 8, "days_rel": 30, "gap_med": 4, "n_releases_24m": 80}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7682, forks 846 (observed 2026-08-28T04:10:02.382021+00:00)

## What it is
Undici is a fast HTTP/1.1 client library for Node.js, written from scratch, that also provides WHATWG-compliant fetch, WebSocket, EventSource, and related web standard implementations. It offers low-level dispatchers (Client, Pool, Agent), proxy support, interceptors, and mocking utilities for testing.

## Use cases
- make fast HTTP requests from Node.js
- replace Node's built-in fetch with a faster implementation
- polyfill fetch and web standard APIs globally
- pool and reuse HTTP connections for high throughput
- make requests through HTTP or SOCKS5 proxies
- mock HTTP requests in tests
- stream HTTP response bodies
- retry failed requests automatically

## When to choose
- you need maximum HTTP client performance in Node.js with pipelining and keep-alive
- you want consistent, spec-compliant fetch/WebSocket/EventSource behavior across Node versions
- you need fine-grained control over connections, pooling, proxies, or retries
- you want to mock HTTP calls in your test suite

## When to avoid
- you only need simple, occasional HTTP requests and built-in fetch suffices
- you need HTTP/2 or HTTP/3 client features as the primary protocol
- you are not on Node.js
- you need a browser-side HTTP client

## Facets
- artifact type: library
- maturity: stable
- function: http-client, web-framework, testing, mocking
- domain: web-development, backend, apis, developer-tools
- platform: -
- tags: http1.1, fetch, websocket, eventsource, connection-pooling, proxy-support, whatwg-standards, high-performance, nodejs, javascript

## Member repositories
- nodejs/undici (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.382021+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-29T17:36:02.571877+00:00, confidence not recorded.
  - readme: https://github.com/nodejs/undici (fetched 2026-08-28T04:10:02.382021+00:00, sha 908eb4acab19)
  - homepage: https://undici.nodejs.org/ (fetched 2026-08-29T08:32:05.865812+00:00, sha 7fea70f8c554)
  - site_page: https://nodejs.org/about (fetched 2026-08-29T08:32:05.875788+00:00, sha 6d9fccdb9ff7)
  - site_page: https://undici.nodejs.org/getting-started (fetched 2026-08-29T08:32:05.879498+00:00, sha 73a3faef99a8)
  - site_page: https://undici.nodejs.org/api/GlobalInstallation (fetched 2026-08-29T08:32:05.881294+00:00, sha fbd447c69e64)
  - site_page: https://undici.nodejs.org/docs/docs/api/Dispatcher.html (fetched 2026-08-29T08:32:05.884479+00:00, sha f4354a57fc83)
- Data as of 2026-08-30T08:39:29.467469+00:00.
