Elestia Open Source Ratings
6.2

ofetch

Reasonable, with limits. 6th of 10 HTTP clients.

ofetch is the small, fetch-based HTTP client from UnJS that runs in browsers, Node, Deno, Bun and edge runtimes, and it powers Nuxt's $fetch. Its API is pleasant and it is used everywhere through Nuxt. But work has nearly stopped: the last stable release was v1.5.1 in November 2025, and the v2 alpha has not moved since October 2025. Outside Nuxt, Ky is the safer pick for new work.

Best for: Nuxt, Nitro and UnJS projects that want the same fetch helper on the server and in the browser.

GitHubnpm

Scores

Overall6.2

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

Claude Opus 5.5: 5.5, likely 4.5 to 6.5

It is a nice, universal fetch wrapper and the natural choice inside Nuxt and Nitro. For new projects outside that stack, the stalled maintenance and the stuck v2 alpha make Ky, which does the same job and is actively released, the better pick. It ranks below Ky and Axios and above unmaintained options like Request and node-fetch.

GPT-6.2 Sol: 6.8, likely 5.7 to 7.9

ofetch is a strong fit for Nuxt and a reasonable standalone choice for teams that want a small client with automatic JSON parsing. For a new project outside Nuxt, Ky has the stronger case on retry controls and maintenance. The recommendation depends on how much the project needs reliable timeouts today and whether stable ofetch releases resume.

Needed by many7.1

How many developers need a tool for this job?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Most web and server projects need to send HTTP requests, and ofetch works on every runtime. Many developers use plain fetch or Axios instead of a wrapper, so the score stays below the top. Nuxt users are its core audience, but nothing ties it to Nuxt.

GPT-6.2 Sol: 7.2, likely 6.1 to 8.2

Sending HTTP requests is routine in web development, and ofetch can serve browsers, servers, and workers without a framework. Its main appeal is to projects that want shared defaults, hooks, and JSON handling. Surveys establish how common HTTP fetching is, while the share of teams that need a wrapper is less clear.

Helps a lot6.9

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

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

The API is clean. It parses JSON for you, retries, has timeouts and hooks, and gives typed responses, and Nuxt's heavy use proves it works. It has no upload progress, its hooks are simpler than Axios interceptors, and fixes have waited for a release for over a year. Ky covers the same ground and is actively improved.

GPT-6.2 Sol: 7.3, likely 6.3 to 8.3

Stable 1.5.1 makes ordinary JSON calls concise, and the v1 examples give coding agents clear patterns for hooks and error handling. A user reproduced a stalled body read despite setting a timeout, and Ky offers richer retry controls. Independent local and mocked tests suggest low overhead, with limited evidence about performance across runtimes.

Holds up over time4.4

Will it still be a good choice in two years?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

In the last year there were 4 commits, all docs or dependency bumps, no releases, and 89 open PRs. The v2 alpha has not moved since October 2025. The release work rests on one very busy maintainer. Nuxt's dependence on it means it will not be abandoned outright, which keeps the score from going lower.

GPT-6.2 Sol: 4.8, likely 3.4 to 6.2

Four commits and no releases in the past year put ofetch well behind Ky and Axios, and a proposed body-timeout fix remains open. Nuxt still relies on it, and its main releaser reports sponsorship for full-time open-source work. The timing of a stable v2 remains unclear, the alpha drops CommonJS, and Nitro's v3 beta has removed ofetch from its runtime dependencies.

Used widely5.6

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Downloads are 106M per 4 weeks, up 8.9x from a year ago, which is above the 4.1 median. But Nuxt and other UnJS tools install it, so most of those downloads are not direct choices. ecosyste.ms counts 7.6k dependent repos, below Ky's 12k and far below Axios. Direct choices are likely in the tens of thousands.

  • npm downloadsLast4Weeks: 106M now vs 12M a year ago
  • dependents: 7,618 repos and 292 packages
  • peers Ky dependentRepos: Ky has 11,957 dependent repos
  • bluesky posts: 6 posts, about the same as Ky and openapi-fetch

GPT-6.2 Sol: 5.1, likely 3.9 to 6.2

Four-week downloads rose from 12.0 million to 106.1 million, an 8.9× increase against the catalog's 4.1× median. Nuxt's bundled installs and automated builds make it hard to tell how much of that growth came from teams choosing ofetch directly. The 7,618 indexed dependent repositories put it below Ky and far below Axios, and six Bluesky posts suggest modest public attention.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 8.9× year-over-year growth against a 4.1× benchmark.
  • dependents and peers dependentRepos: 7,618 repositories and 292 packages. Ky has 11,957 indexed repositories and Axios has 453,457.
  • github stars and bluesky posts: 5,375 stars and six Bluesky posts.
  • nuxt.com/docs/4.x/api/utils/$fetch: Nuxt users can receive ofetch through the framework.
Vouched for6.1

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 4.5 to 7.0

Nuxt builds its $fetch on ofetch, so it runs in production at large scale. Independent comparisons in 2026 recommend it for universal or Nuxt projects. Survey data and independent benchmarks are missing, and most of the backing comes from the same ecosystem that makes it.

GPT-6.2 Sol: 6.2, likely 5.0 to 7.4

Nuxt's use of ofetch for `$fetch` is the strongest endorsement, and Hey API offers it as a transport for generated clients. Independent measurements and a developer's report of switching for better TypeScript ergonomics add support. The performance tests cover small workloads, and the surveys reviewed give little direct evidence about ofetch satisfaction.

Safe7.4

How safe is it to depend on?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

OSV lists no advisories, the licence is MIT, and it has three small dependencies from UnJS (v2 drops to zero). There is no Scorecard, and releases seem to come from one maintainer. Slow releases also mean any future fix could take long to ship.

GPT-6.2 Sol: 7.2, likely 5.9 to 8.4

The MIT license is permissive, the stable package has three runtime dependencies, and OSV lists zero advisories for ofetch. The v1 release script runs tests before publishing, and public package records list a single maintainer. The lack of a published security policy or Scorecard result and the uncertainty around npm artifact provenance widen the range.

Good

  • Small fetch wrapper that parses JSON and sets headers for you, with retries, timeouts and onRequest/onResponse hooks built in.
  • Works the same in browsers, Node, Deno, Bun and edge workers.
  • Typed responses through generics, and an MIT licence with only three small dependencies.
  • Nuxt ships it as $fetch, so its use in production is broad and well tested.

Bad

  • No stable release since v1.5.1 (November 2025), and almost no code commits in the last year.
  • The v2 rewrite (ESM-only, zero dependencies) has been stuck in alpha since October 2025.
  • 89 open pull requests pile up, and users ask in public for fixes, such as one for Bun, to be released.
  • Has no upload progress, and its hooks are less flexible than Axios interceptors.

The numbers

npm downloads, 4 weeks
106M ×8.9 in a year
GitHub stars
5.4k
Commits, 12 months
4
npm version
1.5.1 Nov 2025
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Nuxt installs it, which gives it many of its downloads.

Read on 21 November 2026 from GitHub (unjs/ofetch), npm (ofetch), 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