- The SuperDoc SDK (
@superdoc-dev/sdkorsuperdoc-sdk) for headless/document automation - SuperDoc real-time collaboration (Yjs providers like Liveblocks, Hocuspocus, or SuperDoc Yjs)
Two session types
These are different concepts:- Collaboration session: a shared Yjs room/document (
ydoc+ provider) used by browser editors. - SDK session: a SuperDoc Document Engine editing session created by
doc.open.
SuperDoc JS collaboration contract
In the browser, SuperDoc uses a provider-agnostic contract:Using SDK sessions with collaboration-enabled documents
The SDK can work against a document that is also edited collaboratively, but interaction is through SDK/CLI session APIs.Provider choice is unchanged
Provider setup still happens in your app using SuperDoc JS: The SDK integration pattern does not change by provider.Practical guidance
- Use collaboration providers for multi-user real-time editing UX.
- Use SDK sessions for backend automation, workflows, and deterministic operations.
- Keep the distinction explicit in your architecture: provider state vs SDK/CLI session state.

