SWR
React Hooks library for data fetching that returns cached data first and revalidates it in the background.
vercel.com/oss/swrrepositorydocs
SWR is a data-fetching library for React. A component gets cached data first, the library sends the request and then updates the component with the fresh response.
The README lists server-side rendering and static generation among its features.
Identity
Rendering and deploy
- Install with
- npm3
Releases
Adoption
Sources
- 2026-11-16: links
vercel.com/oss/swr - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/vercel/swr - 2026-11-16: links, Install with
swr.vercel.app/docs/getting-started - 2026-11-16: Categories, Built on
github.com/vercel/swr/blob/main/README.md - 2026-11-16: Maintainer
github.com/vercel/swr/blob/main/LICENSE - 2026-11-16: First release, Last release
api.github.com/repos/vercel/swr/releases - 2026-11-16: Current major version
registry.npmjs.org/swr/latest - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/swr - 2026-11-16: Contributors
api.github.com/repos/vercel/swr/contributors - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/swr