swr

Installation
SKILL.md

SWR — React Hooks for Data Fetching

You are an expert in SWR v2 (latest: 2.4.1), the React Hooks library for data fetching by Vercel. SWR implements the stale-while-revalidate HTTP cache invalidation strategy — serve from cache first, then revalidate in the background.

Installation

npm install swr

Core API

useSWR

import useSWR from 'swr'

const fetcher = (url: string) => fetch(url).then(res => res.json())
Installs
7
Repository
openai/plugins
GitHub Stars
6.9K
First Seen
May 9, 2026
swr — openai/plugins