ky

by sindresorhus · Web

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

New0 ratings17,056 starsActive
WebDeveloper ToolTypeScriptfetch
↓ Download v2.1.0GitHub⚑ Report
ky — image 1

About this project

Ky is a tiny and elegant HTTP client based on the Fetch API Ky targets modern browsers, Node.js, Bun, and Deno. It's just a tiny package with no dependencies. Benefits over plain fetch — Simpler API — Method shortcuts (ky.post()) — Treats non-2xx status codes as errors (after redirects) — Retries failed requests — JSON option — Timeout support — Upload and download progress — Base URL option — Instances with custom defaults — Hooks — Response validation with Standard Schema (Zod, Valibot, etc.) — TypeScript niceties (e.g., .json() supports generics and defaults to unknown, not any) Install [!NOTE] This readme is for the next version of Ky. For the current version, click…

Technologies

TypeScripthttp-clientfetchhttp-request

Project health

Actively maintained
Last update3 days ago
Contributors120
Latest releasev2.1.0
Open issues & PRs0
LicenseMIT
On GitHubsince 2018

GitHub

17,056
stars
494
forks
120
contributors
0
open issues & PRs
TypeScript
language
3 days ago
last commit
View on GitHub ↗All releases ↗

Reviews

out of 5 · 0 ratings
★★★★★
0%
★★★★
0%
★★★
0%
★★
0%
0%
Sign in to write a review
No reviews yet
Be the first to review ky.

Built by

sindresorhus
Imported from GitHub · not yet claimed on GitPalace
View developer pageSign in with GitHub to claim

Maintain sindresorhus/ky? Claiming verifies admin access through your GitHub account and gives you control of this listing.

You might also like