DEFINITION
Hocuspocus
Hocuspocus Collaboration Backend
Definition
A WebSocket server built on top of Yjs that handles real-time synchronization, presence/awareness, persistence, and Redis-based scaling for collaborative applications. v4 introduces universal WebSocket support (Node, Bun, Deno, Cloudflare Workers), type-safe Context generics, sequential document processing, and edge-native deployment capabilities.
Examples in the Wild
- Example 1:Real-time collaboration in Tiptap rich text editor
- Example 2:Multi-agent state synchronization on Cloudflare Workers
- Example 3:Presence tracking for distributed agent systems
- Example 4:Syncing structured data across Yjs clients (Slate, Quill, Monaco, ProseMirror)