React Hooks library for remote data fetching
Swr is react Hooks library for remote data fetching. Licensed under MIT, it is extremely popular in the JavaScript ecosystem with 10.1M weekly downloads.
Swr has an excellent overall health score of 85/100. Its strongest dimension is maintenance (100/100), while quality (50/100) is the area with most room for improvement. This package is well-maintained and actively used.
The best package for every category — one PDF.
Join 500+ devs. No spam.
TanStack Query vs SWR vs Apollo Client compared for React data fetching in 2026. Bundle size, caching strategy, mutations, and which library fits your API.
2026-03-17T00:00:00.000ZTanStack Query v5 rewrote the core API: unified query/mutation status, new devtools, optimistic updates via optimisticResults, and breaking changes that matter.
2026-03-08T00:00:00.000ZTanStack Query vs SWR (2026): 12.3M vs 7.7M weekly downloads, bundle sizes, features, and DX compared with real npm data. Which to use in 2026 Updated.
2026-02-28T00:00:00.000Z