openapi-fetch
Lightweight type-safe fetch client for OpenAPI schemas, 6kb minified.
HTTP clients and networking npm MIT
How openapi-fetch is used
openapi-fetch is a dependency in 7 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 24 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Axios (473 projects). Projects that use it most often also use Vitest (87.5%), OpenAPI TypeScript (83.3%), TanStack Query (70.8%).
openapi-fetch popularity over time
Gid Score 57: downloads 81, use in agent projects 30, GitHub stars 47, downloads trend 64 (each 0-100). How it is calculated.
Often used with openapi-fetch
| Vitest | 87.5% of openapi-fetch projects · 4.3× more than average |
|---|---|
| OpenAPI TypeScript | 83.3% of openapi-fetch projects · 272.3× more than average |
| TanStack Query | 70.8% of openapi-fetch projects · 9.6× more than average |
| tsx | 70.8% of openapi-fetch projects · 4.7× more than average |
| Zod | 83.3% of openapi-fetch projects · 3.3× more than average |
| Testing Library | 66.7% of openapi-fetch projects · 6.6× more than average |
| Vite | 70.8% of openapi-fetch projects · 3.6× more than average |
| dotenv | 62.5% of openapi-fetch projects · 4.0× more than average |
From all 24 projects in our scan that use openapi-fetch, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|
Share of public repos configured for each agent that list openapi-fetch as a dependency.
How openapi-fetch is funded
Open Collective: OpenAPI TypeScript
| Received, last 12 months | $1,365 Oct 2025 – Sep 2026 |
|---|---|
| Estimated annual budget | $1,125 Open Collective's estimate |
| Balance | $4,653 |
| Raised since the start | $6,298 · $1,645 paid out |
| Typical month median, last 12 months | $89 · $309 over 24 months |
| Last 12 months vs the 12 before | -69% |
| Contributors, last 12 months | 8 |
Top company backers all time
| nanabit | $1,800 since Jul 2024 |
|---|
Jul 2024Sep 2026
Money by month. First money received in Jul 2024. The typical month is the median: one big one-off donation does not move it.
The same collective is named by 1 more tool in our catalog: OpenAPI TypeScript.
USD after payment processor fees, as Open Collective reports it; fiscal host Open Source Collective. Source
Ways to fund openapi-fetch
Open Collective
As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.
Install
| Package | npm install openapi-fetch |
|---|---|
| Main stacks | Next.js (14), TypeScript / JavaScript (8), Python (1), React Native / Expo (1) |
| Example projects | lobehub/lobehub, vual/lobe-chat-pro, adeze/raindrop-mcp, isaccanedo/lobe-chat, kingston/outline-sync |
Alternatives to openapi-fetch
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside openapi-fetch are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
89 | 473 (9.8%) | 66.6M | 109K | MIT |
| undici npm High-performance HTTP/1.1 client for Node.js and Deno. |
72 | 101 (2.1%) | 133M | 7,717 | MIT |
More in HTTP clients and networking: Requests httpx ws aiohttp websockets redis (Python) postgres node-fetch