# Wretch: 6.2 out of 10

Reasonable, with limits. 5th of 10 in [HTTP clients](https://elestia.ai/opensource/http-clients/index.md).

Wretch is a tiny fetch wrapper with zero dependencies, a chainable API, good error-handling shortcuts and optional add-ons. It is a sound choice, but it is mostly one person's project and it is losing ground to Ky and ofetch, which do the same job with larger communities.

**Best for:** Developers who want a very small, dependency-free fetch wrapper with a chained API and per-status error catchers.

## Scores

- **Overall: 6.2** (likely 5.2 to 7.3)
  - Claude Opus 5.5 (6.0): Wretch is a well-made, tiny, dependency-free fetch wrapper. The people who use it like it. But Ky does the same job with more users, more maintainers and faster growth, and ofetch leads for universal and Nuxt projects. Its small community and single maintainer make it a reasonable but secondary pick for new work.
  - GPT-6.2 Sol (6.4): Wretch is worth choosing when chainable status handlers and reusable request configuration make application code easier to read. Ky is the stronger general-purpose fetch wrapper because it has more active maintenance and handled retry cancellation and deadlines better in the available comparison. Wretch’s slower release pace and limited production evidence for version 3 make its long-term fit less certain.
- **Needed by many: 6.9** (likely 5.8 to 8.0)
  - Claude Opus 5.5 (7.0): Most web and Node developers send HTTP requests, and many want something nicer than raw fetch. Wretch runs in browsers, Node, Deno and Bun. Its job is a little narrower than the category because many people now use plain fetch or a framework's own client.
  - GPT-6.2 Sol (6.7): Sending HTTP requests is common in both browser apps and server code. Wretch works across modern browsers, Node.js 22+, Deno and Bun without tying users to a framework. Built-in fetch already covers simple calls, and the survey gives little basis for estimating how many teams need Wretch’s extra features.
- **Helps a lot: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): The API is small and well designed, with typed catchers, middleware, add-ons and progress tracking, and it pulls in no dependencies. Version 3 tidied up the configuration and typed custom errors. Recent patches fixed type-inference and body-reading bugs, which shows some rough edges. It is about as capable as Ky, but agents and docs give less help with it.
  - GPT-6.2 Sol (7.3): The small core handles JSON and HTTP errors cleanly, and the TypeScript types preserve fallback values from status handlers. The documentation gives coding agents clear examples for common requests and middleware. In an October Node.js benchmark run by the maintainer of another fetch client, Wretch passed basic retry and timeout cases but failed three retry combinations, including cancellation during backoff and a total deadline. That benchmark covers only part of the library.
- **Holds up over time: 5.4** (likely 3.7 to 6.5)
  - Claude Opus 5.5 (5.0): There were six releases and 38 commits in the last year, and only 2 issues are open. However, one unpaid maintainer does almost all the work, the last release was in June 2026, and the Scorecard Maintained check is 0. A major version that broke code shipped in late 2025, so another rewrite or a slowdown is plausible.
  - GPT-6.2 Sol (5.7): Wretch shipped six releases in the past year and fixed a reported error-handling regression on the day it was filed. The last release was five months ago, some pull requests have waited months, and Ky has been more active. Version 3 changed runtime requirements and several APIs, and a later patch changed type inference. Recent releases depend heavily on one maintainer who works on open source in their spare time and accepts sponsorship.
- **Used widely: 3.6** (likely 2.6 to 4.8)
  - Claude Opus 5.5 (4.0): It has about 1.3M downloads per 4 weeks, around 330K a week, and 556 dependent repos. Ky has about 30 times that use. Its year-over-year ratio of 1.94 is far below the 4.1 median and below Ky and ofetch, so it is losing ground. Bluesky and Hacker News attention is nearly zero.
  - GPT-6.2 Sol (3.2): Ecosyste.ms found 556 dependent repositories and 107 npm packages, a modest footprint next to Ky’s nearly 12,000 repositories. Four-week downloads rose from 683,000 to 1.33 million, about 1.94 times the prior year, below both Ky’s 2.80 and the catalog median of 4.1. That points to lost relative ground, while automated installs, CDN delivery and incomplete repository coverage leave the number of direct users uncertain.
- **Vouched for: 3.9** (likely 2.7 to 5.7)
  - Claude Opus 5.5 (3.0): No major framework or well-known company is publicly known to build on it. It does not appear in surveys, and I found no independent benchmarks. Independent comparison guides usually recommend Ky or ofetch and often leave Wretch out. The only praise I found is from individual developers in blog posts and one Bluesky post.
  - GPT-6.2 Sol (4.8): Lokalise builds its frontend HTTP client around Wretch 2, and Illumio listed Wretch 2.8 in a shipped Console release. Developers praise the light wrapper and deduplication, and a recent benchmark confirms the basics while exposing retry limits. The strongest adoption examples are for version 2, so confidence in version 3’s production track record remains limited.
- **Safe: 7.1** (likely 5.9 to 8.2)
  - Claude Opus 5.5 (7.0): It has zero runtime dependencies, no advisories ever, and an MIT licence, so the attack surface is small. The OpenSSF Scorecard is weak at 3.6, with little code review, no security policy and broad token permissions. One maintainer controls publishing, and releases are not signed.
  - GPT-6.2 Sol (7.1): Wretch has zero runtime dependencies, a permissive MIT license and no recorded OSV advisories. The latest release used a tag-triggered GitHub Actions workflow that runs Node.js tests before publishing to npm, and the release commit has a verified signature. Recent releases rely on one maintainer, some publish actions use version tags, and the 3.6 OpenSSF Scorecard flags weak code review and a missing security policy.

## Good

- It has zero runtime dependencies and is about 2 KB gzipped. That is smaller than Ky or Axios.
- Per-status catchers such as .unauthorized() and .catcher([401, 403], ...) remove most manual response.ok checks.
- Instances are immutable and composable. Add-ons cover retry, abort, query strings, form data and upload/download progress.
- The TypeScript types are strong. 3.0.x patches keep improving inference of catcher return types.

## Bad

- One maintainer does almost all the work. There has been no release since June 2026, and 12 pull requests are open.
- Version 3 removed global config, renamed .errorType() and requires Node 22+, so upgrading from v2 takes work.
- Its community is much smaller than Ky's or ofetch's. There are few tutorials and few user reports, and AI agents see fewer examples.
- Its download growth lags most peers, so its share of new projects is shrinking.

## The numbers

- Downloads, 4 weeks: 1.3M
- In a year: +94%
- GitHub stars: 5.2k
- Commits, 12 months: 38
- Last npm release: Jun 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/elbywan/wretch
- npm: https://www.npmjs.com/package/wretch

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.
