# swr

React Hooks for Data Fetching

Canonical page: https://www.reposhelf.co.uk/projects/github/vercel/swr.html

- Project ID: vercel/swr
- Source: GitHub
- Original project: https://github.com/vercel/swr
- Description attribution: project author metadata
- Categories: Developer tools, Mobile
- Technologies: React, Next.js
- Licence: MIT
- Repository availability checked: 2026-11-03T15:06:41.671Z
- Demo page loaded: 2026-11-16T13:21:57.091Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 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:

- Fast, lightweight and reusable data fetching
- Transport and protocol agnostic
- Built-in cache and request deduplication
- Real-time experience
- Revalidation on focus

## Author-documented requirements and 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.

Source: https://github.com/vercel/swr/blob/main/README.md

Extraction checked: 2026-11-03T15:06:41.671Z

Last recorded source update: 2026-10-16T17:57:58.000Z

Saved release: v2.5.1 — 2026-08-12T14:39:02.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=vercel%2Fswr). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
