unjs/ofetch
😱 A better fetch API. Works everywhere. observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 54
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 17
- age_days: 2093
- days_rel: 305
- days_push: 7
- n_releases_24m: 4
Adoption not part of the score
5349 stars · 189 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ofetch is an improved fetch API client library for JavaScript/TypeScript that works across Node, browsers, and workers. It adds smart JSON parsing, automatic error handling, retries, and convenient request options on top of the native fetch API.
Use cases
- make http requests with automatic parsing
- fetch api that works in node and browser
- handle fetch errors with parsed response bodies
- retry failed http requests automatically
- send request bodies without manual stringification
- download binary responses as blobs or streams
When to choose
- you want a nicer fetch experience with less boilerplate across runtimes
- you need automatic error handling and retries for http calls
- you're building isomorphic JavaScript apps targeting node, browser, and workers
When to avoid
- you need advanced features like interceptors, caching, or graphql that full clients like axios or ky offer differently
- you're happy with native fetch and don't want a dependency
- you need low-level control over every fetch option without wrapper behavior
Facets
library · maturity active
http-client serialization middleware web-development apis developer-tools browser cross-platform bun fetch-wrapper typescript retry -parsing isomorphic nodejs deno
2 sources
- readme: https://github.com/unjs/ofetch · fetched 2026-08-28 · 37227f906fbb
- registry_npm: https://registry.npmjs.org/ofetch · fetched 2026-08-29 · 49b6d9b1c22e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| unjs/ofetch | main | 83 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem