TypeScript Fetch

Open-source TypeScript projects categorized as Fetch

Top 23 TypeScript Fetch Projects

  1. TanStack Query

    πŸ€– Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

    Project mention: A Clean React Folder Structure | dev.to | 2026-05-09

    queries/ If you're using TanStack Query (React Query), this is where you'd keep your query and mutation hooks. It helps to organize your data-fetching logic and caching in one place.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. SWR

    React Hooks for Data Fetching

    Project mention: GraphQL vs REST: 18 Claims Fact-Checked with Primary Sources (2026) | dev.to | 2026-04-17

    Historically, measurements around 40–45 KB gzipped were reasonable for older Apollo Client bundles , but recent v4.x releases have reduced bundle size and made features more modular. Regardless, that is not a cost of GraphQL itself. The same concern exists for feature‑rich REST clients like SWR or TanStack Query . It is a misleading comparison because both REST and GraphQL can be implemented with nothing more than fetch(). Therefore, the theoretical baseline for both styles is 0 KB.

  4. ky

    🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

    Project mention: Our response to the Axios developer tool compromise | news.ycombinator.com | 2026-04-22

    I usually reach for ky these days since it's an extremely lightweight wrapper over `fetch` - basically just adds a few niceties

    https://github.com/sindresorhus/ky

    From the readme:

    - Simpler API

    - Method shortcuts (ky.post())

    - Treats non-2xx status codes as errors (after redirects)

    - Retries failed requests

    - JSON option

    - Timeout support

    - Upload and download progress

    - Base URL option

    - Instances with custom defaults

    - Hooks

    - Response validation with Standard Schema (Zod, Valibot, etc.)

    - TypeScript niceties (e.g., .json() supports generics and defaults to unknown, not any)

    Of course, this is only for projects where I have to make a lot of HTTP requests to a lot of different places where these niceties make sense. In most cases, we're usually using a library generated from an OpenAPI specification and fall back to `fetch` only as an escape hatch.

  5. graphql-yoga

    🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.

  6. wretch

    A tiny wrapper built around fetch with an intuitive syntax. :candy:

  7. openapi-ts

    πŸŒ€ OpenAPI to TypeScript codegen. Production-grade SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.

    Project mention: What Is DaloyJS? A Beginner-Friendly Tour of a Contract-First TypeScript Framework | dev.to | 2026-05-30

    Once your API has an OpenAPI spec, you can run one command and get a fully typed fetch client out of it (DaloyJS uses Hey API for this). Your frontend can call your backend with full autocomplete and type checking, and that client regenerates whenever your contract changes. Less guessing, fewer "what does this endpoint return again?" moments.

  8. warp-drive

    WarpDrive is the lightweight data library for ambitious web apps β€” universal, typed, reactive, and ready to scale.

  9. use-http

    🐢 React hook for making isomorphic http requests

  10. data-client

    Async State Management without the Management. REST, GraphQL, SSE, Websockets

  11. up-fetch

    Advanced fetch client builder

  12. hyper-fetch

    ⚑ Fetching and realtime data exchange framework.

    Project mention: 5 years ago I started to work on the next-gen fetcher, here it is | news.ycombinator.com | 2025-07-14

    About five years ago, I began developing what I hoped would be the data fetcher of the future - HyperFetch. It was a long and challenging journey, but I believe it has turned out to be successful and I hope it will be useful to the community.

    So what is HyperFetch?

    In short, it’s a data-fetching library. If you take Axios and TanStack Query and combine them into one, you get HF. The name doesn’t imply faster network requests. My goal was to speed up development, improve usability, and eliminate repetitive, tedious boilerplate. It should be quick to write and easy to maintain, while also scaling well.

    I’ve spent most of my career building UI kits, reusable architectures, and components to empower developers at the organizations I’ve worked with. After thousands of hours and many years, I feel I’ve poured all that experience into this library.

    Along this path I was inspired by many - trpc, tanstack query, swr, rtk, axios, shadcn - but I think my approach is a little different. I integrated the hooks directly with the fetching logic to give them a deeper understanding of the data flow and structure.

    There are good reasons to remain agnostic and provide very open-ended hooks, like in tanstack query or swr. But there are also many reasons why a more tightly coupled system like HyperFetch can be powerful. We know the expected data structure, can track upload/download progress, and even support real-time communication which I do with dedicated "sockets" package.

    You’ll find more reasons and examples of how HF can improve your workflows in the comments. I’ll leave you with our brand-new docs to explore!

    https://hyperfetch.bettertyped.com/

  13. vue-query

    Hooks for fetching, caching and updating asynchronous data in Vue

  14. hmpl

    🐜 HMPL.js is a lightweight server-oriented template language for JavaScript. Fetch HTML, render it safely, and keep apps dynamic, modern, and small.

    Project mention: Will HMPL.js reach 1k stars before the new year? | news.ycombinator.com | 2025-12-07
  15. react-fetching-library

    Simple and powerful API client for react πŸ‘ Use hooks or FACCs to fetch data in easy way. No dependencies! Just react under the hood.

  16. react-infinite-scroll-hook

    React hook for creating infinite scroll components.

  17. FakeRest

    Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data.

  18. xior

    A liteweight fetch wrapper with plugins support and similar API to axios.

    Project mention: axios VS xior - a user suggested alternative | libhunt.com/r/axios | 2026-02-21
  19. oauth2-client

    OAuth2 client for Node and browsers (by badgateway)

  20. react-suspense-fetch

    [NOT MAINTAINED] A low-level library for React Suspense for Data Fetching

  21. sswr

    πŸ”₯ Svelte stale while revalidate (SWR) data fetching strategy

  22. fetcher-ts

    Type-safe wrapper around Fetch API

  23. fetch-api-data-action

    🚚 GitHub action for handling authenticated API requests, allowing you to save the data from the request into your workspace as an environment variable and a .json file.

  24. glacier

    Keep your data fresh (by hazae41)

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

TypeScript Fetch discussion

Log in or Post with

TypeScript Fetch related posts

  • Hey API – OpenAPI to TypeScript in Seconds

    1 project | news.ycombinator.com | 18 May 2026
  • A Clean React Folder Structure

    1 project | dev.to | 9 May 2026
  • Our response to the Axios developer tool compromise

    3 projects | news.ycombinator.com | 22 Apr 2026
  • ky + p-limit: Concurrency Control With Built-in Retry for Batch Requests

    2 projects | dev.to | 19 Apr 2026
  • Decorating Promises Without Breaking Them

    2 projects | dev.to | 10 Apr 2026
  • Prerelease of Ky 2.0

    2 projects | news.ycombinator.com | 31 Mar 2026
  • A Simple Like System for a Static Blog

    1 project | dev.to | 20 Mar 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 17 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more β†’

Index

What are some of the best open-source Fetch projects in TypeScript? This list will help you:

# Project Stars
1 TanStack Query 49,778
2 SWR 32,400
3 ky 16,923
4 graphql-yoga 8,522
5 wretch 5,174
6 openapi-ts 4,944
7 warp-drive 3,146
8 use-http 2,303
9 data-client 2,032
10 up-fetch 1,402
11 hyper-fetch 1,331
12 vue-query 1,116
13 hmpl 959
14 react-fetching-library 621
15 react-infinite-scroll-hook 518
16 FakeRest 457
17 xior 446
18 oauth2-client 337
19 react-suspense-fetch 295
20 sswr 291
21 fetcher-ts 132
22 fetch-api-data-action 132
23 glacier 127

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?