Skip to content
JS
Package

react-use-websocket

React Hook for WebSocket communication

v4.13.0, 4 Feb 2025MITCommonJSTypes: BundledWebSockets and realtimeReact
$ npm install react-use-websocket

Key numbers

As of 25 Sept 2026
Weekly downloads
369.9k
+32% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v4.13.0
GitHub stars
1.9k
155 forks
Open issues / PRs
79 / 16
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 589.6k (23 Jun 2026)Low 144.8k (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.

369,932 downloads last week, 1,766,971 in the last month. The 12-month change of +32% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
098 in total
Latest version
4.13.0, 4 Feb 20251 year ago
First published
4 May 2019
Last push to GitHub
4 Feb 2025598 days before the snapshot
Repository archived
No
Open issues
79
Open pull requests
16
Commits, last 52 weeks
0
Dependents on npm
131

Major versions

  1. v4 first release 4.0.0, 27 Apr 2022
  2. v3 first release 3.0.0, 6 Feb 2022
  3. v2 first release 2.0.0, 1 May 2020
  4. v1 first release 1.0.0, 13 Nov 2019
  5. v0 first release 0.1.0, 4 May 2019

Recent releases

VersionPublished
4.13.04 Feb 2025
4.12.031 Jan 2025
4.11.118 Nov 2024
4.11.017 Nov 2024
4.10.131 Oct 2024
4.10.022 Oct 2024
4.9.01 Oct 2024
4.8.128 Feb 2024
4.8.028 Feb 2024
4.7.011 Feb 2024
4.6.011 Feb 2024
4.5.028 Sept 2023
4.4.05 Sept 2023
4.3.110 Feb 2023
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
196 kB
Dependencies (0)
None
npm install react-use-websocket
  • jsDelivrhttps://cdn.jsdelivr.net/npm/react-use-websocket@4.13.0/
  • unpkghttps://unpkg.com/react-use-websocket@4.13.0/
  • esm.shhttps://esm.sh/react-use-websocket@4.13.0
PackageWeekly downloadsGzipLast releaseModuleComparison
react-use-websocket-lite11k-3 months agoESM only-
sockjs13.9m-4 years agoCommonJS-
sockjs-client4.2m-4 years agoCommonJS-
react-stomp5.1k-5 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.