Elestia Open Source Ratings
7.8

Ky

A strong pick. 2nd of 10 HTTP clients.

Ky is a small HTTP client with no dependencies, built on the Fetch API. It adds retries, timeouts, hooks, JSON shortcuts and errors for non-2xx responses. Version 2 came out in 2026 and added total timeouts and response validation through Standard Schema. It is one of the best fetch wrappers for new browser, edge, Bun, Deno and Node 22+ projects.

Best for: Teams that want a small fetch wrapper with retries, hooks and typed, validated JSON on any modern runtime.

GitHubnpm

Scores

Overall7.8

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

Ky is one of the strongest fetch-based clients today. It is small, well typed and closely maintained, and v2 added validation and better timeouts. It falls short of default status because Axios has far more ecosystem and AI-agent familiarity, and because Ky's download growth is below the median. The v2 breaking changes and the Node 22 floor also add cost for some teams.

GPT-6.2 Sol: 8.0, likely 6.9 to 8.9

Ky is a strong pick for modern projects that want shared Fetch defaults, retries, and typed responses without extra runtime dependencies. Axios is a better fit when browser upload progress must work without Fetch request streaming, and undici is a better fit for direct control of Node.js connections. Active releases support the recommendation, while concentrated publishing and below-baseline download growth limit confidence in its longer-term position.

Needed by many7.4

How many developers need a tool for this job?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Most JS/TS projects send HTTP requests, and Ky works in browsers, Node 22+, Bun, Deno and edge runtimes. Native fetch is now built in everywhere, so some developers need no wrapper at all, and that keeps the score below the top.

GPT-6.2 Sol: 6.8, likely 5.7 to 7.9

HTTP requests are routine in web apps and service integrations, and Ky works in modern browsers, Node.js 22 and later, Bun, and Deno. Built-in Fetch already covers simple calls, so Ky's appeal is strongest where teams need shared defaults and policies. The available survey covers frontend developers and predates Ky 2, leaving the share of teams that need those features uncertain.

Helps a lot8.2

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Ky 2 has unified hooks, a totalTimeout option, retries limited to real network errors, baseUrl/prefix handling and Standard Schema validation in .json(). The types are strong and the API is small. It lacks Axios-style upload progress on older stacks and has fewer plugins. Users reported some v2 regressions, such as beforeError not being able to read the body and problems with custom fetch, and these were patched quickly.

GPT-6.2 Sol: 8.4, likely 7.2 to 9.3

Ky 2.2.0 provides configurable retries, a total timeout, distinct error types, and optional runtime validation for JSON responses. The TypeScript declarations and versioned examples help coding agents use the current hook signatures and URL options. A comparison found loopback overhead in the 2.1 series, and a separate test passed all ten resilience scenarios Ky supported. Both tests predate 2.2, and upload progress still depends on the runtime and connection.

Holds up over time7.8

Will it still be a good choice in two years?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

The project is very active, with 176 commits, 9 releases and a release in October 2026. Two long-time maintainers, Sindre Sorhus and Seth Holladay, keep the issue queue near zero. The ecosystem is moving towards fetch-native clients, which favours Ky. The work is funded through sponsorship rather than by a company, and v2 was a sizeable breaking upgrade, so the score stays below 9.

  • github commitsLastYear: 176 commits in the last year
  • github releasesLastYear: 9 releases; latest v2.2.0 on 2026-10-09
  • github openPullRequests: 0 open PRs, 254 merged
  • infoq.com/news/2026/06/ky-2-revamp-axios: Major v2 revamp with a migration guide

GPT-6.2 Sol: 7.5, likely 6.1 to 8.6

Ky recorded 176 commits and nine GitHub releases in the past year, and a maintainer answered an empty-body report the next day. The v2 migration guide covers real changes to hooks, URL options, and how `.json()` handles empty responses. Recent releases are concentrated with one maintainer, and sponsorship income and backup publishing access are unclear.

Used widely5.5

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Ky has about 39.6M downloads per 4 weeks, up 2.8x from a year ago. That is below the 4.1 median, so it is losing ground relative to the field, though it grew faster than Axios and Got. Its ~12k dependent repos beat ofetch's but are far below Axios's 453k. Direct choices are likely in the tens of thousands of projects, at the upper end of that band.

  • npm downloadsLast4Weeks: 39.6M vs 14.2M a year ago (2.8x)
  • medianDownloadsRatio: Median 4.1, so growth is below median
  • dependents: 11,957 repos and 468 packages
  • github stars: 17.2k stars, the third most in the peer set

GPT-6.2 Sol: 5.0, likely 3.9 to 6.2

Ecosyste.ms found 11,957 dependent repositories, well behind Axios and ahead of ofetch and Wretch in the same index. Downloads grew from 14.2 million to 39.6 million, about 2.80×, which trails the 4.1× catalog baseline and implies a loss of relative ground. Ky has 17,184 stars and ten Bluesky posts, while automated installs and incomplete repository coverage make the number of direct choices uncertain.

  • dependents.repos, dependents.packages, peers: 11,957 indexed repositories and 468 packages, versus 453,457 Axios repos, 7,618 ofetch repos, and 556 Wretch repos.
  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 39.6 million versus 14.2 million, or 2.80× against a 4.1× baseline.
  • github.stars, bluesky.posts, peers: 17,184 stars and ten Bluesky posts, compared with 83 posts for Axios and six for ofetch.
  • raw.githubusercontent.com/sindresorhus/ky/v2.2.0/readme.md: Documents CDN imports, which npm download counts miss.
Vouched for6.1

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Independent comparisons recommend Ky as the lean, fetch-native alternative to Axios, and InfoQ covered the v2 release. Known developers such as TkDodo point people to it. There is little public evidence of named production users, and Ky has no survey satisfaction data of its own, so the score stays mid-range.

GPT-6.2 Sol: 6.1, likely 4.7 to 7.4

Tailbits describes using Ky in its widget SDK, and Esri lists an older version in ArcGIS Monitor 2023. Developers report using configured Ky clients for instrumentation, and an independently run test found good retry and cancellation behavior in 2.1. The available survey predates v2, and public evidence of large deployments on the current release is thin.

Safe7.7

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Ky has zero dependencies, no advisories ever and an MIT licence, so its attack surface is small. The OpenSSF Scorecard is 4.4, with zero scores for code review, branch protection, pinned dependencies and token permissions. Publishing rests with a few maintainer accounts.

  • npm dependencies: 0 dependencies
  • advisories total: No known advisories
  • scorecard score: 4.4; Code-Review and Branch-Protection at 0
  • npm license: MIT

GPT-6.2 Sol: 7.4, likely 6.1 to 8.6

Ky has zero runtime dependencies, a permissive MIT licence, and a published security policy. The supplied OSV record and GitHub both show zero advisories. OpenSSF Scorecard gives it 4.4 out of 10, with zeroes for code review, branch protection, and workflow token permissions. The package declares an npm release script, and public evidence leaves publishing access and provenance uncertain.

Good

  • About 4-5 KB gzipped with zero dependencies, far lighter than Axios.
  • Built-in retries, per-attempt and total timeouts, hooks, and HTTPError with pre-parsed error data.
  • .json() accepts Standard Schema validators such as Zod or Valibot for typed, checked responses.
  • Very actively maintained: 1 open issue, 9 releases and 176 commits in the last year.

Bad

  • Ky 2 broke hook signatures, renamed prefixUrl, made .json() throw on empty bodies and dropped Node below 22.
  • Needs native fetch, so it does not suit legacy browsers or old Node versions.
  • Its ecosystem of guides, plugins and AI training examples is much smaller than Axios's.
  • The OpenSSF Scorecard is low (4.4), with no branch protection or required code review.

The numbers

npm downloads, 4 weeks
40M ×2.8 in a year
GitHub stars
17k
Commits, 12 months
176
npm version
2.2.0 Oct 2026
Versions, 12 months
8
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
4.4 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (sindresorhus/ky), npm (ky), OSV and the OpenSSF Scorecard.

HTTP clients

  1. 8.3undici
  2. 7.8Ky
  3. 7.3Axios
  4. 7.2Got
  5. 6.2Wretch
  6. 6.2ofetch
  7. 5.2SuperAgent
  8. 3.4openapi-fetch
  9. 2.8node-fetch
  10. 1.3Request
Compare all 10 on six scores