Installation
Quick start
Server
Client
{ ydoc, provider } in modules.collaboration.
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
Resources
SuperDoc Yjs example
Complete working example with a Yjs server
Node SDK backend
Server-side document operations alongside the realtime layer
Next steps
Configuration
Client-side options, events, and hooks
Hocuspocus Alternative
Use TipTap’s Yjs server instead

