Package
ws
Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 201.6m
- +104% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 month ago
- v8.21.3
- GitHub stars
- 22.8k
- 2.6k forks
- Open issues / PRs
- 5 / 0
- Contributors
- 213
- Commits, last 52 weeks
- 38
Downloads
Last week 2026-09-15 to 2026-09-21
201,592,878 downloads last week, 978,300,298 in the last month. The 12-month change of +104% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 16181 in total
- Latest version
- 8.21.3, 7 Aug 20261 month ago
- First published
- 4 Dec 2011
- Last push to GitHub
- 4 Sept 202620 days before the snapshot
- Repository archived
- No
- Open issues
- 5
- Open pull requests
- 0
- Commits, last 52 weeks
- 38
- Dependents on npm
- 37,845
Major versions
- v8 first release 8.0.0, 28 Jul 2021
- v7 first release 7.0.0, 30 Apr 2019
- v6 first release 6.0.0, 21 Jul 2018
- v5 first release 5.0.0, 6 Mar 2018
- v4 first release 4.0.0, 5 Jan 2018
- v3 first release 3.0.0, 17 May 2017
- v2 first release 2.0.0, 30 Jan 2017
- v1 first release 1.0.0, 30 Dec 2015
- v0 first release 0.2.6, 4 Dec 2011
Recent releases
| Version | Published |
|---|---|
| 8.21.3 | 7 Aug 2026 |
| 8.21.2 | 3 Aug 2026 |
| 7.5.13 | 17 Jul 2026 |
| 6.2.6 | 17 Jul 2026 |
| 5.2.7 | 17 Jul 2026 |
| 8.21.1 | 14 Jul 2026 |
| 7.5.12 | 14 Jul 2026 |
| 6.2.5 | 14 Jul 2026 |
| 5.2.6 | 14 Jul 2026 |
| 8.21.0 | 22 May 2026 |
| 7.5.11 | 22 May 2026 |
| 6.2.4 | 22 May 2026 |
| 5.2.5 | 22 May 2026 |
| 8.20.1 | 12 May 2026 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=10.0.0
- Runtimes
- -
- Unpacked size (npm)
- 147 kB
- Dependencies (0)
- None
- Peer dependencies (2)
bufferutilutf-8-validate
npm install wsCDN
jsDelivr: 227.5k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/ws@8.21.3/ - unpkg
https://unpkg.com/ws@8.21.3/ - esm.sh
https://esm.sh/ws@8.21.3
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| sockjs | 13.9m | - | 4 years ago | CommonJS | ws vs sockjs |
| sockjs-client | 4.2m | - | 4 years ago | CommonJS | ws vs sockjs-client |
| socket.io-client | 11.1m | - | 9 months ago | ESM + CommonJS | - |
| socket.io | 13.7m | - | 9 months ago | ESM + CommonJS | - |
| socket.io-parser | 20.1m | - | 2 months ago | ESM + CommonJS | - |
| engine.io-parser | 17.7m | - | 2 years ago | ESM + CommonJS | - |
Indexability: Indexed.