websockets/ws
Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 97
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 2.0
- age_days: 5411
- days_rel: 27
- days_push: 20
- n_releases_24m: 19
Adoption not part of the score
22793 stars · 2578 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
ws is a fast, thoroughly tested WebSocket client and server library for Node.js implementing RFC 6455. It passes the extensive Autobahn test suite and supports features like permessage-deflate compression and optional native performance addons.
Use cases
- build a websocket server in node.js
- connect to a websocket server from node.js backend
- implement real-time push messaging over websockets
- broadcast messages to connected websocket clients
- add websocket support to an existing http server
- send and receive binary data over websockets
- enable websocket compression for faster payloads
When to choose
- you need a battle-tested, RFC 6455 compliant WebSocket implementation for Node.js
- you want a lightweight library without heavy framework dependencies
- you need to share an HTTP/S server between web and WebSocket traffic
- performance matters and you can use optional native addons like bufferutil
When to avoid
- your code runs in the browser - use the native WebSocket API instead
- you need a full real-time framework with rooms, reconnection, and fallbacks (e.g. Socket.IO)
- you are not using Node.js or a Node-compatible runtime
Facets
library · maturity stable
websocket http-server middleware web-development backend networking developer-tools cross-platform rfc-6455 websocket-client websocket-server websocket-compression real-time autobahn-tested nodejs
2 sources
- readme: https://github.com/websockets/ws · fetched 2026-08-28 · c16d42fdf172
- registry_npm: https://registry.npmjs.org/ws · fetched 2026-08-29 · 0ab3a602d8b0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| websockets/ws | main | 97 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem