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
| Option | Best For | Setup Time |
|---|---|---|
| SuperDoc Yjs | New projects, recommended | 30 mins |
| Hocuspocus | TipTap ecosystem users | 30 mins |
| Y-Sweet | High performance, easy deployment | 30 mins |
Quick Comparison
- SuperDoc Yjs
- Hocuspocus
- Y-Sweet
Our official collaboration packageGet Started
- Purpose-built for SuperDoc
- Builder pattern API
- Auto-save with debounce
- Memory management
Client Connection Options
When self-hosting, you have two ways to connect SuperDoc:Option 1: URL-based (SuperDoc manages provider)
SuperDoc creates and manages the WebSocket connection:Option 2: Provider-agnostic (You manage provider)
You create the Yjs provider yourself:The provider-agnostic approach gives you more control but requires managing the provider lifecycle yourself.
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)

