{"data":{"slug":"swr","name":"SWR","tagline":"MIT React Hooks for data fetching by Vercel","category":"nextjs","categoryName":"Next.js","url":"https://swr.vercel.app","github":"https://github.com/vercel/swr","pricing":"open-source","hook":"SWR is a React hooks library for data fetching based on stale-while-revalidate: it shows cached data first, refetches in the background, and updates the UI when fresh data arrives.","whatsGood":"MIT (vercel/swr), release v2.5.1 (2026-08-12). One hook handles caching, request deduplication, revalidation on focus and reconnect, pagination and mutation. Works with any transport (fetch, GraphQL, etc.). Maintained by Vercel and widely used with Next.js. ★~32.5k.","theCatch":"Smaller than TanStack Query in features like devtools and fine cache control. With React Server Components, much fetching moves to the server, so you need SWR less in new Next.js apps.","verdict":"The light, simple choice for client-side fetching in React.","addedAt":"2026-10-18","featured":false,"domain":"Next.js","subSpecialty":"App Platform","subcategory":"App Platform","tags":["self-host","permissive","active"],"capabilities":[],"surfaces":["Self-host"],"ecosystem":["Node.js","Browser"],"licenseModel":"OSS/MIT","githubStars":32489,"starsPerWeek":89,"access":"free","archived":false,"repo":{"createdAt":"2019-10-28","pushedAt":"2026-10-16","license":"MIT","archived":false,"checkedAt":"2026-10-19"}},"related":[{"slug":"vercel","name":"Vercel","tagline":"The platform that made Next.js deployment trivial"},{"slug":"prisma","name":"Prisma","tagline":"Type-safe database access with killer DX"},{"slug":"drizzle","name":"Drizzle ORM","tagline":"TypeScript ORM that feels like SQL"},{"slug":"trpc","name":"tRPC","tagline":"End-to-end typesafe APIs without codegen"},{"slug":"clerk","name":"Clerk","tagline":"Auth that actually ships with your UI"}],"links":{"self":"/api/gems/swr","html":"/gems/swr","markdown":"/gems/swr.md","category":"/api/gems?category=nextjs","categoryPage":"/stacks/nextjs"}}