ofetch
A better fetch for Node.js, browsers and workers, with retries and JSON parsing.
3. Used by agents' projects
Dependency in 11 public GitHub projects set up for AI coding agents that we scanned (0.2%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What ofetch does
A better fetch for Node.js, browsers and workers, with retries and JSON parsing.
ofetch popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How ofetch is used
- ofetch joined the catalog on its public numbers (27,318,852 downloads a week on npm and 5,368 GitHub stars), not on our project count: it is a dependency in 14 public GitHub projects of our scan, 11 of them set up for AI coding agents.
- The most used alternative in our scan is Axios (471 projects).
- Projects that use it most often also use Vitest (92.9%), Vite (78.6%), Zod (85.7%).
By coding agent
Often used with
More about ofetch
More in HTTP clients and networking
Alternatives
ofetch This page
Promise-based HTTP client for browser and Node.js with interceptors.
Bring the Fetch API to Node.js for making HTTP requests.
Get started
Install it.
npm install ofetchNo step-by-step start for ofetch yet: we have not written its hand-checked card.