← Directory
Realtime & sync
Hocuspocus
The official server for Yjs, providing easy-to-deploy WebSocket endpoints for syncing Yjs documents.
Overview
Hocuspocus is a Node.js server that works seamlessly with Yjs clients. It provides middleware for authentication, persistence, and broadcasting. It is designed to be deployed anywhere (Vercel, Lambda, Docker) and handles the complexities of Yjs document syncing. It is the recommended way to run Yjs in production, especially for serverless environments.
Best for
- Yjs document syncing
- Serverless collaboration backends
- Custom awareness data handling
Trade-offs
vs Liveblocks
Hocuspocus is free and self-hosted but requires you to manage the server; Liveblocks is a managed PaaS.
What XeroHack pre-wires
When you pick Hocuspocus in the interview, the engine emits these files into your scaffold:
- Hocuspocus server setup
- OnBroadcast hook
- OnConnect middleware
Coupon
No active coupon for this tool right now. Sign in to be notified when one is available.
Sign in