Setup
1. Create account
- Go to liveblocks.io
- Sign up for free
- Create a new project
- Copy your Public API Key (
pk_...)
2. Install dependencies
3. Basic implementation
modules.collaboration = { ydoc, provider }.
Room management
Each room represents a collaborative session. Use unique room IDs for different documents:Room naming best practices
User presence
Showing active users
Custom user colors
Authentication
For production, use secret keys with your backend:Frontend
Backend (Next.js API Route)
Persistence
Liveblocks automatically persists your Yjs document. Data is stored securely and restored when users rejoin.Free tier includes 30 days of storage. Paid plans include unlimited storage
with custom retention policies.
Error handling
Cleanup
Always clean up when the component unmounts:Pricing
| Tier | MAU | Price |
|---|---|---|
| Free | 250 | $0 |
| Starter | 10,000 | $99/mo |
| Pro | 100,000 | Contact |
MAU = Monthly Active Users. Each user who connects to a room counts once per
month.
Resources
Liveblocks Docs
Official documentation
Working Example
Complete source code
Next steps
Client Configuration
All SuperDoc collaboration options
Self-Hosted Alternative
Run your own collaboration server

