Package category
WebSockets and realtime
WebSocket servers and clients, pub/sub and realtime messaging.
556 packages4 comparisons
Packages compared
556 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| ws Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js | 201.6m | +104% | - | 1 month ago 8.21.3 | ESM + CommonJS | None | WebSockets and realtime | |
| eventsource-parser Streaming, source-agnostic EventSource/Server-Sent Events parser | 52.2m | +551% | - | 9 days ago 4.1.1 | ESM only | Bundled | WebSockets and realtime | |
| eventsource WhatWG/W3C compliant EventSource client for Node.js and browsers | 44.7m | +297% | - | 3 days ago 5.1.2 | ESM only | Bundled | WebSockets and realtime | |
| faye-websocket Standards-compliant WebSocket server and client | 27.1m | +40% | - | 5 years ago 0.11.4 | CommonJS | None | WebSockets and realtime | |
| component-emitter Simple event emitter | 26.9m | +30% | - | 2 years ago 2.0.0 | CommonJS | Bundled | WebSockets and realtime | |
| websocket-driver WebSocket protocol handler with pluggable I/O | 25.4m | +47% | - | 3 months ago 0.7.5 | CommonJS | None | WebSockets and realtime | |
| websocket-extensions Generic extension manager for WebSocket connections | 24.1m | +45% | - | 6 years ago 0.1.4 | CommonJS | None | WebSockets and realtime | |
| mitt Tiny 200b functional Event Emitter / pubsub. | 22m | +106% | - | 3 years ago 3.0.1 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| http-proxy-middleware The one-liner node.js proxy middleware for connect, express, next.js and more | 21.4m | +19% | - | 2 months ago 4.2.0 | ESM only | Bundled | HTTP servers and web frameworks, WebSockets and realtime | |
| socket.io-parser socket.io protocol parser | 20.1m | +93% | - | 2 months ago 4.2.7 | ESM + CommonJS | Bundled | WebSockets and realtime, Node.js utilities | |
| engine.io-parser Parser for the client for the realtime Engine | 17.7m | +86% | - | 2 years ago 5.2.3 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| isomorphic-ws Isomorphic implementation of WebSocket | 14.4m | +75% | - | 4 years ago 5.0.0 | CommonJS | Bundled | WebSockets and realtime, DOM and browser utilities | |
| sockjs SockJS-node is a server counterpart of SockJS-client a JavaScript library that provides a WebSocket-like object in the browser. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication | 13.9m | +6% | - | 4 years ago 0.3.24 | CommonJS | None | WebSockets and realtime | |
| socket.io node.js realtime framework server | 13.7m | +84% | - | 9 months ago 4.8.3 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| engine.io The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server | 13.4m | +82% | - | 1 day ago 6.6.11 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| socket.io-adapter default socket.io in-memory adapter | 13.1m | +81% | - | 3 months ago 2.5.8 | CommonJS | Bundled | WebSockets and realtime, Node.js utilities | |
| engine.io-client Client for the realtime Engine | 12.6m | +119% | - | 3 months ago 6.6.6 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| socket.io-client Realtime application framework client | 11.1m | +88% | - | 9 months ago 4.8.3 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| @slack/web-api Official library for using the Slack Platform's Web API | 9.8m | +246% | - | 28 days ago 8.1.1 | CommonJS | Bundled | WebSockets and realtime, TypeScript tooling | |
| event-emitter Environment agnostic event emitter | 8.8m | +19% | - | 9 years ago 0.3.5 | - | None | WebSockets and realtime | |
| graphql-ws Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client | 8.2m | +61% | - | today 6.3.0 | ESM + CommonJS | Bundled | GraphQL, WebSockets and realtime | |
| isows Isomorphic WebSocket | 6.3m | +234% | - | 1 year ago 1.0.7 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| sockjs-client SockJS-client is a browser JavaScript library that provides a WebSocket-like object. | 4.2m | -6% | - | 4 years ago 1.6.1 | CommonJS | None | WebSockets and realtime | |
| sdp-transform A simple parser/writer for the Session Description Protocol | 3.9m | +809% | - | 10 months ago 3.0.0 | CommonJS | None | Parsers and serialisers, WebSockets and realtime | |
| @slack/socket-mode Official library for using the Slack Platform's Socket Mode API | 3.6m | +513% | - | 28 days ago 3.0.1 | CommonJS | Bundled | WebSockets and realtime | |
| sdp SDP parsing and serialization utilities | 3.4m | +260% | - | 5 months ago 3.2.2 | ESM + CommonJS | Bundled | Video and audio, WebSockets and realtime | |
| firebase-tools Command-Line Interface for Firebase | 2.1m | +193% | - | 1 day ago 15.31.0 | CommonJS | None | Cloud SDKs, CLI tools and terminal utilities | |
| partysocket A better WebSocket that Just Works™ | 2.1m | +1548% | - | 3 months ago 1.3.0 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| pusher-js Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers | 2m | +168% | - | 2 months ago 8.6.0 | CommonJS | None | WebSockets and realtime | |
| msw-storybook-addon Mock APIs in Storybook using Mock Service Worker. | 2m | +112% | - | 9 days ago 3.0.3 | ESM only | None | Dev servers and API mocking, WebSockets and realtime | |
| @libsql/isomorphic-ws Isomorphic WebSockets in Node, Bun, Deno and Cloudflare Workers | 1.9m | +496% | - | 3 years ago 0.1.5 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| rpc-websockets JSON-RPC 2.0 implementation over WebSockets for Node.js | 1.9m | +135% | - | 4 months ago 10.0.1 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| mqtt A library for the MQTT protocol | 1.8m | +60% | - | 9 days ago 5.16.0 | ESM + CommonJS | Bundled | WebSockets and realtime | |
| mqtt-packet Parse and generate MQTT packets like a breeze | 1.8m | +49% | - | 1 year ago 9.0.2 | CommonJS | Bundled | WebSockets and realtime | |
| event-source-polyfill A polyfill for http://www.w3.org/TR/eventsource/ | 1.6m | +100% | - | 4 years ago 1.0.31 | - | - | Polyfills and shims, WebSockets and realtime | |
| @fastify/websocket basic websocket support for fastify | 1.4m | - | - | - | 6 days ago 11.3.1 | - | - | WebSockets and realtime |
| faye Simple pub/sub messaging for the web | 1.3m | +58% | - | 11 days ago 1.4.2 | - | - | WebSockets and realtime | |
| @rails/actioncable WebSocket framework for Ruby on Rails. | 1.2m | - | - | - | today 8.1.400 | ESM + CommonJS | None | WebSockets and realtime |
| @copilotkit/aimock Mock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically. | 1.1m | - | - | - | 2 days ago 1.43.0 | ESM + CommonJS | Bundled | Testing, WebSockets and realtime |
| partyserver Build real-time applications powered by [Durable Objects](https://developers.cloudflare.com/durable-objects/), inspired by [PartyKit](https://www.partykit.io/). | 1.1m | +920% | - | 1 month ago 0.5.10 | ESM only | Bundled | WebSockets and realtime, Cloud SDKs | |
| phoenix The official JavaScript client for the Phoenix web framework. | 1.1m | +315% | - | 11 days ago 1.8.14 | ESM + CommonJS | None | WebSockets and realtime | |
| websocket Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455. | 1m | +12% | - | 2 years ago 1.0.35 | CommonJS | None | WebSockets and realtime | |
| js-message A tiny, normalized JavaScript and JSON message envelope for every runtime boundary | 1m | -8% | - | 1 month ago 3.1.1 | ESM + CommonJS | None | WebSockets and realtime, Parsers and serialisers | |
| event-pubsub Small, synchronous publish/subscribe events for Node.js plus bundled and unbundled browsers. | 975.2k | -5% | - | 1 month ago 6.1.1 | ESM only | None | WebSockets and realtime | |
| ably Realtime client library for Ably, the realtime messaging service | 924.3k | +375% | - | 1 day ago 2.29.0 | ESM + CommonJS | Bundled | WebSockets and realtime, TypeScript tooling | |
| @sanity/util Utilities shared across projects of Sanity | 914.7k | - | - | - | 2 days ago 6.16.0 | ESM only | Bundled | WebSockets and realtime |
| @slack/webhook Official library for using the Slack Platform's Incoming Webhooks | 899.2k | - | - | - | 28 days ago 8.0.2 | CommonJS | Bundled | WebSockets and realtime, TypeScript tooling |
| @httptoolkit/websocket-stream Use websockets with the node streams API. Works in browser and node, with all current WS versions | 882.6k | - | - | - | 4 years ago 6.0.1 | CommonJS | Bundled | WebSockets and realtime |
| @sanity/bifur-client WebSocket client for Sanity's Bifur real-time service, communicating over JSON-RPC 2.0 and returning RxJS Observables | 844.8k | - | - | - | 1 month ago 2.0.2 | ESM only | Bundled | WebSockets and realtime, Promises and async control flow |
| centrifuge JavaScript client SDK for bidirectional communication with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native | 798.4k | +346% | - | 15 days ago 5.7.4 | ESM + CommonJS | Bundled | WebSockets and realtime |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.
- wsSimple to use, blazing fast and thoroughly tested websocket client and server for Node.js
- eventsource-parserStreaming, source-agnostic EventSource/Server-Sent Events parser
- eventsourceWhatWG/W3C compliant EventSource client for Node.js and browsers
- faye-websocketStandards-compliant WebSocket server and client
- component-emitterSimple event emitter
- websocket-driverWebSocket protocol handler with pluggable I/O
- websocket-extensionsGeneric extension manager for WebSocket connections
- mittTiny 200b functional Event Emitter / pubsub.
- http-proxy-middlewareThe one-liner node.js proxy middleware for connect, express, next.js and more
- socket.io-parsersocket.io protocol parser
- engine.io-parserParser for the client for the realtime Engine
- isomorphic-wsIsomorphic implementation of WebSocket
- sockjsSockJS-node is a server counterpart of SockJS-client a JavaScript library that provides a WebSocket-like object in the browser. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication
- socket.ionode.js realtime framework server
- engine.ioThe realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server
- socket.io-adapterdefault socket.io in-memory adapter
- engine.io-clientClient for the realtime Engine
- socket.io-clientRealtime application framework client
- @slack/web-apiOfficial library for using the Slack Platform's Web API
- event-emitterEnvironment agnostic event emitter
- graphql-wsCoherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client
- isowsIsomorphic WebSocket
- sockjs-clientSockJS-client is a browser JavaScript library that provides a WebSocket-like object.
- sdp-transformA simple parser/writer for the Session Description Protocol
- @slack/socket-modeOfficial library for using the Slack Platform's Socket Mode API
- sdpSDP parsing and serialization utilities
- firebase-toolsCommand-Line Interface for Firebase
- partysocketA better WebSocket that Just Works™
- pusher-jsPusher Channels JavaScript library for browsers, React Native, NodeJS and web workers
- msw-storybook-addonMock APIs in Storybook using Mock Service Worker.
- @libsql/isomorphic-wsIsomorphic WebSockets in Node, Bun, Deno and Cloudflare Workers
- rpc-websocketsJSON-RPC 2.0 implementation over WebSockets for Node.js
- mqttA library for the MQTT protocol
- mqtt-packetParse and generate MQTT packets like a breeze
- event-source-polyfillA polyfill for http://www.w3.org/TR/eventsource/
- @fastify/websocketbasic websocket support for fastify
- fayeSimple pub/sub messaging for the web
- @rails/actioncableWebSocket framework for Ruby on Rails.
- @copilotkit/aimockMock infrastructure for AI application testing — point your SDK at one local port and every provider, protocol, and service answers deterministically.
- partyserverBuild real-time applications powered by [Durable Objects](https://developers.cloudflare.com/durable-objects/), inspired by [PartyKit](https://www.partykit.io/).
- phoenixThe official JavaScript client for the Phoenix web framework.
- websocketWebsocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.
- js-messageA tiny, normalized JavaScript and JSON message envelope for every runtime boundary
- event-pubsubSmall, synchronous publish/subscribe events for Node.js plus bundled and unbundled browsers.
- ablyRealtime client library for Ably, the realtime messaging service
- @sanity/utilUtilities shared across projects of Sanity
- @slack/webhookOfficial library for using the Slack Platform's Incoming Webhooks
- @httptoolkit/websocket-streamUse websockets with the node streams API. Works in browser and node, with all current WS versions
- @sanity/bifur-clientWebSocket client for Sanity's Bifur real-time service, communicating over JSON-RPC 2.0 and returning RxJS Observables
- centrifugeJavaScript client SDK for bidirectional communication with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native