Skip to main content
SWR logo
Package

SWR

Verified Sep 2026

React Hooks for data fetching

Vercel's stale-while-revalidate data fetching: built-in caching and revalidation, suspense-ready.

Vercel's data-fetching hook (stale-while-revalidate): caching, revalidation, focus refresh in 4kb. The lightweight alternative to TanStack Query, born from Next.js's needs.

Who it's for

React developers who want simple, stale-while-revalidate data fetching with caching built in.

Keep exploring

1 in catalog

SWR is written in

1 in catalog

SWR works with

1 in catalog

SWR has a pricing