Storage depends on how your users edit. For real-time collaboration, store the Yjs document state. That is the live source of truth. A DOCX file can seed an empty room, and you can export DOCX snapshots whenever you need Word interop, downloads, audit records, or pinned versions. For single-user or check-in/check-out flows, store DOCX versions directly.Documentation Index
Fetch the complete documentation index at: https://superdoc-artem-comments-small-screen-v4.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Storage approaches
High collaboration
For real-time, multi-user collaboration, each client connects to a real-time collaboration service. Only Yjs updates move through that service. The collaboration server merges those updates and stores the current Yjs state.Complexity: medium: Requires a server-side Yjs service
- The first DOCX can seed an empty room.
- After that, the Yjs document is canonical.
- Each edit is sent as a Yjs update over WebSocket.
- The server stores Yjs updates or periodic Yjs snapshots.
- SuperDoc exports a fresh DOCX from the current Yjs-backed editor state when you need a file.
DOCX archive snapshots
DOCX exports are still useful in real-time collaboration. They are just not the live collaboration store. Use DOCX exports for:- User downloads
- Word or Microsoft 365 workflows
- Audit snapshots
- Version pinning
- Legal review packages
- Backup and restore workflows
Low collaboration
For scenarios where one user edits at a time, use a locking flow. Users check out a document, edit it, and save or check it back in.Complexity: low: Requires storing and querying document lock state
- The active user opens a DOCX.
- Your app prevents other users from editing the same document.
- On save or check-in, export a DOCX and upload it to your backend.
Export methods
The export APIs are covered in Import/Export.Best practices
Store Yjs for live rooms
In real-time collaboration, store Yjs updates or snapshots as the canonical state.
Export DOCX snapshots
Create DOCX versions for downloads, audit records, Word workflows, and pinned releases.
Keep version history
Store enough history to audit, compare, and recover documents.
Use durable storage
Use S3, Google Cloud Storage, Azure Blob Storage, PostgreSQL, or your existing storage layer.

