Skip to content
JS
Package category

WebSockets and realtime

WebSocket servers and clients, pub/sub and realtime messaging.

556 packages4 comparisons

Packages compared

556 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
simple-websocket
Simple, EventEmitter API for WebSockets (browser)
696.2k+30%-5 years ago
9.1.0
CommonJSNoneWebSockets and realtime
sanity
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
686k+212%-2 days ago
6.16.0
ESM onlyBundledWebSockets and realtime
mock-socket
Javascript mocking library for websockets and socket.io
684.5k+56%-3 years ago
9.3.1
CommonJSNoneTesting, WebSockets and realtime
nano-pubsub
Zero dependency, tiny (<0.5 kb) publish/subscribe
672k+206%-2 years ago
3.0.0
ESM + CommonJSBundledWebSockets and realtime
@d-fischer/isomorphic-ws
Isomorphic implementation of WebSocket
661.7k---2 years ago
7.0.2
ESM + CommonJSBundledWebSockets and realtime
nats
Node.js client for NATS, a lightweight, high-performance cloud native messaging system
650.7k+138%-1 year ago
2.29.3
CommonJSBundledWebSockets and realtime
pusher
Node.js client to interact with the Pusher Channels REST API
635.2k+151%-3 months ago
5.3.4
CommonJSBundledWebSockets and realtime
pm2-axon
High-level messaging & socket patterns implemented in pure js
609.6k-50%-5 years ago
4.0.1
-NoneWebSockets and realtime
reconnecting-websocket
Reconnecting WebSocket
504.7k+27%-6 years ago
4.4.0
ESM + CommonJSBundledWebSockets and realtime
brcast
Tiny data broadcaster with 0 dependencies
496.3k+8%-6 years ago
3.0.2
ESM + CommonJSNoneWebSockets and realtime
@anycable/core
AnyCable JavaScript client library core functionality
406.4k---1 month ago
1.1.7
ESM onlyBundledWebSockets and realtime
chaingate
Multi-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO
388.9k+316%-28 days ago
1.3.1
CommonJSBundledBlockchain and Web3, WebSockets and realtime
@stomp/stompjs
STOMP client for Javascript and Typescript
381.3k---7 months ago
7.3.0
ESM + CommonJSBundledQueues and background jobs, WebSockets and realtime
botframework-streaming
Streaming library for the Microsoft Bot Framework
372.4k+172%-1 year ago
4.23.3
CommonJSBundledWebSockets and realtime, Node.js utilities
react-use-websocket
React Hook for WebSocket communication
369.9k+32%-1 year ago
4.13.0
CommonJSBundledWebSockets and realtime, React
@ably/chat
Ably Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, cust
354.8k---3 months ago
1.4.0
ESM + CommonJSBundledWebSockets and realtime
bytebuffer
The swiss army knife for binary data in JavaScript.
305.6k+14%-10 years ago
5.0.1
CommonJSNoneWebSockets and realtime, Video and audio
@liveblocks/client
A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
270.1k---4 days ago
3.24.2
ESM + CommonJSBundledWebSockets and realtime
@nats-io/transport-node
Node.js client for NATS, a lightweight, high-performance cloud native messaging system
257k---4 months ago
3.4.0
CommonJSBundledWebSockets and realtime
graphql-sse
Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client
254.3k+104%-1 month ago
2.6.1
ESM + CommonJSBundledGraphQL, WebSockets and realtime
express-ws
WebSocket endpoints for Express applications
237.8k+31%-5 years ago
5.0.2
CommonJSNoneWebSockets and realtime
pubsub-js
Dependency free publish/subscribe library
235.4k+43%--
1.9.5
CommonJSNoneWebSockets and realtime
@livekit/react-native-webrtc
WebRTC for React Native
233.7k---13 days ago
144.2.0
ESM + CommonJSBundledReact, WebSockets and realtime
@liveblocks/node
A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
232.6k---4 days ago
3.24.2
ESM + CommonJSBundledWebSockets and realtime
get-browser-rtc
get webrtc browser methods unprefixed
228.5k+42%-5 years ago
1.1.0
CommonJSNoneVideo and audio, WebSockets and realtime
@liveblocks/react
A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
216.6k---4 days ago
3.24.2
ESM + CommonJSBundledWebSockets and realtime, React
jest-websocket-mock
Mock websockets and assert complex websocket interactions with Jest
212.9k+47%-3 years ago
2.5.0
ESM + CommonJSBundledTesting, WebSockets and realtime
extended-eventsource
Spec compliant EventSource implementation for browsers and Node.JS
212k+234%--
2.1.0
ESM + CommonJSBundledWebSockets and realtime
socketio-wildcard
socket.io with a wildcard event
210.8k+37%-9 years ago
2.0.0
CommonJSNoneWebSockets and realtime
eventsource-polyfill
A browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/)
201.2k-26%-11 years ago
0.9.6
CommonJSNonePolyfills and shims, WebSockets and realtime
react-native-webrtc
WebRTC for React Native
175.5k+432%-2 months ago
124.0.8
ESM + CommonJSBundledReact, WebSockets and realtime
pubnub
PubNub SDK for JavaScript. Publish/subscribe messaging over HTTP long-poll with server-assigned message ordering, channel occupancy via Here Now, and message history through Message Persistence.
174.7k+31%--
13.0.3
CommonJSBundledWebSockets and realtime
@solid-primitives/websocket
Primitive to create a web socket connection
173.8k---3 months ago
1.4.0
ESM onlyBundledWebSockets and realtime
@sanity/access-ui
Shared request-access screen and access-request logic for Sanity applications
171k---2 days ago
6.16.0
ESM onlyBundledWebSockets and realtime, React
@telnyx/webrtc
Telnyx WebRTC Client
169.5k---1 month ago
2.27.10
ESM + CommonJSBundledVideo and audio, WebSockets and realtime
@anycable/web
AnyCable JavaScript client for web
169.3k---7 months ago
1.1.1
ESM onlyBundledWebSockets and realtime
@tanstack/ai-client
Framework-agnostic headless client for TanStack AI chat, realtime sessions, streaming transports, and media generations.
166.3k---today
0.35.1
ESM onlyBundledWebSockets and realtime, TypeScript tooling
eventsource-client
Modern EventSource client for browsers and Node.js
166.2k+350%--
1.2.0
ESM + CommonJSBundledWebSockets and realtime
@liveblocks/react-ui
A set of React pre-built components for the Liveblocks products. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
156.8k---4 days ago
3.24.2
ESM + CommonJSBundledWebSockets and realtime, React
@sanity/validation
Document validation for Sanity schemas
138.2k---2 days ago
6.16.0
ESM onlyBundledSchema validation, React
websocket-stream
Use websockets with the node streams API. Works in browser and node
135.5k-26%-6 years ago
5.5.2
CommonJSNoneWebSockets and realtime
@daily-co/daily-react
Daily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.
133.5k---2 months ago
0.26.0
ESM + CommonJSBundledReact, Video and audio
@tanstack/ai-react
React hooks for TanStack AI streaming chat, realtime voice, structured outputs, and media generation.
130.9k---today
0.29.1
ESM onlyBundledReact, WebSockets and realtime
rivetkit
Lightweight libraries for building stateful actors on edge platforms
128.6k+16291%-today
2.3.21
ESM + CommonJSBundledWebSockets and realtime, Cloud SDKs
paho-mqtt
Eclipse Paho JavaScript MQTT client for Browsers
125k-23%--
1.1.0
CommonJSNoneWebSockets and realtime
@tanstack/ai-openai
OpenAI adapter for TanStack AI chat, tools, images, video, speech, transcription, realtime, and structured outputs.
123.9k---today
0.24.1
ESM onlyBundledWebSockets and realtime, TypeScript tooling
@feathersjs/feathers
A framework for real-time applications and REST API with JavaScript and TypeScript
118.3k---13 days ago
5.0.50
CommonJSBundledWebSockets and realtime, TypeScript tooling
@n1ru4l/graphql-live-query
[![npm version](https://img.shields.io/npm/v/@n1ru4l/graphql-live-query.svg)](https://www.npmjs.com/package/@n1ru4l/graphql-live-query) [![npm downloads](https://img.shields.io/npm/dm/@n1ru4l/graphql-live-query.svg)](https://www.npmjs.com/package/@n1ru4l/
117k---2 months ago
0.11.0
ESM + CommonJSBundledGraphQL, WebSockets and realtime
sip.js
A SIP library for JavaScript
115k+446%-3 years ago
0.21.2
ESM onlyBundledTypeScript tooling, WebSockets and realtime
@nktkas/rews
Drop-in WebSocket replacement with automatic reconnection.
110.6k---24 days ago
5.0.0
ESM onlyBundledWebSockets 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.

  • simple-websocketSimple, EventEmitter API for WebSockets (browser)
  • sanitySanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
  • mock-socketJavascript mocking library for websockets and socket.io
  • nano-pubsubZero dependency, tiny (<0.5 kb) publish/subscribe
  • @d-fischer/isomorphic-wsIsomorphic implementation of WebSocket
  • natsNode.js client for NATS, a lightweight, high-performance cloud native messaging system
  • pusherNode.js client to interact with the Pusher Channels REST API
  • pm2-axonHigh-level messaging & socket patterns implemented in pure js
  • reconnecting-websocketReconnecting WebSocket
  • brcastTiny data broadcaster with 0 dependencies
  • @anycable/coreAnyCable JavaScript client library core functionality
  • chaingateMulti-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO
  • @stomp/stompjsSTOMP client for Javascript and Typescript
  • botframework-streamingStreaming library for the Microsoft Bot Framework
  • react-use-websocketReact Hook for WebSocket communication
  • @ably/chatAbly Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, cust
  • bytebufferThe swiss army knife for binary data in JavaScript.
  • @liveblocks/clientA client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
  • @nats-io/transport-nodeNode.js client for NATS, a lightweight, high-performance cloud native messaging system
  • graphql-sseZero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client
  • express-wsWebSocket endpoints for Express applications
  • pubsub-jsDependency free publish/subscribe library
  • @livekit/react-native-webrtcWebRTC for React Native
  • @liveblocks/nodeA server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
  • get-browser-rtcget webrtc browser methods unprefixed
  • @liveblocks/reactA set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
  • jest-websocket-mockMock websockets and assert complex websocket interactions with Jest
  • extended-eventsourceSpec compliant EventSource implementation for browsers and Node.JS
  • socketio-wildcardsocket.io with a wildcard event
  • eventsource-polyfillA browser polyfill for W3C EventSource (http://www.w3.org/TR/eventsource/)
  • react-native-webrtcWebRTC for React Native
  • pubnubPubNub SDK for JavaScript. Publish/subscribe messaging over HTTP long-poll with server-assigned message ordering, channel occupancy via Here Now, and message history through Message Persistence.
  • @solid-primitives/websocketPrimitive to create a web socket connection
  • @sanity/access-uiShared request-access screen and access-request logic for Sanity applications
  • @telnyx/webrtcTelnyx WebRTC Client
  • @anycable/webAnyCable JavaScript client for web
  • @tanstack/ai-clientFramework-agnostic headless client for TanStack AI chat, realtime sessions, streaming transports, and media generations.
  • eventsource-clientModern EventSource client for browsers and Node.js
  • @liveblocks/react-uiA set of React pre-built components for the Liveblocks products. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
  • @sanity/validationDocument validation for Sanity schemas
  • websocket-streamUse websockets with the node streams API. Works in browser and node
  • @daily-co/daily-reactDaily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.
  • @tanstack/ai-reactReact hooks for TanStack AI streaming chat, realtime voice, structured outputs, and media generation.
  • rivetkitLightweight libraries for building stateful actors on edge platforms
  • paho-mqttEclipse Paho JavaScript MQTT client for Browsers
  • @tanstack/ai-openaiOpenAI adapter for TanStack AI chat, tools, images, video, speech, transcription, realtime, and structured outputs.
  • @feathersjs/feathersA framework for real-time applications and REST API with JavaScript and TypeScript
  • @n1ru4l/graphql-live-query[![npm version](https://img.shields.io/npm/v/@n1ru4l/graphql-live-query.svg)](https://www.npmjs.com/package/@n1ru4l/graphql-live-query) [![npm downloads](https://img.shields.io/npm/dm/@n1ru4l/graphql-live-query.svg)](https://www.npmjs.com/package/@n1ru4l/
  • sip.jsA SIP library for JavaScript
  • @nktkas/rewsDrop-in WebSocket replacement with automatic reconnection.