Hacker ApprovedDepartments

Axios

Ranked 2 of 11 HTTP client libraries by recommenders

Developers recommend it for easier error handling, interceptors and JSON parsing than raw fetch. Main caveat: critics point to malicious npm releases and say native fetch covers much of it.

Developers recommend it for easier error handling, interceptors and JSON parsing than raw fetch. Main caveat: critics point to malicious npm releases and say native fetch covers much of it.

58 people gave an opinion

recommend it
21
criticize it
37
approval share
36%
Each figure is one person. RecommendsCriticizes

Recommended in 5 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 21 people recommend itNeeds 10 or more, met.
  • 0.5 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 5 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Handles errors, interceptors and JSON parsing

    “Because your fetch most likely mishandle errors, lack retries, fail on redirects and is unnecessary verbose for both people and agents.”

    Comment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

    “Also it has interceptors, which allow you to build easily reusable pieces of code”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

    “Axios handles errors better, has interceptors, parses JSON for you”

    Comment from 4 Apr 2026 in “Post Mortem: axios NPM supply chain compromise”
  • Avoids reinventing HTTP client features

    “Every team I've seen write a fetch wrapper eventually reimplements half of axios, just worse.”

    Comment from 2 Apr 2026 in “Replace axios with a simple custom fetch wrapper”

    “Axios is something where you get most of that work done for you by the community for free”

    Comment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

    “Axios and other libraries provide much more for building that sort of framework.”

    Comment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”
  • Better ergonomics than fetch

    “They do the same thing, except axios does it a little better, when it doesn't pwn you.”

    Comment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

    “axios definitely has better ergonomics than fetch, especially for calling APIs.”

    Comment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

    “Axios offers a lot over fetch for all but the simplest use cases”

    Comment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”
  • Long-standing, reliable and well regarded

    “Axios has been one of my favorite libraries for over a decade.”

    Comment from 2 Apr 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

    “Axios... just works. No need to reinvent anything”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

    “Axios has a good reputation.”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

What people warn about

Each mark is one comment

  • Native fetch makes it unnecessary

    “Most of axios' functionality has effectively been promoted to a language feature as `fetch`, but the problem is people don't bother to migrate.”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

    “axios-like packages don't make sense to use any more in a world where AI+vanilla accomplishes the same thing”

    Comment from 22 May 2026 in “Yt-dlp – [Announcement] Bun support is now limited and deprecated”

    “axios is not really needed now given that fetch is part of the JS std lib”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”
  • Supply chain compromise via malicious versions

    “If you ever did a npm install on a project using one of the affected axios versions, your entire system may be compromised.”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

    “We have seen it happen with Axios which is one of the biggest supply chain attacks on the Javascript / Typescript ecosystem”

    Comment from 23 Apr 2026 in “Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain”

    “Axios was just compromised on npm with malicious versions dropping a remote access trojan”

    Comment from 1 Apr 2026 in “Claude Code's source code has been leaked via a map file in their NPM registry”
  • Breaking changes and surprising behavior

    “Libraries that automatically throw errors for status codes in the 400 and 500 ranges are pretty obnoxious”

    Comment from 10 May 2026 in “I Will Not Add Query Strings to Your URLs”

    “I lost respect for Axios when they made a breaking change in a patch release.”

    Comment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

    “Axios tries to adapt itself to fetch, which doesn't always work well.”

    Comment from 31 Mar 2026 in “Prerelease of Ky 2.0”
  • Security vulnerabilities and CVE warnings

    “Any Node.js service that forwards user-controlled JSON through axios can be crashed with a single request.”

    Comment from 27 Mar 2026 in “Taking Down the Internet's Most Popular HTTP Client with a Single JSON Key”

    “I think I had around 800 CVE warnings in relations to Axios in side a Microsoft tool”

    Comment from 9 Oct 2026 in “Cloudflare acquires Deno”

Other HTTP client libraries people recommend

The four most recommended other HTTP client libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Axios compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Requests (Python library)23777%8—Approved
AxiosThis page213736%5——
Go net/http12763%4——
libcurl10283%7—Approved
httpx102231%4——
See all 11 HTTP client libraries, ranked

What people said

40 of the 64 comments that mention it, newest first. Each links to the original comment.

“I think I had around 800 CVE warnings in relations to Axios in side a Microsoft tool”

CriticizesComment from 9 Oct 2026 in “Cloudflare acquires Deno”

“Axios and financial and political decisionmakers”

RecommendsComment from 15 Aug 2026 in “Why tech bosses keep sharing their manifestos about AI”

“it's the laziest of lazy "journalism" for lazy readers and lazy thinkers”

CriticizesComment from 4 Aug 2026 in “AI's Manifesto War”

“we used axios, and using DI it's a drop in replacement”

RecommendsComment from 4 Jun 2026 in “Angular v22”

“axios-like packages don't make sense to use any more in a world where AI+vanilla accomplishes the same thing”

CriticizesComment from 22 May 2026 in “Yt-dlp – [Announcement] Bun support is now limited and deprecated”

“Libraries that automatically throw errors for status codes in the 400 and 500 ranges are pretty obnoxious”

CriticizesComment from 10 May 2026 in “I Will Not Add Query Strings to Your URLs”

“wouldn't habe been hit by the axios vuln”

MixedComment from 1 May 2026 in “The Internet Is Falling Down- CPanel/WHM Authentication Bypass CVE-2026-41940”

“We have seen it happen with Axios which is one of the biggest supply chain attacks on the Javascript / Typescript ecosystem”

CriticizesComment from 23 Apr 2026 in “Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain”

“Taking on a supply chain risk in exchange for reducing developer friction is not worth it”

CriticizesComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Because your fetch most likely mishandle errors, lack retries, fail on redirects and is unnecessary verbose for both people and agents.”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“axios is probably better for that”

MixedComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“People dissing axios probably suffer from other NIH problems too.”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Missing a lot of event hooks that axios/ky give you.”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Axios is something where you get most of that work done for you by the community for free”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Or you can just use axios and an interceptor. Clean, elegant.”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“They do the same thing, except axios does it a little better, when it doesn't pwn you.”

MixedComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Axios offers a lot over fetch for all but the simplest use cases”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Axios and other libraries provide much more for building that sort of framework.”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“axios definitely has better ergonomics than fetch, especially for calling APIs.”

RecommendsComment from 23 Apr 2026 in “OpenAI's response to the Axios developer tool compromise”

“Axios handles errors better, has interceptors, parses JSON for you”

RecommendsComment from 4 Apr 2026 in “Post Mortem: axios NPM supply chain compromise”

“The issue isn't the library itself, but rather the fact that it's popular and provided a large enough attack surface.”

RecommendsComment from 4 Apr 2026 in “Post Mortem: axios NPM supply chain compromise”

“I can not find a single signed recent commit on the axios repo. It is totally yolo mode.”

CriticizesComment from 3 Apr 2026 in “Post Mortem: axios NPM supply chain compromise”

“Axios has been one of my favorite libraries for over a decade.”

RecommendsComment from 2 Apr 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Every team I've seen write a fetch wrapper eventually reimplements half of axios, just worse.”

RecommendsComment from 2 Apr 2026 in “Replace axios with a simple custom fetch wrapper”

“Axios was just compromised on npm with malicious versions dropping a remote access trojan”

CriticizesComment from 1 Apr 2026 in “Claude Code's source code has been leaked via a map file in their NPM registry”

“Axios tries to adapt itself to fetch, which doesn't always work well.”

CriticizesComment from 31 Mar 2026 in “Prerelease of Ky 2.0”

“Axios has a good reputation.”

RecommendsComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“You don't need it, and for special things like retries I could roll my own just fine.”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“I personally had to delete axios a couple of time from my codebase when working with junior devs.”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Node has no need for Axios, native fetch support has been there for years”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“axios is not really needed now given that fetch is part of the JS std lib”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Most of axios' functionality has effectively been promoted to a language feature as `fetch`, but the problem is people don't bother to migrate.”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“If you ever did a npm install on a project using one of the affected axios versions, your entire system may be compromised.”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Convenience is a thing, but it doesn't require a massive library.”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“I lost respect for Axios when they made a breaking change in a patch release.”

CriticizesComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Axios... just works. No need to reinvent anything”

RecommendsComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“It also supports proxies which is important to some corporate back-end scenarios”

RecommendsComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Also it has interceptors, which allow you to build easily reusable pieces of code”

RecommendsComment from 31 Mar 2026 in “Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan”

“Any Node.js service that forwards user-controlled JSON through axios can be crashed with a single request.”

CriticizesComment from 27 Mar 2026 in “Taking Down the Internet's Most Popular HTTP Client with a Single JSON Key”

“Axios is a super prestigious political news site, they dont use AI.”

RecommendsComment from 10 Mar 2026 in “Meta hires duo behind Moltbook”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.