axios
npmv1.20.0TypeScriptPromise based HTTP client for the browser and node.js
Adopt with care
axios is usable, with caveats. Pulls in 26 transitive packages, about 2.6 MB installed (at least — some of the tree is still being crawled).
- AAdoption: grade A, Excellent.
106.5M downloads per week and 4 known dependents.
- AMaintenance: grade A, Excellent.
Last published 14 days ago. 40 releases in the last 2 years.
- CWeight: grade C, Fair — worth a look.
Pulls in 26 transitive packages, about 2.6 MB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- 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 axios 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.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing axios, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the axios README.
import axios, { isCancel, AxiosError } from 'axios';axios 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 |
|---|---|---|---|---|
| axiosthis page | 106.5M | 4 | MIT | 14 days ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
| undici | 158.5M | 15 | MIT | 1 day ago |
| express | 92.8M | 17 | MIT | 1 day ago |
| @mswjs/interceptors | 20.3M | 1 | MIT | 1 day ago |
Dependencies
Declared by axios v1.20.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (39)
Used by
Popular packages that depend on axios.
TypeScript execution environment and REPL for node.js, with source map support
The official, opinionated, batteries-included toolset for efficient Redux development
Low-level network interception library for Node.js.
Seamless REST/GraphQL API mocking library for browser and Node.js.
Relationship graph
Dependencies (left) and dependents (right) of axios.
Frequently installed together
TypeScript definitions for node
Next generation testing framework powered by Vite
A JavaScript implementation of many web standards
A light-weight module that brings Fetch API to node.js
An HTTP/1.1 client, written from scratch for Node.js
Fast, unopinionated, minimalist web framework
Type-safe implementation of invariant with positionals.
Reliably determines if the code is running in Node.js
HTTP and HTTPS modules that follow redirects.
node.js realtime framework server
TypeScript definitions for ws
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
Release history
38 releases in the last two years, typically about 9 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.20.0latest | 14 days ago | 1.9 MB | MIT |
| 1.19.0 | 1 month ago | 1.8 MB | MIT |
| 1.18.1 | 2 months ago | 1.7 MB | MIT |
| 1.18.0 | 2 months ago | 1.7 MB | MIT |
| 0.33.0 | 2 months ago | 967 KB | MIT |
| 1.17.0 | 3 months ago | 1.6 MB | MIT |
| 1.16.1 | 3 months ago | 2.7 MB | MIT |
| 0.32.0 | 4 months ago | 941 KB | MIT |
| 1.16.0 | 4 months ago | 2.6 MB | MIT |
| 1.15.2 | 4 months ago | 2.4 MB | MIT |
| 0.31.1 | 4 months ago | 891 KB | MIT |
| 1.15.1 | 4 months ago | 2.4 MB | MIT |
| 0.31.0 | 5 months ago | 866 KB | MIT |
| 1.15.0 | 5 months ago | 2.3 MB | MIT |
| 1.14.0 | 5 months ago | 2.3 MB | MIT |
Overview
axios is an npm package that promise based HTTP client for the browser and node.js. It is extremely widely used, with about 106.5M downloads per week and 4 known dependents in the graph. The latest version is 1.20.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need promise based HTTP client for the browser and 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 (106.5M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (43 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 axios?
axios is usable, with caveats. Pulls in 26 transitive packages, about 2.6 MB installed (at least — some of the tree is still being crawled).
How do I install axios?
Run `npm install axios` to add axios to your npm project.
How many dependencies does axios have?
axios declares 43 direct dependencies and pulls in 26 packages in total once its runtime tree is resolved totalling about 2.6 MB on disk.
What license is axios released under?
axios is distributed under the MIT license.
How popular is axios?
axios has approximately 106,518,902 downloads per week and 4 known dependent packages.
Is axios still maintained?
The most recent release of axios (v1.20.0) was published 14 days ago.
Does axios run install scripts?
No. axios does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.