Skip to content
r.

swr

vercel/swr · Public GitHub repository

React Hooks for Data Fetching

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

swr live demo screenshot
Captured from the live demo · 2026-10-31

About this project

Author-written excerpt from the project README.

SWR is a React Hooks library for data fetching.

The name “SWR” is derived from stale-while-revalidate, a cache invalidation strategy popularized by HTTP RFC 5861. SWR first returns the data from cache (stale), then sends the request (revalidate), and finally comes with the up-to-date data again.

With just one hook, you can significantly simplify the data fetching logic in your project. And it also covered in all aspects of speed, correctness, and stability to help you build better experiences:

Requirements and intended audience

SWR is a React Hooks library for data fetching.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-03. Source: https://github.com/vercel/swr/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-10-16. Saved release: v2.5.1 · 2026-08-12. These dates do not guarantee ongoing maintenance.

Technologies
React, Next.js
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories