Installation
Quick Start
Server
Client
Builder API
TheCollaborationBuilder provides a fluent interface:
Hooks
onLoad (Required)
Load document state from storage:onAutoSave (Required)
Save document state to storage:onAuthenticate (Optional)
Validate users connecting to documents:onChange (Optional)
React to document changes (fires on every edit):Storage Examples
- PostgreSQL
- S3
- Redis
Error Handling
Production Deployment
Docker
Environment Variables
Health Check
Security
1
Use WSS in production
Always use encrypted WebSocket (
wss://) in production2
Implement authentication
Use the
onAuthenticate hook to validate users3
Validate document IDs
4
Rate limit connections
Limit connections per user to prevent abuse

