Y-Multiplex-WebSocket-Server

JSON →
library 0.3.0 ·javascript
verified Jun 7, 2026

A multiplex-first Yjs WebSocket server and client provider that allows a single physical WebSocket to carry multiple routed Yjs documents under the same namespace. Supports awareness, optional BroadcastChannel sync, optional persistence via callback, and optional NATS cluster sync. The stable version 0.3.0 requires yjs ^13 || ^14 and Node >=16 with npm >=8. Unlike y-websocket which spawns a separate WebSocket per document, this package reuses one connection per namespace, reducing overhead. Ships a bundled CLI for quick start and exports low-level utilities for custom server wiring. Active development.