Skip to content
JS
Package

ws

Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js

v8.21.3, 7 Aug 2026MITESM + CommonJSTypes: NoneWebSockets and realtime
$ npm install ws

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
0100m200m300mSept 2025Mar 2026Sept 2026High 269.5m (25 Aug 2026)Low 70.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.

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

  1. v8 first release 8.0.0, 28 Jul 2021
  2. v7 first release 7.0.0, 30 Apr 2019
  3. v6 first release 6.0.0, 21 Jul 2018
  4. v5 first release 5.0.0, 6 Mar 2018
  5. v4 first release 4.0.0, 5 Jan 2018
  6. v3 first release 3.0.0, 17 May 2017
  7. v2 first release 2.0.0, 30 Jan 2017
  8. v1 first release 1.0.0, 30 Dec 2015
  9. v0 first release 0.2.6, 4 Dec 2011

Recent releases

VersionPublished
8.21.37 Aug 2026
8.21.23 Aug 2026
7.5.1317 Jul 2026
6.2.617 Jul 2026
5.2.717 Jul 2026
8.21.114 Jul 2026
7.5.1214 Jul 2026
6.2.514 Jul 2026
5.2.614 Jul 2026
8.21.022 May 2026
7.5.1122 May 2026
6.2.422 May 2026
5.2.522 May 2026
8.20.112 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 ws

CDN

jsDelivr: 227.5k requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ws@8.21.3/
  • unpkghttps://unpkg.com/ws@8.21.3/
  • esm.shhttps://esm.sh/ws@8.21.3
PackageWeekly downloadsGzipLast releaseModuleComparison
sockjs13.9m-4 years agoCommonJSws vs sockjs
sockjs-client4.2m-4 years agoCommonJSws vs sockjs-client
socket.io-client11.1m-9 months agoESM + CommonJS-
socket.io13.7m-9 months agoESM + CommonJS-
socket.io-parser20.1m-2 months agoESM + CommonJS-
engine.io-parser17.7m-2 years agoESM + CommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.