Package
swr
React Hooks library for remote data fetching
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 12.4m
- +142% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 1 month ago
- v2.5.1
- GitHub stars
- 32.5k
- 1.4k forks
- Open issues / PRs
- 147 / 75
- Contributors
- -
- Commits, last 52 weeks
- 56
Downloads
Last week 2026-09-15 to 2026-09-21
12,422,236 downloads last week, 56,327,687 in the last month. The 12-month change of +142% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 784 in total
- Latest version
- 2.5.1, 12 Aug 20261 month ago
- First published
- 6 Apr 2018
- Last push to GitHub
- 22 Sept 20262 days before the snapshot
- Repository archived
- No
- Open issues
- 147
- Open pull requests
- 75
- Commits, last 52 weeks
- 56
- Dependents on npm
- 2,072
Major versions
- v2 first release 2.0.0, 9 Dec 2022
- v1 first release 1.0.0, 27 Aug 2021
- v0 first release 0.1.0, 6 Apr 2018
Recent releases
| Version | Published |
|---|---|
| 2.5.1 | 12 Aug 2026 |
| 2.5.0 | 3 Aug 2026 |
| 2.4.2 | 22 Jun 2026 |
| 2.4.1 | 27 Feb 2026 |
| 2.4.0 | 1 Feb 2026 |
| 2.3.8 | 15 Dec 2025 |
| 2.3.7 | 28 Nov 2025 |
| 2.3.6 | 11 Aug 2025 |
| 2.3.5 | 9 Aug 2025 |
| 2.3.4 | 2 Jul 2025 |
| 2.3.3 | 6 Mar 2025 |
| 2.3.2 | 5 Feb 2025 |
| 2.3.1 | 5 Feb 2025 |
| 2.3.0 | 23 Dec 2024 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 313 kB
- Dependencies (2)
dequaluse-sync-external-store- Peer dependencies (1)
react
npm install swrCDN
jsDelivr: 55.7k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/swr@2.5.1/ - unpkg
https://unpkg.com/swr@2.5.1/ - esm.sh
https://esm.sh/swr@2.5.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| react-native-fetch-api | 208.2k | - | 5 years ago | CommonJS | - |
Indexability: Indexed.