# Ky: 7.8 out of 10

A strong pick. 2nd of 10 in [HTTP clients](https://elestia.ai/opensource/http-clients/index.md).

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.

## Scores

- **Overall: 7.8** (likely 6.7 to 8.7)
  - Claude Opus 5.5 (7.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): 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 many: 7.4** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (8.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): 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 lot: 8.2** (likely 7.1 to 9.2)
  - Claude Opus 5.5 (8.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): 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 time: 7.8** (likely 6.6 to 8.8)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.5): 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 widely: 5.5** (likely 4.5 to 6.6)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.0): 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.
- **Vouched for: 6.1** (likely 4.9 to 7.2)
  - Claude Opus 5.5 (6.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): 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.
- **Safe: 7.7** (likely 6.6 to 8.8)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (7.4): 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

- Downloads, 4 weeks: 40M
- In a year: ×2.8
- GitHub stars: 17k
- Commits, 12 months: 176
- Last npm release: Oct 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/sindresorhus/ky
- npm: https://www.npmjs.com/package/ky

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
