Axios
A strong pick. 3rd of 10 HTTP clients.
Axios is the most widely used promise-based HTTP client for JavaScript. It works in browsers and Node.js and comes with interceptors, timeouts, progress events and good types. It is still a solid, well-maintained pick. However, its share is shrinking as native fetch and small fetch wrappers like Ky take over, and in 2026 it had a hijacked npm release plus a large batch of security advisories.
Best for: Teams that want a full-featured, familiar client with interceptors and upload/download progress, on both browser and Node.js.
Scores
Overall7.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Axios is still a strong, actively maintained, full-featured client and the most familiar one in the category. Its 2026 security record is poor, with a hijacked release and many adapter advisories. For many new projects, native fetch or a light wrapper like Ky is a smaller attack surface. It suits teams that want its interceptors and Node features, but it is no longer the default pick for every new project.
- npm downloadsLast4Weeks: Huge use, but growth below the median
- hackerNews top: A 1,934-point story on the npm compromise
- reintech.io/blog/axios-vs-fetch-vs-ky-http-client-comparison-2026: Fetch and Ky are now credible alternatives for many projects
- github releasesLastYear: Active maintenance with 24 releases
GPT-6.2 Sol: 7.5, likely 6.4 to 8.6
Axios is a strong choice when a new project needs shared authentication, error handling, or file upload progress across browsers and Node.js. Built-in fetch suits routine calls, Ky is a better fit when built-in retries matter, and Undici is a better fit for throughput-sensitive Node.js services. Active maintenance supports Axios, while below-median install growth and the recent publishing compromise limit confidence in it as the default.
- github.com/axios/axios: Documents the shared API, client defaults, interceptors, and upload progress.
- github.com/sindresorhus/ky: Documents built-in retries and hooks on top of fetch.
- github.com/HasData/nodejs-fetch-benchmark: Shows Undici's throughput advantage in a local Node.js load test.
- github releasesLastYear, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo and medianDownloadsRatio: 24 annual releases and install growth of 1.99× against a 4.1× median.
- github.com/axios/axios/issues/10636: Documents the 2026 npm compromise and response.
Needed by many7.7
How many developers need a tool for this job?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Most JavaScript apps send HTTP requests, and Axios covers both browser and server. Many developers now use native fetch without a library, which shrinks the group that needs a client like this. It still serves a very large share of web and Node.js projects.
- github description: Promise based HTTP client for the browser and node.js
- pkgpulse.com/guides/axios-vs-ky-2026: Native fetch now ships in all main runtimes, which reduces the need for a library
GPT-6.2 Sol: 7.3, likely 6.2 to 8.5
Making HTTP requests is common in browser and server projects, and Axios works across both without tying teams to a framework. Shared interceptors and upload progress make it useful for a large group, while built-in fetch covers routine calls. Frontend surveys give a clearer picture of demand in web apps than in the wider JavaScript and TypeScript population.
- github.com/axios/axios: Documents browser and Node.js support, interceptors, and progress callbacks.
- jokerconf.com/research/state-of-frontend/2025/report.html: 62.3% of respondents used Axios and 71.0% used Fetch API.
- nodejs.org/api/globals.html#fetch: Node.js ships a stable browser-compatible fetch.
Helps a lot7.8
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
Axios has the richest built-in feature set of the mainstream clients: interceptors, instances, automatic JSON handling, progress events, proxy support and adapters for XHR, fetch and Node http. Its types are bundled, and AI agents write correct Axios code reliably. The limits are its size compared with fetch wrappers, an API that differs from the fetch standard, and a run of adapter bugs found in 2026.
- reintech.io/blog/axios-vs-fetch-vs-ky-http-client-comparison-2026: Comparison of Axios, fetch and Ky features and TypeScript support
- pkgpulse.com/guides/axios-vs-ky-2026: Recommends Axios for Node-heavy backends, Ky for browser and edge code
- npm hasTypes: Ships its own TypeScript types
- advisories recent: Fetch-adapter and Node-adapter bugs such as maxRedirects not enforced
GPT-6.2 Sol: 8.1, likely 7.1 to 9.1
Axios 1.21.1 has a well-documented TypeScript API, configurable clients, structured errors, and upload progress. Its examples give coding agents a clear pattern for routine calls, though their accuracy is unmeasured. Ky includes retries, and Undici delivered higher throughput in a local Node.js load test whose results may vary by workload.
- github.com/axios/axios: Documents typed usage, request configuration, interceptors, and adapters.
- axios.rest/pages/advanced/error-handling: Explains AxiosError fields and configurable HTTP status handling.
- github.com/axios/axios/releases/tag/v1.21.1: Fixes adapter typings and a Next.js production build regression.
- github.com/HasData/nodejs-fetch-benchmark: Independent local test measured 1,305 requests per second for Axios and 7,431 for undici.request at 200 connections.
- github.com/sindresorhus/ky: Ky includes configurable retries.
Holds up over time7.5
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
The project is very active: 506 commits and 24 releases in the past year, 55 open issues against more than 5,000 closed, and a release on 2026-11-09. Release power and day-to-day work rest heavily on a small core around one lead maintainer, and that account was the one compromised. The ecosystem is moving toward fetch-based clients, but Axios's installed base makes abandonment unlikely within two years.
- github commitsLastYear: 506 commits in the last year
- github releasesLastYear: 24 releases, latest v1.21.1 on 2026-11-09
- github openIssues: 55 open issues versus 5,041 closed
- securitylabs.datadoghq.com/articles/axios-npm-supply-chain-compromise: The lead maintainer's account was the one used to publish the malicious releases
GPT-6.2 Sol: 7.4, likely 6.2 to 8.5
Axios had 506 commits and 24 releases in the past year, with more commits than Ky or Got and an estimated annual budget of about $144,000. Version 1.21.1 fixed a Next.js build regression within two weeks, although the project-wide issue response time is unclear. npm lists one package maintainer, and NestJS now documents a fetch-based client as its replacement for the Axios module.
- github commitsLastYear and releasesLastYear: 506 commits and 24 releases in the past year.
- peers commitsLastYear: Ky recorded 176 commits, Got 180, and Undici 814.
- opencollective.com/axios: Shows recurring sponsorship and an estimated annual budget of $144,405.
- github.com/axios/axios/releases/tag/v1.21.1: The November 9 patch corrected a build failure introduced in 1.21.0.
- registry.npmjs.org/axios/latest: Lists one npm package maintainer and identifies the CI release approver.
- docs.nestjs.com/application/http-client: NestJS documents the switch to its fetch-based client.
Used widely8.3
How many use it, and is that growing?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
Axios has about 582 million downloads in 4 weeks and 453,000 dependent repos, which is among the highest direct-choice numbers in the category. Got and node-fetch show more dependents, but much of their use is transitive. Downloads doubled year over year (ratio about 2.0), but that is below the 4.1 median, so Axios is losing share to fetch-based tools like undici, ofetch and openapi-fetch.
- npm downloadsLast4Weeks: 582M, up from 293M a year earlier (ratio about 2.0, below the 4.1 median)
- dependents repos: 453,457 dependent repos and 97,210 dependent packages
- github stars: 109k stars, far more than any peer
GPT-6.2 Sol: 7.5, likely 6.4 to 8.6
Ecosyste.ms found about 453,000 dependent repos and 97,000 dependent npm packages, and Axios has about 109,000 GitHub stars. Four-week installs nearly doubled to 582 million, but the 1.99× growth falls well below the 4.1× catalog median and trails Ky's 2.8×. Automated installs and SDK dependencies inflate downloads, and much of the recent social attention concerns the npm compromise. Direct adoption is substantial, with less certainty about how many new projects choose it.
- dependents repos and packages: 453,457 indexed repos and 97,210 npm packages.
- github stars and peers: Axios leads the peer set in stars and trails Got and node-fetch in indexed dependent repos.
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio and peers: 582.4M versus 293.2M installs, or 1.99× against the 4.1× median. Ky grew 2.8×.
- bluesky and hackerNews top: 83 Bluesky links lead the peer set. Top posts on both services center on the compromise.
- github.com/twilio/twilio-node/src/base/RequestClient.ts: Twilio's SDK uses Axios, creating installs through another package.
- 2025.stateofreact.com/so-SO/libraries: 83.4% of respondents to the Axios question reported having used it.
Vouched for7.4
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Axios runs in production at a huge number of companies, and independent 2026 comparisons still recommend it for backend and feature-heavy use. The compromise coverage showed how deeply large organisations, including OpenAI, depend on it. Surveys give no clear satisfaction data, and recent write-ups often recommend fetch or Ky for new browser code.
- hackerNews top: OpenAI's response to the Axios compromise shows production use at large firms
- pkgpulse.com/guides/axios-vs-ky-2026: Independent comparison that still recommends Axios for Node backends
- infoq.com/news/2026/04/axios-supply-chain: Coverage describes Axios as critical, widely deployed infrastructure
GPT-6.2 Sol: 7.8, likely 6.7 to 8.9
Twilio's Node SDK uses Axios for requests, and OpenAPI Generator maintains a stable Axios-based TypeScript generator. Developers in a Next.js discussion value its simpler API and shared browser and server interface, while others prefer built-in fetch or Ky. NestJS's move to fetch and limited survey evidence on satisfaction and retention temper the endorsements.
- github.com/twilio/twilio-node/blob/main/src/base/RequestClient.ts: Twilio's SDK request client uses Axios instances and interceptors.
- openapi-generator.tech/docs/generators/typescript-axios: OpenAPI Generator offers a stable Axios-based client generator.
- reddit.com/r/nextjs/comments/1k9w0fa/axios_or_fetch: Users describe the API conveniences and explain why they choose fetch or Ky.
- docs.nestjs.com/application/http-client: The Axios integration remains available alongside NestJS's fetch-based replacement.
- 2025.stateofreact.com/so-SO/libraries: Measures past use and awareness of Axios.
Safe5.2
How safe is it to depend on?
Claude Opus 5.5: 4.5, likely 3.5 to 6.0
In March 2026 attackers socially engineered the lead maintainer and published malicious releases that dropped a remote access trojan. The releases were live for about 3 hours before npm removed them. There are also 51 advisories in 24 months, including a batch of HIGH-severity SSRF and prototype-pollution issues in September 2026. On the positive side, it has only 4 dependencies, an MIT licence, a Scorecard of 7.1 and trusted publishing on 1.x. Code-Review, SAST and Fuzzing still score low.
- securitylabs.datadoghq.com/articles/axios-npm-supply-chain-compromise: Malicious 1.14.1 and 0.30.4 releases were live for about 3 hours and installed a RAT
- venturebeat.com/security/axios-npm-supply-chain-attack-rat-maintainer-token-2026: Attacker bypassed OIDC trusted publishing because a token was still accepted
- advisories last24Months: 51 advisories in 24 months, several rated HIGH
- scorecard score: 7.1; Code-Review 5, SAST 1, Fuzzing 0
- npm dependencies: Only 4 runtime dependencies
GPT-6.2 Sol: 5.9, likely 4.7 to 7.2
Two malicious npm releases were removed within three hours in March 2026, and npm records GitHub Actions trusted publishing and build provenance for 1.21.1. Axios fixed recent high-severity issues in 1.20.0 and updated a vulnerable dependency in 1.21.1. The MIT licence is permissive, and the package has four direct dependencies. A single listed npm maintainer and weak Scorecard results for branch protection, review, fuzzing, and static analysis leave meaningful uncertainty.
- github.com/axios/axios/issues/10636: Postmortem records the compromise, takedown timeline, and collaborator response.
- stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan: Independent investigation confirms two malicious npm releases.
- registry.npmjs.org/axios/latest: Confirms trusted CI publishing, provenance, MIT licence, four dependencies, and one listed maintainer.
- advisories last24Months and recent: 51 advisories in 24 months, including recent high-severity adapter issues.
- github.com/axios/axios/security/advisories/GHSA-r4gj-5m52-g5wh: Records 1.20.0 as the patched version for a high-severity redirect issue.
- github.com/axios/axios/releases/tag/v1.21.1: Raises the minimum follow-redirects version to fix a published CVE.
- scorecard score and checks: 7.1 overall, with branch protection and code review at 5, fuzzing at 0, and static analysis at 1.
Good
- Interceptors, instances, timeouts, cancellation and progress events are built in and well documented.
- The same API works in browsers (XHR or fetch adapter) and Node.js (http adapter).
- Huge ecosystem, so AI coding agents and tutorials produce correct Axios code almost every time.
- Very active: about 500 commits and 24 releases in the past year, with bundled TypeScript types.
Bad
- In March 2026 a hijacked maintainer account published malicious 1.14.1 and 0.30.4 releases that installed a remote access trojan.
- 51 advisories in 24 months, including header-injection, SSRF and prototype-pollution issues in its adapters.
- Bigger bundle than Ky, Wretch or native fetch, which matters in browser and edge code.
- Downloads grow slower than the median, so new projects are moving toward fetch-based tools.
The numbers
- npm downloads, 4 weeks
- 582M +99% in a year
- GitHub stars
- 109k
- Commits, 12 months
- 506
- npm version
- 1.21.1 Nov 2026
- Versions, 12 months
- 24
- Advisories, 24 months
- 51 of 56 ever
- OpenSSF Scorecard
- 7.1 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (axios/axios), npm (axios), OSV and the OpenSSF Scorecard.