Skip to content
JS
Package

swr

React Hooks library for remote data fetching

v2.5.1, 12 Aug 2026MITESM + CommonJSTypes: BundledHTTP clientsReact
$ npm install swr

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
05m10m15m20mSept 2025Mar 2026Sept 2026High 16.9m (25 Aug 2026)Low 3.6m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v2 first release 2.0.0, 9 Dec 2022
  2. v1 first release 1.0.0, 27 Aug 2021
  3. v0 first release 0.1.0, 6 Apr 2018

Recent releases

VersionPublished
2.5.112 Aug 2026
2.5.03 Aug 2026
2.4.222 Jun 2026
2.4.127 Feb 2026
2.4.01 Feb 2026
2.3.815 Dec 2025
2.3.728 Nov 2025
2.3.611 Aug 2025
2.3.59 Aug 2025
2.3.42 Jul 2025
2.3.36 Mar 2025
2.3.25 Feb 2025
2.3.15 Feb 2025
2.3.023 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 swr

CDN

jsDelivr: 55.7k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/swr@2.5.1/
  • unpkghttps://unpkg.com/swr@2.5.1/
  • esm.shhttps://esm.sh/swr@2.5.1
PackageWeekly downloadsGzipLast releaseModuleComparison
react-native-fetch-api208.2k-5 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.