</>PackageGraphPackageGraph

axios

npmv1.20.0TypeScript

Promise 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.

4
Direct dependencies

Runtime packages this one declares itself.

26
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

2.6 MB
Install size

Unpacked size of this package plus its entire runtime tree.

4
Tree depth

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

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
axiosthis page106.5M4MIT14 days ago
cross-fetch32.9M2MIT1 day ago
node-fetch172.9M9MIT1 day ago
undici158.5M15MIT1 day ago
express92.8M17MIT1 day ago
@mswjs/interceptors20.3M1MIT1 day ago

Dependencies

Declared by axios v1.20.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (39)

@babel/core ^7.29.0@babel/preset-env ^7.29.5@commitlint/cli ^21.2.0@commitlint/config-conventional ^21.2.0@eslint/js ^10.0.1@rollup/plugin-alias ^6.0.0@rollup/plugin-babel ^7.1.0@rollup/plugin-commonjs ^29.0.3@rollup/plugin-json ^6.1.0@rollup/plugin-node-resolve ^16.0.3@rollup/plugin-terser ^1.0.0@vitest/browser ^4.1.9@vitest/browser-playwright ^4.1.9abortcontroller-polyfill ^1.7.8acorn ^8.17.0body-parser ^2.3.0chalk ^5.6.2cross-env ^10.1.0dev-null ^0.1.1eslint ^10.6.0express ^5.2.1formdata-node ^6.0.3formidable ^3.5.4fs-extra ^11.3.6get-stream ^9.0.1globals ^17.7.0gulp ^5.0.1husky ^9.1.7lint-staged ^17.0.8minimist ^1.2.8multer ^2.2.0playwright ^1.61.1prettier ^3.9.4rollup ^4.60.4rollup-plugin-bundle-size ^1.0.3selfsigned ^5.5.0stream-throttle ^0.1.3typescript ^5.9.3vitest ^4.1.9

Used by

Popular packages that depend on axios.

Relationship graph

Dependencies (left) and dependents (right) of axios.

Frequently installed together

Release history

38 releases in the last two years, typically about 9 days apart.

Recent versions of axios
VersionPublishedSizeLicense
1.20.0latest14 days ago1.9 MBMIT
1.19.01 month ago1.8 MBMIT
1.18.12 months ago1.7 MBMIT
1.18.02 months ago1.7 MBMIT
0.33.02 months ago967 KBMIT
1.17.03 months ago1.6 MBMIT
1.16.13 months ago2.7 MBMIT
0.32.04 months ago941 KBMIT
1.16.04 months ago2.6 MBMIT
1.15.24 months ago2.4 MBMIT
0.31.14 months ago891 KBMIT
1.15.14 months ago2.4 MBMIT
0.31.05 months ago866 KBMIT
1.15.05 months ago2.3 MBMIT
1.14.05 months ago2.3 MBMIT

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

Keywords

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.