{
  "slug": "swr",
  "name": "SWR",
  "url": "https://swr.vercel.app",
  "cat": "dx",
  "group": "build",
  "tagline": "Data-fetching hooks",
  "price": "Free · MIT",
  "tier": "free",
  "pick": false,
  "what": "Vercel's data-fetching hook library, v2, built on stale-while-revalidate: show cached data instantly, refetch in the background. Much smaller and simpler than TanStack Query, with revalidation on focus and reconnect plus pagination and mutation helpers.",
  "why": "A lighter alternative when you want caching and revalidation but not TanStack Query's full surface. Common in Next.js codebases, so you will meet it in inherited or AI-generated Vercel-flavoured code.",
  "warn": "Thinner feature set: weaker devtools, less capable mutation and invalidation. Most greenfield projects pick TanStack Query instead.",
  "install": "npm install swr",
  "category": {
    "key": "dx",
    "name": "Libraries & build tooling",
    "desc": "The dependencies your AI will reach for whether or not you chose them. Know what they are.",
    "group": "build",
    "groupName": "Build it"
  },
  "freshness": null,
  "health": {
    "ok": true,
    "status_code": 200,
    "final_url": "https://vercel.com/oss/swr",
    "checked_at": "2026-08-18T21:22:12.874+00:00"
  },
  "corrected_at": null,
  "upstream_changed_at": null
}