# sindresorhus/ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

Repository: https://github.com/sindresorhus/ky
Canonical: https://ross.abutalabs.com/products/ky
Language: TypeScript
License: MIT
License Family: permissive
Topics: fetch, whatwg-fetch, http-client, http-request, request, npm-package, tiny, json, rest, js, javascript
Last push: 2026-08-26T18:19:55+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 80, longevity 100
- inputs: {"age_days": 2920, "days_push": 7, "days_rel": 134, "gap_med": 17.5, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17044, forks 489 (observed 2026-08-28T04:11:17.627720+00:00)

## What it is
Ky is a tiny, zero-dependency JavaScript HTTP client built on the Fetch API, offering a simpler API with method shortcuts, automatic retries, timeouts, JSON handling, hooks, and TypeScript support. It works in modern browsers, Node.js, Bun, and Deno.

## Use cases
- make http requests in javascript without boilerplate
- wrap fetch with retries and timeouts
- post  to a rest api
- treat non-2xx responses as errors automatically
- create http client instances with custom defaults
- track upload and download progress
- validate api responses with zod

## When to choose
- you want a lightweight axios alternative built on fetch
- you need retries, timeouts, or hooks on top of fetch
- you target modern browsers, Node.js, Bun, or Deno
- you want better TypeScript ergonomics than raw fetch

## When to avoid
- you need to support legacy browsers without fetch
- you need interceptors or features only axios provides
- you need request cancellation via AbortController wrappers with advanced semantics

## Facets
- artifact type: library
- maturity: stable
- function: http-client
- domain: web-development, apis, developer-tools
- platform: browser, bun, cross-platform
- tags: fetch-api, rest, typescript, zero-dependency, retry, timeout, nodejs, deno

## Member repositories
- sindresorhus/ky (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:17.627720+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:03:31.192569+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/ky (fetched 2026-08-28T04:11:17.627720+00:00, sha a1de62aeaf5f)
  - registry_npm: https://registry.npmjs.org/ky (fetched 2026-08-29T08:01:51.142208+00:00, sha beb9f1eb21ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
