Run your own collaboration infrastructure for full control over data, persistence, and scaling.Documentation Index
Fetch the complete documentation index at: https://superdoc-caio-toolbar-formatting-marks-button-opt-in.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Why self-host?
Data Control
Keep all data on your infrastructure
Custom Persistence
Use your own database (PostgreSQL, S3, Redis)
On-Premise
Deploy behind your firewall
No Vendor Lock-in
Standard Yjs protocol, portable data
Architecture
Choose your approach
SuperDoc’s integration contract is provider-agnostic: pass{ ydoc, provider } to modules.collaboration and the server choice is yours. Any Yjs-compatible server works.
| Option | Notes | Setup Time |
|---|---|---|
| YHub | Advanced Yjs backend for attribution, activity, and revision-history workflows. Beta; validate licensing and infrastructure requirements. | 1+ hour |
| Hocuspocus | Mature self-hosted Yjs server with auth, persistence, and scaling hooks. | 30 mins |
| SuperDoc Yjs | Minimal reference server for prototypes and local development. Not production infrastructure. | 30 mins |
At a glance
- YHub
- Hocuspocus
- SuperDoc Yjs
Advanced Yjs backend for attribution, activity, and revision-history workflows. Redis + Postgres backing. Beta; validate licensing and infrastructure requirements.Setup guide
Client connection options
The supported contract is provider-agnostic: you create the Yjs provider, SuperDoc plugs into it.Provider-agnostic (recommended)
HocuspocusProvider, WebsocketProvider from y-websocket (compatible with YHub and SuperDoc Yjs), LiveblocksYjsProvider, or your own.
URL-based (deprecated)
Requirements
Server
- Node.js 18+
- WebSocket support (native or via library)
- Persistent storage for documents
Network
- WSS (WebSocket Secure) in production
- Proper CORS configuration
- Load balancer with sticky sessions (if scaling)
Next steps
YHub setup
Attribution and revision-history workflows (beta)
Hocuspocus setup
Mature self-hosted Yjs server
SuperDoc Yjs reference
Minimal server for prototypes and local development
Configuration
All client-side options and events

