4 Open Source Alternatives to SWR

There are 4 open-source alternatives to SWR in this directory. The most popular is TanStack Query with 44.2k GitHub stars, followed by useHooks-ts(7.8k stars). All are open source, free to use, and many can be self-hosted.

Quick comparison

Open-source alternatives to SWR, ranked by GitHub stars
#ToolStarsLanguageLicense
1TanStack Query

A powerful library for asynchronous state management and server-state utilities with data fetching capabilities for web applications, supporting TS/JS, React Query, Solid Query, Svelte Query, and Vue Query.

44.2kTypeScriptMIT License
2useHooks-ts

A ready-to-use React hook library, written in TypeScript, to simplify your React development and enhance your productivity.

7.8kTypeScriptMIT License
3Suspend-react

A library providing async/await capabilities for React components, streamlining asynchronous operations in your React applications.

1.4kTypeScriptMIT License
4React-promise-suspense

A lightweight React hook for resolving promises with Suspense support, under 1kb in bundle size.

164TypeScriptMIT License

All open-source alternatives to SWR

Frequently asked questions

What are the best open-source alternatives to SWR?

The top three are TanStack Query(44.2k stars), useHooks-ts(7.8k stars), Suspend-react(1.4k stars). All are open source and free to use.

Are these alternatives to SWR free?

Yes. Every tool listed here is open source and free to use in your own projects. Many can be self-hosted on your own infrastructure, which means no subscription fees and full control over your data.

Can I self-host an alternative to SWR?

Many of the alternatives listed are self-hostable. Each tool's page lists hosting details, system requirements, and licensing terms.

Stay Updated!

Get notified about new tools and updates to existing ones.