undici
A strong pick. 1st of 10 HTTP clients.
undici is the HTTP client that the Node.js project maintains. Node's built-in fetch runs on it. Installing the package gets you a newer fetch, plus lower-level request, stream and pool APIs, proxy agents, mocking, caching, HTTP/2 and WebSocket. For Node.js servers it is one of the strongest and best-maintained choices today, but it does not run in the browser and it ships security fixes often.
Best for: Node.js backend teams that want the fastest, standards-based HTTP client with connection pooling, proxies and request mocking from the Node.js project itself.
Scores
Overall8.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
For Node.js server code, undici is the best-maintained and fastest client in the category, and it is the same engine as Node's fetch. That makes it a strong pick ahead of got, node-fetch and axios for backend work. It is not the category default, because it runs on Node only and has a steady stream of security advisories. For browser or universal code, use fetch or Ky.
- github.com/silverwind/fetch-bench: Performance lead over peers
- github releasesLastYear: 68 releases, very active
- advisories last24Months: Frequent security fixes needed
- pkgpulse.com/guides/axios-alternatives-2026-got-ky-undici: Positions undici as the low-level Node choice
GPT-6.2 Sol: 8.5, likely 7.5 to 9.4
Undici is a leading choice for new Node.js services that need high throughput or control over pooling, proxies, and streaming. Built-in fetch covers ordinary Node.js requests, and Axios is a better fit for teams that share client code with the browser. Active maintenance and downstream use support a strong recommendation, with some uncertainty from major-version migration costs and performance differences across workloads.
- undici.nodejs.org: Standalone package adds transport controls beyond built-in fetch
- github.com/axios/axios: Axios supports the browser and Node.js
- github.com/nodejs/undici/discussions/5084: Undici v8 request performance depends on workload and settings
- undici.nodejs.org/best-practices/migrating-from-v7-to-v8: Major upgrades can change runtime requirements and transport behavior
- github.releasesLastYear, github.commitsLastYear, dependents, peers: Active maintenance and substantial adoption within the category
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Sending HTTP requests is a near-universal need, but undici serves only Node.js, not browsers or edge runtimes. Many Node developers get it through global fetch without installing it. That makes the group who need the package itself a large server-side group, not most JS developers.
- github description: An HTTP/1.1 client written from scratch for Node.js
- nodejs.org/en/learn/getting-started/fetch: Node.js docs: undici powers Node's fetch; the package gives newer features
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
Sending HTTP requests is common across JavaScript projects, and 46.4% of respondents to the 2026 Stack Overflow web technology question reported using Node.js. The standalone package serves Node.js projects that need more control than built-in fetch offers. The survey measures runtime use, so the share that needs those controls remains uncertain.
- survey.stackoverflow.co/2026/technology/data: Node.js use among web technology respondents
- undici.nodejs.org: Node.js scope and reasons to install the package
Helps a lot8.6
How well does it do the job for those who need it?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
It is a spec-compliant fetch plus faster request, stream and pipeline APIs, with pools, proxy agents, MockAgent, interceptors (retry, cache, decompress), HTTP/2, WebSocket and EventSource. An independent benchmark puts undici-pool and undici-request well ahead of axios, got and node-fetch. Its limits: it runs on Node only, the dispatcher API is low-level, and conveniences such as hooks are less polished than in got or ky.
- github.com/silverwind/fetch-bench: undici-pool 48.8ms vs axios 158.9ms, got 173.9ms, node-fetch 138.4ms
- undici.nodejs.org: Documents its feature set and API tiers
- pkgpulse.com/guides/axios-alternatives-2026-got-ky-undici: Recommends it for pooling, Unix sockets and HTTP/2 needs
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.7, likely 7.6 to 9.6
Undici 8.13.1 offers HTTP/1.1 pipelining, HTTP/2, streaming, and request mocking. Independent local tests favor undici.request over Axios, with the margin depending on connection settings and workload. Familiar Fetch calls, TypeScript types, and documented examples help coding agents get started. Stream cleanup and version-specific dispatcher behavior leave more room for mistakes.
- undici.nodejs.org: Transport APIs, examples, error behavior, and response cleanup
- github.com/HasData/nodejs-fetch-benchmark: Local throughput comparison with Axios and Fetch
- github.com/nodejs/undici/discussions/5084: V8 HTTP/2 measurements and sensitivity to pooling
- npm.hasTypes: Bundled TypeScript declarations
Holds up over time9.0
Will it still be a good choice in two years?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
The Node.js project owns it, and Node core depends on it, so it is very unlikely to be abandoned. In the last year it had 814 commits, 68 releases and 443 contributors in total, with the latest release a day before the read date. Major versions do break code, such as v8 requiring Node 22.19+ and changing the handler API, but migration guides are published.
- github commitsLastYear: 814 commits, 68 releases in last year
- github contributors: 443 contributors
- undici.nodejs.org/best-practices/migrating-from-v7-to-v8: v8 breaking changes: Node >=22.19, controller handlers, HTTP/2 default
- scorecard Maintained: Maintained check 10/10
GPT-6.2 Sol: 8.9, likely 7.8 to 9.7
Undici shipped 68 releases and recorded 814 commits over the past year, more commits than any listed peer. Four listed releasers, support aligned with Node.js LTS, and OpenJS security infrastructure make continued maintenance likely. Users reported compatibility problems when mixing v8 with older bundled copies, and the v8 migration changes custom handlers and HTTP/2 defaults. The aggregate activity figures leave typical issue and pull request turnaround uncertain.
- github.commitsLastYear, github.releasesLastYear, github.openIssues, github.openPullRequests, peers: High activity and a sizable open backlog
- github.com/nodejs/undici/releases/tag/v8.13.1: November 20 patch with fixes from multiple contributors
- undici.nodejs.org: Four listed releasers and a Node.js-aligned support schedule
- openjsf.org/blog/nodejs-issues-its-cves-through-openjs-foundation: Undici uses OpenJS disclosure infrastructure backed by Alpha-Omega funding
- undici.nodejs.org/best-practices/migrating-from-v7-to-v8: Runtime floor, dispatcher changes, and new HTTP/2 default
- github.com/nodejs/undici/issues/5500: Users reported production compatibility problems after importing v8
Used widely7.5
How many use it, and is that growing?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Downloads rose from 115M to 1.32B per 4 weeks, a ratio of about 11.5 against the median of 4.1. Much of that likely comes from popular tools that install it as a dependency. Its 98k dependent repos are fewer than axios, got or node-fetch have, but far more than ky or ofetch. Counting the many projects that use it through Node's built-in fetch, its real reach is larger still.
- npm downloadsLast4Weeks: 1.32B now vs 114.5M a year ago
- dependents repos: 98,048 repos, 1,956 packages
- peers dependentRepos: Axios 453k, Got 1.33M, node-fetch 1.82M, Ky 12k
- bluesky posts: 59 posts, mostly release and security notices
GPT-6.2 Sol: 7.5, likely 6.1 to 8.7
Four-week downloads rose 11.5-fold, well above the 4.1-fold catalog median. Ecosyste.ms found about 98,000 dependent repositories, ahead of Ky and behind Axios, Got, and node-fetch. Node.js bundles Undici for fetch, while tools such as node-gyp add npm installs through their own dependencies. Both effects leave the number of projects choosing the npm package directly uncertain.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1.32 billion versus 114.5 million downloads a year earlier
- dependents, peers: 98,048 repositories and 1,956 packages in the collector's coverage
- github.stars, bluesky.posts, bluesky.top, peers: 7,743 stars and 59 posts, with several top posts announcing fixes
- nodejs.org/download/release/v24.22.2/docs/api/globals.html#fetch: Bundled use creates no separate npm install
- github.com/nodejs/node-gyp/blob/main/package.json: Node-gyp declares Undici as a runtime dependency
Vouched for8.3
Who stands behind it being good?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Node.js itself ships it as global fetch, which is the strongest backing an HTTP client can have. Independent benchmarks and 2026 comparison guides place it as the high-performance Node client. Survey data and user write-ups about it as a standalone package are thin, which keeps the score from going higher.
- nodejs.org/en/learn/getting-started/fetch: Node.js core uses undici for fetch
- github.com/silverwind/fetch-bench: Third-party benchmark ranks it fastest Node client
- positioniseverything.net/7-node-js-http-client-and-request-libraries-for-developers-2026-guide: 2026 guide lists it among top Node HTTP clients
- hackerNews stories: Only one low-traction HN story
GPT-6.2 Sol: 8.6, likely 7.5 to 9.5
Node.js relies on Undici for built-in fetch, and both discord.js REST and Cloudflare's Workers SDK depend on it. Independent benchmarks also report throughput gains for the low-level request API. The available survey measures Node.js use, so satisfaction with Undici itself is harder to estimate.
- nodejs.org/download/release/v24.22.2/docs/api/globals.html#fetch: Node.js ships Undici as its Fetch implementation
- github.com/discordjs/discord.js/blob/main/packages/rest/package.json: Discord.js REST declares Undici v8 as a dependency
- github.com/cloudflare/workers-sdk/releases: Cloudflare ships and updates Undici across its tooling
- github.com/HasData/nodejs-fetch-benchmark: Independent local benchmark measured high request throughput
- survey.stackoverflow.co/2026/technology/data: Runtime survey provides indirect context only
Safe7.4
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has zero dependencies, an MIT licence and an OpenSSF Scorecard of 8.3 with fuzzing, SAST and code review. But 42 advisories in 24 months is a lot, including HIGH TLS validation bypass and cache poisoning issues in October 2026. These were fixed in coordinated releases and backported, which shows good handling, but users must upgrade often. The Token-Permissions and CII-Best-Practices checks both score 0.
- advisories last24Months: 42 advisories in 24 months, 55 total
- scorecard score: 8.3 overall; Token-Permissions 0
- npm dependencies: Zero runtime dependencies
- newreleases.io/project/npm/undici/release/8.5.0: Security release fixing 8 advisories with backports
GPT-6.2 Sol: 7.7, likely 6.5 to 8.8
Undici has an MIT license, zero runtime dependencies, and a GitHub Actions workflow that publishes to npm using OIDC. The 8.3 OpenSSF Scorecard shows strong review and fuzzing, a zero for workflow token permissions, and an unscored Signed Releases check. October fixes shipped by public disclosure, and a November patch completed an earlier cache fix. The need for that follow-up and the steady stream of protocol advisories keep the range wide.
- npm.dependencies, npm.license, scorecard.checks, advisories: No runtime dependencies, permissive license, strong review, and frequent advisories
- github.com/nodejs/undici/blob/main/.github/workflows/release.yml: Release workflow requests an OIDC token and publishes to npm
- github.com/nodejs/undici/releases/tag/v8.12.2: October security release fixed high-severity TLS and cache issues
- github.com/nodejs/undici/releases/tag/v8.12.4: November release fixed six issues, including the remaining cache flaw
- github.com/nodejs/undici/security: Coordinated patching across supported Undici and Node.js lines
Good
- It is the engine behind Node's global fetch and is maintained by Node.js core contributors, with very active development.
- Its request and pool APIs come out well ahead of axios, got and node-fetch in independent client-overhead benchmarks.
- It has zero dependencies and ships its own types, and MockAgent, ProxyAgent, interceptors and caching are built in.
- Security fixes ship in coordinated releases that are backported to the 6.x, 7.x and 8.x lines.
Bad
- It runs on Node.js only, so code shared with the browser needs fetch or a wrapper such as Ky.
- The advisory count is high: 42 in 24 months, several of them HIGH (TLS validation bypass, cache poisoning), so users must update often.
- Major versions break code: v8 requires Node 22.19+, drops legacy handlers and turns on HTTP/2 by default.
- The dispatcher and handler APIs are low-level, and its fetch is slower than its own request API.
The numbers
- npm downloads, 4 weeks
- 1.3B ×11 in a year
- GitHub stars
- 7.7k
- Commits, 12 months
- 814
- npm version
- 8.13.1 Nov 2026
- Versions, 12 months
- 68
- Advisories, 24 months
- 42 of 55 ever
- OpenSSF Scorecard
- 8.3 out of 10, Nov 2026
- Licence
- MIT
Node.js ships undici as its built-in fetch, so the downloads count only projects that install it as a package.
Read on 21 November 2026 from GitHub (nodejs/undici), npm (undici), OSV and the OpenSSF Scorecard.