undici
npmv8.10.2TypeScriptAn HTTP/1.1 client, written from scratch for Node.js
Safe to adopt
Yes — undici scores well across adoption, maintenance, weight, supply chain, and licensing. 158.5M downloads per week and 15 known dependents. Last published 5 days ago. 50 releases in the last 2 years.
- AAdoption: grade A, Excellent.
158.5M downloads per week and 15 known dependents.
- AMaintenance: grade A, Excellent.
Last published 5 days ago. 50 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 1.8 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding undici to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=22.19.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the undici README.
// Available globally in Node.js v18+
const response = await fetch('https://api.example.com/data');
const data = await response.json();
// Check the bundled undici version
console.log(process.versions.undici); // e.g., "5.28.4"undici vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| undicithis page | 158.5M | 15 | MIT | 5 days ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| @mswjs/interceptors | 20.3M | 1 | MIT | 1 day ago |
| axios | 106.5M | 4 | MIT | 1 day ago |
| make-fetch-happen | 22.8M | 1 | ISC | 1 day ago |
Dependencies
Declared by undici v8.10.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (22)
Used by
Popular packages that depend on undici.
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
Low-level network interception library for Node.js.
Fast and low overhead web framework, for Node.js
A Fetch API-compatible PlanetScale database driver
Seamless REST/GraphQL API mocking library for browser and Node.js.
A set of primitives to build Vercel Edge Runtime.
A Node.js bindings implementation for the W3C WebDriver and Mobile JSONWire Protocol
Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers
Universal Server.
WhatWG/W3C compliant EventSource client for Node.js and browsers
Web framework built on Web Standards
Media Type Database
Dev server middleware for React Native
Fake HTTP injection library
A JavaScript implementation of many web standards
Relationship graph
Dependencies (left) and dependents (right) of undici.
Frequently installed together
TypeScript definitions for node
Next generation testing framework powered by Vite
An AST-based pattern checker for JavaScript.
TypeScript definitions for ws
JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.
Fast, unopinionated, minimalist web framework
Node.js Adapter for Hono
V8 coverage provider for Vitest
An HTTP(s) proxy `http.Agent` implementation for HTTPS
Get an available TCP port to listen
TypeScript typings for Cloudflare Workers
Fast and low overhead web framework, for Node.js
Release history
50 releases in the last two years, typically about 2 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 7.29.1 | 5 days ago | 1.6 MB | MIT |
| 6.28.1 | 5 days ago | 1.1 MB | MIT |
| 8.10.2latest | 5 days ago | 1.8 MB | MIT |
| 8.10.1 | 9 days ago | 1.8 MB | MIT |
| 8.10.0 | 1 month ago | 1.8 MB | MIT |
| 6.28.0 | 1 month ago | 1.1 MB | MIT |
| 7.29.0 | 1 month ago | 1.6 MB | MIT |
| 8.9.0 | 1 month ago | 1.8 MB | MIT |
| 8.8.0 | 1 month ago | 1.8 MB | MIT |
| 8.7.0 | 2 months ago | 1.7 MB | MIT |
| 8.6.0 | 2 months ago | 1.7 MB | MIT |
| 6.27.0 | 2 months ago | 1.1 MB | MIT |
| 7.28.0 | 2 months ago | 1.5 MB | MIT |
| 8.5.0 | 2 months ago | 1.6 MB | MIT |
| 8.4.1 | 3 months ago | 1.6 MB | MIT |
Overview
undici is an npm package that an HTTP/1.1 client, written from scratch for Node.js. It is extremely widely used, with about 158.5M downloads per week and 15 known dependents in the graph. The latest version is 8.10.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need an HTTP/1.1 client, written from scratch for Node.js and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (158.5M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (22 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use undici?
Yes — undici scores well across adoption, maintenance, weight, supply chain, and licensing. 158.5M downloads per week and 15 known dependents. Last published 5 days ago. 50 releases in the last 2 years.
How do I install undici?
Run `npm install undici` to add undici to your npm project.
What license is undici released under?
undici is distributed under the MIT license.
How popular is undici?
undici has approximately 158,539,585 downloads per week and 15 known dependent packages.
Is undici still maintained?
The most recent release of undici (v8.10.2) was published 5 days ago.
Does undici run install scripts?
No. undici does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.