unjs/ofetch
Some data may be outdated — see provenance labels.
😱 A better fetch API. Works everywhere. observed · 2026-10-02
Health v2 · maintenance only
80/100
- Activity 97
- Release rhythm 47
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 3
- age_days: 2141
- days_rel: 353
- days_push: 19
- n_releases_24m: 2
Adoption not part of the score
5363 stars · 198 forks observed · 2026-10-02
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-10-02 · 37227f906fbb
- registry_npm: https://registry.npmjs.org/ofetch · fetched 2026-08-29 · 49b6d9b1c22e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| unjs/ofetch | main | 80 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem