SWR
A set of React Hooks for data fetching, aiming for high performance and efficiency.
SWR is built in TypeScript, distributed under the MIT License, 32.3k GitHub stars from 100 contributors, latest release v2.4.0.
When to use SWR
SWR is listed here as a Development project. The directory calls out Stale-while-revalidate strategy, Auto caching and revalidation, Out of the box SSR support as capabilities associated with it.
Other recorded traits for SWR include Real-time experience, TypeScript ready.
Besides Development, this page also files SWR under React, Utils.
SWR compared with
Records in this directory name React Query, Apollo Client as products people compare with SWR. That list is editorial metadata, not a claim that SWR replaces each of them.
Open-source projects that mention SWR are collected on a separate alternatives page.
What the SWR stats reflect
GitHub currently shows 32.3k GitHub stars, about 100 contributors, 1.3k forks, 190 open issues, latest tracked release v2.4.0. Star and activity counts here are a snapshot used as a proxy for community adoption, not a quality score.
Stats refreshed
- Language
- TypeScript
- Latest Release
- v2.4.0
- License
- MIT License
Our Newsletter
Get new Development tools right in your inbox
Get short emails with useful development projects, releases, and repos worth watching.
Key features of SWR
- Stale-while-revalidate strategy
- Auto caching and revalidation
- Out of the box SSR support
- Real-time experience
- TypeScript ready
Recorded alternatives to SWR
SWR resources
SWR on GitHub
Frequently asked questions
What is SWR?
A set of React Hooks for data fetching, aiming for high performance and efficiency. This directory highlights Stale-while-revalidate strategy, Auto caching and revalidation, Out of the box SSR support.
Is SWR free to use?
SWR is published as open source under the MIT License. The directory lists Stale-while-revalidate strategy, Auto caching and revalidation, Out of the box SSR support among its recorded capabilities.
What language is SWR written in, and what is the latest release?
SWR is written primarily in TypeScript. The latest release tracked on this page is v2.4.0.
How widely is SWR used on GitHub?
SWR has about 32.3k GitHub stars across about 100 contributors. It also has about 1.3k forks. Those counts are a snapshot of community attention, not a ranking of quality.
Where can I see open-source alternatives to SWR?
Open-source projects that list SWR are collected at https://www.open-source-tools.com/alternatives/swr. Named comparisons on this page include React Query, Apollo Client.
Related tools
Apollo-client
π A fully-featured, production-ready caching GraphQL client that seamlessly integrates with every UI framework and GraphQL server.
React-promise-suspense
A lightweight React hook for resolving promises with Suspense support, under 1kb in bundle size.
useHooks-ts
A ready-to-use React hook library, written in TypeScript, to simplify your React development and enhance your productivity.
Suspend-react
A library providing async/await capabilities for React components, streamlining asynchronous operations in your React applications.
TanStack 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.
React DnD
A flexible and extensible library for building complex drag and drop interfaces in React applications.