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.
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.
- github releasesLastYear: No releases in a year
- peers Ky commitsLastYear: Ky has 176 commits and a release in Oct 2026
- pkgpulse.com/guides/api-client-libraries: Recommended, but with a smaller community outside Nuxt
- github.com/unjs/ofetch/commits/main: Only maintenance commits since Oct 2025
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.
- nuxt.com/docs/4.x/api/utils/$fetch: Built-in fit for Nuxt applications.
- github.com/unjs/ofetch/issues/620: Stable timeout can miss a stalled response body.
- raw.githubusercontent.com/sindresorhus/ky/v2.1.0/readme.md: Ky documents richer retry controls.
- github releasesLastYear and peers Ky latestPublishedAt: ofetch had no releases over the past year. Ky published in October 2026.
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.
- pkgpulse.com/guides/api-client-libraries: Runs in browsers, Node, Deno, Bun and edge runtimes
- github description: "A better fetch API. Works everywhere."
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.
- tsh.io/state-of-frontend: 82.1% reported using the browser Fetch API.
- raw.githubusercontent.com/unjs/ofetch/v1/README.md: Documents browser, Node.js, and worker support.
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.
- pkgpulse.com/guides/api-client-libraries: Lists the features; weaknesses are no upload progress and less flexible interceptors
- bsky.app/profile/w3cj.com/post/3mp2bwgwpe22c: A user moved from redaxios to ofetch for better TypeScript types
- bsky.app/profile/scooper.bsky.social/post/3lzw4e5prjk2l: A user asks for a release to ship a Bun fix
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.
- raw.githubusercontent.com/unjs/ofetch/v1/README.md: Documents JSON handling, typed calls, hooks, and error data.
- github.com/unjs/ofetch/issues/620: User reproduced a body read hanging on 1.5.1.
- raw.githubusercontent.com/sindresorhus/ky/v2.1.0/readme.md: Ky supports server-directed retry delays and exponential backoff.
- shoppercove.com/blog/ofetch-vs-ky: One browser build measured 4.1 KB gzipped against Ky's 9.8 KB.
- raw.githubusercontent.com/haihv/valifetch/v0.8.0/README.md: Mocked Node.js benchmark measured low overhead for JSON calls.
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.
- github commitsLastYear: 4 commits, 0 releases in the last year
- github openPullRequests: 89 open PRs against 214 merged
- github.com/unjs/ofetch/commits/main: Commits since Oct 2025 are only docs and dependency updates
- github.com/unjs/ofetch/releases: v2.0.0-alpha.3 is the last v2 build; v1.5.1 is the latest stable
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.
- github commitsLastYear, releasesLastYear, openPullRequests: Four commits, zero releases, and 89 open pull requests.
- peers Ky and Axios commitsLastYear and latestPublishedAt: 176 and 506 commits respectively, with recent releases.
- github.com/unjs/ofetch/releases: One visible releaser and an ESM-only v2 alpha.
- github.com/unjs/ofetch/pulls: Body-timeout fix proposals remain open.
- github.com/sponsors/pi0: Main releaser reports Vercel and community sponsorship.
- nuxt.com/docs/4.x/api/utils/$fetch: Nuxt still uses ofetch for its built-in HTTP helper.
- github.com/nitrojs/nitro/releases/tag/v3.0.260903-beta: Nitro v3 beta removed ofetch as a runtime dependency.
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.
- nuxt.com/docs/4.x/api/utils/dollarfetch: Nuxt exposes ofetch as its global $fetch
- pkgpulse.com/guides/api-client-libraries: Says "for new projects: ofetch"
- reintech.io/blog/axios-vs-fetch-vs-ky-http-client-comparison-2026: A 2026 comparison of the fetch wrappers
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.
- nuxt.com/docs/4.x/api/utils/$fetch: Nuxt builds its standard HTTP helper on ofetch.
- heyapi.dev/docs/openapi/typescript/clients/ofetch: Hey API offers an ofetch client for generated SDKs.
- shoppercove.com/blog/ofetch-vs-ky: Independent comparison measured bundles, local GETs, and error behavior.
- bluesky top, w3cj.com post: Developer reported switching after TypeScript trouble with redaxios.
- tsh.io/state-of-frontend: Survey covers native Fetch, Axios, and Ky and omits ofetch.
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.
- advisories total: 0 advisories
- npm dependencies: 3 dependencies
- scorecard: No OpenSSF Scorecard data
- socket.dev/npm/package/ofetch/overview/2.0.0-alpha.3: The v2 alpha has no dependencies
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.
- npm license and dependencies, advisories total, scorecard: MIT, three dependencies, zero listed OSV advisories, and no Scorecard result.
- raw.githubusercontent.com/unjs/ofetch/v1/package.json: The v1 release script runs tests before npm publish.
- npm.io/package/ofetch/dependency: Public package metadata lists one maintainer.
- github.com/unjs/ofetch/security: GitHub reports no security policy or published advisories.
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.