What does Liveblocks handle for a shared draft?
Put the draft in a room, the place where its editors connect. With the Liveblocks Yjs integration, the service stores the draft and passes edits between connected browsers. You still choose the editor, sign people into your app, and decide who can open each draft.
Your app can keep its own list of documents and room IDs. Give each draft a different room ID so the app knows which draft to open.
How do you let two teammates edit a private draft?
Have your server verify the signed-in account before issuing a token, a temporary credential for the collaboration service. With ID tokens, set the room’s default access to none and grant access to the users or groups that belong there. With access tokens, grant the allowed rooms and permissions when the server issues the token. Keep your project secret on the server.
What happens to an edit if someone loses their connection?
Liveblocks attempts to reconnect. The Yjs integration can synchronize edits made while a draft is open after the connection returns. A connected indicator alone does not tell you the draft has synced. If you need a draft to reopen offline after the first load, check the experimental browser storage option and test reopening separately.
Keep the draft open until changes are synced. Closing or refreshing the tab during a disconnect is a different test from editing while the tab stays open.
How do you check that the right people see the same draft?
Use a disposable Liveblocks project and an isolated app copy with fake accounts and one fake draft. Before starting, check the app uses only the test project, sign-in, draft and any notifications or callbacks. If you cannot confirm that, inspect the room permissions and connection settings without attempting a connection.
- Confirm a permitted editWith two allowed accounts in separate browser profiles, open the same test draft. Add a sentence in the first and confirm it appears in the second.
- Try an uninvited accountIn a clean third profile signed in as a fake nonmember, open the same draft link. Verify the actual room connection is denied and no draft content appears. If the app stops at its own page check, record the room connection as untested and inspect the test room permissions separately.
- Check a lost connectionKeep the first draft open and disconnect only that profile. Confirm it lost the room connection while the second stays connected. Add a sentence to each copy in different paragraphs. Confirm the online editor cannot see the offline sentence yet. Reconnect the first and confirm both sentences appear in both copies. A fresh permitted profile should read the saved result.
What should you watch as more people open drafts?
Liveblocks’ fair-use guidelines limit Free to personal, non-commercial projects. Check a paid plan before using it in a business or paid project. The Free plan lists 3,000 collaboration minutes and 500 active rooms per month, with 10 simultaneous connections per room and 10 MB of realtime data per room. Check the dashboard for usage. When a metered Free allowance runs out the affected feature pauses. At the active-room limit, existing rooms stay usable but you cannot create new ones until reset or upgrade.
Paid plans use monthly credits and can bill metered overage. Fixed limits like simultaneous connections per room still apply.
How can you keep a copy outside Liveblocks?
A server-side request can retrieve a room’s Yjs document as JSON or as a binary update, the form Yjs can load into another document. Keep a copy in storage you control. Check that your editor can open a restored sample. Export and restore comments, app permissions and other app records separately if you use them.