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
@claude-flow/mcp
Standalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
14.4k---4 months ago
3.0.0-alpha.9
ESM onlyBundledWebSockets and realtime
sockette
🧦 The cutest little WebSocket wrapper!
14.2k-36%-7 years ago
2.0.6
ESM + CommonJSBundledWebSockets and realtime
@socket.io/sticky
An alternative to the sticky-session package (https://github.com/indutny/sticky-session)
13.9k---2 months ago
2.0.1
CommonJSBundledWebSockets and realtime
sails-hook-sockets
Implements socket.io support in Sails
13.8k+18%-1 year ago
3.0.2
CommonJSNoneWebSockets and realtime
@n1ru4l/in-memory-live-query-store
[![npm version](https://img.shields.io/npm/v/@n1ru4l/in-memory-live-query-store.svg)](https://www.npmjs.com/package/@n1ru4l/in-memory-live-query-store) [![npm downloads](https://img.shields.io/npm/dm/@n1ru4l/in-memory-live-query-store.svg)](https://www.np
13.8k---2 months ago
0.11.0
ESM + CommonJSBundledGraphQL, WebSockets and realtime
@tny-robotics/sdk
Typescript SDK for TNY-Robotics robots
13.7k---12 days ago
1.2.1
ESM + CommonJSBundledWebSockets and realtime
@thaunknown/simple-websocket
Simple, EventEmitter API for WebSockets (browser)
13.7k---2 months ago
9.1.5
ESM onlyNoneWebSockets and realtime
@data-client/react
Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch
13.4k---4 months ago
0.18.1
ESM + CommonJSBundledWebSockets and realtime, GraphQL
@data-client/core
Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch
13.3k---4 months ago
0.18.1
ESM + CommonJSBundledWebSockets and realtime, GraphQL
nanosocket
tiny modern websocket client
13.1k-3%-8 years ago
1.1.0
CommonJSNoneWebSockets and realtime
@socket.io/mongo-adapter
The Socket.IO MongoDB adapter, allowing to broadcast events between several Socket.IO servers
13k---1 year ago
0.4.0
CommonJSBundledDatabase clients and drivers, WebSockets and realtime
@mswjs/socket.io-binding
Binding to mock Socket.IO connections with Mock Service Worker
13k---1 year ago
0.2.0
ESM onlyBundledWebSockets and realtime, Dev servers and API mocking
bybit-api
Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.
12.7k+18%-1 day ago
4.7.7
CommonJSBundledBlockchain and Web3, WebSockets and realtime
@ytspar/sweetlink
Autonomous development toolkit for AI agents - screenshots, DOM queries, console logs, and JavaScript execution via WebSocket and Chrome DevTools Protocol
12.7k---1 month ago
1.27.1
ESM onlyBundledWebSockets and realtime
@n1ru4l/graphql-live-query-patch
Shared logic for building live query patch implementations.
12.4k---2 months ago
0.8.0
ESM + CommonJSBundledGraphQL, WebSockets and realtime
cable_ready
CableReady helps you create great real-time user experiences by making it simple to trigger client-side DOM changes from server-side Ruby.
12.1k-15%-1 year ago
5.0.6
ESM + CommonJSNoneWebSockets and realtime
@soniox/node
Official Soniox SDK for Node
12k---1 month ago
2.3.0
ESM + CommonJSBundledWebSockets and realtime
atmosphere.js
Modern TypeScript client for Atmosphere Framework - WebSocket/SSE/Comet support
12k+34%-today
5.0.46
ESM + CommonJSBundledWebSockets and realtime, TypeScript tooling
@foxglove/ws-protocol
Foxglove WebSocket protocol
11.9k---1 year ago
0.8.0
ESM + CommonJSBundledWebSockets and realtime
time-cache
A key-value cache that puts a expiry date on its entries.
11.6k+86%-9 years ago
0.3.0
CommonJSNoneCaching, Date and time
@tanstack/ai-grok
xAI Grok adapter for TanStack AI chat, image generation, realtime, and structured outputs.
11.3k---today
0.20.1
ESM onlyBundledWebSockets and realtime, TypeScript tooling
@kubb/studio
Kubb Studio client runtime. Connects a Kubb project to Kubb Studio over WebSocket and streams code generation events, shared by the `kubb studio` CLI command and the Docker agent.
11.1k---1 day ago
5.3.16
ESM + CommonJSBundledDocumentation tooling, TypeScript tooling
socketcluster
Highly scalable realtime framework with support for async/await
11.1k+36%-1 month ago
20.1.0
-NoneWebSockets and realtime
react-use-websocket-lite
React Hook for WebSocket communication
11k+1633%-3 months ago
1.1.1
ESM onlyBundledWebSockets and realtime, React
@hapi/nes
WebSocket adapter plugin for hapi routes
10.7k---1 year ago
14.0.1
CommonJSBundledWebSockets and realtime
@twilio/webrtc
WebRTC-related APIs and shims used by twilio-video.js
10.7k---4 years ago
4.6.0
CommonJSNoneVideo and audio, WebSockets and realtime
@lynx-js/websocket
A WebSocket implementation for Lynx
10.4k---1 year ago
0.0.4
ESM + CommonJSBundledWebSockets and realtime
universal-websocket-client
Use the same WebSocket client code in a browser or Node.js for isomorphic apps
10.3k-60%-1 year ago
1.0.3
CommonJSNoneWebSockets and realtime
cometd
Comet and WebSocket library for web messaging
10.3k+17%-3 months ago
9.0.1
ESM onlyBundledWebSockets and realtime
strophe.js
Strophe.js is an XMPP library for JavaScript
10.2k+8%-2 months ago
5.0.0
ESM + CommonJSBundledWebSockets and realtime
upgrade
A simple Node websocket library to handle http upgrades.
10.2k-42%-12 years ago
1.1.0
CommonJSNoneWebSockets and realtime
trystero
Simple, serverless WebRTC
10.2k+1669%--
0.25.4
ESM onlyBundledCloud SDKs, WebSockets and realtime
node-nats-streaming
Node.js client for NATS Streaming, a lightweight, high-performance cloud native messaging system
10k-6%-6 years ago
0.3.2
CommonJSBundledWebSockets and realtime
@openclaw/gateway-protocol
Typed schemas and runtime validators for the OpenClaw Gateway WebSocket protocol
10k---1 day ago
2026.9.6
ESM onlyBundledSchema validation, WebSockets and realtime
@testrtc/watchrtc-sdk
Monitor your WebRTC application by collecting WebRTC statistics from end users
9.9k---1 month ago
1.44.0
CommonJSBundledVideo and audio, WebSockets and realtime
diffusion
Diffusion JavaScript client
9.9k-34%-4 months ago
6.12.2
CommonJSBundledWebSockets and realtime
@openclaw/gateway-client
Reference WebSocket client for the OpenClaw Gateway protocol
9.8k---1 day ago
2026.9.6
ESM onlyBundledWebSockets and realtime
@epic-web/test-server
Utility for creating HTTP and WebSocket servers for testing
9.4k---1 year ago
0.1.6
ESM onlyBundledTesting, WebSockets and realtime
vue-native-websocket
Native WebSocket plugin and composable for Vue 3
9.3k+30%-3 months ago
3.0.0
ESM + CommonJSBundledWebSockets and realtime, Vue
@tencent-connect/qqbot-nodejs
Tencent QQ Bot Node.js SDK — protocol-level client for the QQ Open Platform (HTTP + WebSocket Gateway, message + media + streaming).
9k---2 months ago
1.0.4
ESM onlyBundledWebSockets and realtime
vue-socket.io
socket.io implementation for Vue.js and Vuex
9k+20%-6 years ago
3.0.10
CommonJSNoneWebSockets and realtime, State management
sfdx-faye
Simple pub/sub messaging for the web
9k-36%-7 years ago
1.0.9
CommonJSNoneWebSockets and realtime
trtc-sdk-v5
Tencent Cloud RTC SDK for Web
8.9k-69%-1 day ago
5.20.1
CommonJSBundledVideo and audio, WebSockets and realtime
ocpp-rpc
A client & server implementation of the WAMP-like RPC-over-websocket system defined in the OCPP protocols (e.g. OCPP1.6-J and OCPP2.0.1).
8.9k+496%-1 year ago
2.2.1
CommonJSBundledWebSockets and realtime
@teamwork/websocket-json-stream
Expose WebSockets with JSON as an object stream.
8.8k---7 years ago
2.0.0
CommonJSNoneWebSockets and realtime
@open-draft/test-server
HTTP/HTTPS testing server for your tests.
8.7k---1 year ago
0.7.2
ESM onlyBundledWebSockets and realtime
lightstreamer-client-web
This package includes the resources needed to write a Lightstreamer client.
8.6k+51%-1 year ago
9.2.3
ESM + CommonJSBundledWebSockets and realtime
next-ws
Add support for WebSockets in the Next.js app directory
8.5k+232%-1 day ago
2.2.16
CommonJSBundledWebSockets and realtime
semantic-sdp
Minimal SDP information semantic data model and parsing tools
8.5k+87%-2 years ago
3.31.1
CommonJSBundledVideo and audio, WebSockets and realtime
harperdb
HarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.
8.3k+382%-30 days ago
4.7.38
CommonJSNoneWebSockets 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.

  • @claude-flow/mcpStandalone MCP (Model Context Protocol) server - stdio/http/websocket transports, connection pooling, tool registry
  • sockette🧦 The cutest little WebSocket wrapper!
  • @socket.io/stickyAn alternative to the sticky-session package (https://github.com/indutny/sticky-session)
  • sails-hook-socketsImplements socket.io support in Sails
  • @n1ru4l/in-memory-live-query-store[![npm version](https://img.shields.io/npm/v/@n1ru4l/in-memory-live-query-store.svg)](https://www.npmjs.com/package/@n1ru4l/in-memory-live-query-store) [![npm downloads](https://img.shields.io/npm/dm/@n1ru4l/in-memory-live-query-store.svg)](https://www.np
  • @tny-robotics/sdkTypescript SDK for TNY-Robotics robots
  • @thaunknown/simple-websocketSimple, EventEmitter API for WebSockets (browser)
  • @data-client/reactAsync State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch
  • @data-client/coreAsync State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch
  • nanosockettiny modern websocket client
  • @socket.io/mongo-adapterThe Socket.IO MongoDB adapter, allowing to broadcast events between several Socket.IO servers
  • @mswjs/socket.io-bindingBinding to mock Socket.IO connections with Mock Service Worker
  • bybit-apiComplete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.
  • @ytspar/sweetlinkAutonomous development toolkit for AI agents - screenshots, DOM queries, console logs, and JavaScript execution via WebSocket and Chrome DevTools Protocol
  • @n1ru4l/graphql-live-query-patchShared logic for building live query patch implementations.
  • cable_readyCableReady helps you create great real-time user experiences by making it simple to trigger client-side DOM changes from server-side Ruby.
  • @soniox/nodeOfficial Soniox SDK for Node
  • atmosphere.jsModern TypeScript client for Atmosphere Framework - WebSocket/SSE/Comet support
  • @foxglove/ws-protocolFoxglove WebSocket protocol
  • time-cacheA key-value cache that puts a expiry date on its entries.
  • @tanstack/ai-grokxAI Grok adapter for TanStack AI chat, image generation, realtime, and structured outputs.
  • @kubb/studioKubb Studio client runtime. Connects a Kubb project to Kubb Studio over WebSocket and streams code generation events, shared by the `kubb studio` CLI command and the Docker agent.
  • socketclusterHighly scalable realtime framework with support for async/await
  • react-use-websocket-liteReact Hook for WebSocket communication
  • @hapi/nesWebSocket adapter plugin for hapi routes
  • @twilio/webrtcWebRTC-related APIs and shims used by twilio-video.js
  • @lynx-js/websocketA WebSocket implementation for Lynx
  • universal-websocket-clientUse the same WebSocket client code in a browser or Node.js for isomorphic apps
  • cometdComet and WebSocket library for web messaging
  • strophe.jsStrophe.js is an XMPP library for JavaScript
  • upgradeA simple Node websocket library to handle http upgrades.
  • trysteroSimple, serverless WebRTC
  • node-nats-streamingNode.js client for NATS Streaming, a lightweight, high-performance cloud native messaging system
  • @openclaw/gateway-protocolTyped schemas and runtime validators for the OpenClaw Gateway WebSocket protocol
  • @testrtc/watchrtc-sdkMonitor your WebRTC application by collecting WebRTC statistics from end users
  • diffusionDiffusion JavaScript client
  • @openclaw/gateway-clientReference WebSocket client for the OpenClaw Gateway protocol
  • @epic-web/test-serverUtility for creating HTTP and WebSocket servers for testing
  • vue-native-websocketNative WebSocket plugin and composable for Vue 3
  • @tencent-connect/qqbot-nodejsTencent QQ Bot Node.js SDK — protocol-level client for the QQ Open Platform (HTTP + WebSocket Gateway, message + media + streaming).
  • vue-socket.iosocket.io implementation for Vue.js and Vuex
  • sfdx-fayeSimple pub/sub messaging for the web
  • trtc-sdk-v5Tencent Cloud RTC SDK for Web
  • ocpp-rpcA client & server implementation of the WAMP-like RPC-over-websocket system defined in the OCPP protocols (e.g. OCPP1.6-J and OCPP2.0.1).
  • @teamwork/websocket-json-streamExpose WebSockets with JSON as an object stream.
  • @open-draft/test-serverHTTP/HTTPS testing server for your tests.
  • lightstreamer-client-webThis package includes the resources needed to write a Lightstreamer client.
  • next-wsAdd support for WebSockets in the Next.js app directory
  • semantic-sdpMinimal SDP information semantic data model and parsing tools
  • harperdbHarperDB is a distributed database, caching service, streaming broker, and application development platform focused on performance and ease of use.