How co-editing keeps your work safe
A manuscript written with co-authors passes through many hands and many connections: a train, a conference network, a laptop closed mid-sentence. This article describes what Manulyx does with your text in each of those moments, and what it does when something goes wrong.
Writing at the same time
Everyone in a file sees the others’ cursors and edits as they happen. Underneath, each open file is a shared document built on Yjs, a CRDT: every editor holds a copy, and concurrent edits merge without locks and without a “someone else changed this file” dialog. The copies reach the same text whatever order the edits arrive in, which is what lets a late reconnection end up where everyone else is.
Who may write is decided by the server
A project is private to its members, and each member holds one of five roles: owner, co-owner, co-author, commenter or viewer. Every request is checked against that role on the server; the interface hiding a button is a convenience, not the control.
- The live connection opens with a one-use ticket issued by the application. The collaboration server learns from it who you are and whether you may write, and refuses a reader’s edits before they are applied. A presence update claiming somebody else’s name is dropped rather than passed on.
- The editor stays read-only until your right to write has been established, so text is never typed into a buffer that has nowhere to go.
- Every save goes through the same checks as any other write, and is recorded under the name of the person whose edit it is.
- If the file stops being writable while it is open, for example because its stage has just been marked submitted, the editor locks and says why, instead of accepting text it cannot save.
How text is saved
Saving is continuous; there is nothing to press. A moment after you stop typing, the text is written back, and the editor shows Saving… until the server confirms it is stored. A few further protections sit behind that:
- The collaboration server will not write an empty document over a file that had content, so a file that failed to load can never be saved as blank.
- When the service is restarted for an update, every open file is saved first.
- A save that cannot reach the server is tried again before you are told anything, and the editor keeps retrying through longer interruptions. An error that means the server is briefly not there, as happens while a new version starts, is treated as exactly that, not as the save being refused.
- You cannot leave a file with unsaved text in it: switching files waits until its contents are stored.
When the connection drops
The dot beside the faces in the top bar is green when you are connected, amber while connecting and grey when you are offline. If it goes grey, keep typing. Your edits are kept in your browser and sent when the connection returns; the editor reconnects by itself, waiting a little longer between attempts each time.
On reconnecting, the editor compares what you typed offline with what your co-authors did meanwhile, using the text both sides last agreed on, and applies your changes as a plain difference. Neither side’s work silently replaces the other’s, and nothing is duplicated.
While a change is unsaved, the editor also keeps a copy of the file in your browser’s own storage. The copy belongs to your account, so on a shared computer one person’s unsaved paragraph is never offered to the next, and it is cleared as soon as a save succeeds. If the tab was closed or the browser stopped before the server had the text, opening the file again in the same browser offers it back. It is never restored without asking, because a co-author may have changed the file since. The browser also asks before closing a tab that holds unsaved text.
Every edit is recorded
The Changes tab is the record of every edit: who changed which file, and when. You can undo your own edits, and owners and co-owners can revert somebody else’s. The record itself is append-only, enforced by the database, and cannot be edited or deleted by anyone. Where a project needs review, track changes can be switched on for yourself or for everyone, or made required, so that nobody’s edits skip review, the owner’s included.
Saved versions and the Trash
- Manulyx saves a version of the project automatically each time a stage is sent, before Claude’s first edits through the connector, and before a file is restored from History.
- Owners, co-owners and co-authors can save a named checkpoint at any time, such as “Sent to supervisor, October”.
- The History tab compares any saved version with now, and restores a file to it. The current state is saved first, so a restore can itself be undone.
- A deleted file or project goes to the Trash on the Projects page and can be restored for 30 days.
How far back History reaches follows the project owner’s plan. Versions outside that window are hidden, not deleted, and the versions saved when a stage was sent are always shown.
Backups
Every night the database and every file it refers to are copied off the servers the application runs on, to Cloudflare R2 object storage. Files are stored under a hash of their contents, so a night’s backup only adds what is new and never overwrites what an earlier night wrote. Thirty nightly database snapshots are kept, and an alert is raised automatically if a nightly backup does not complete.
A backup is only as good as the restore, so we maintain a restore procedure that loads a backup into a separate database, checks every file the restored records refer to against its content hash, and reports anything missing rather than reporting success.
What we do not claim
Manulyx does not currently offer a contractual service level. The state of each part of the service, live co-editing included, is published on the status page, checked from outside the service. And at any time, on every plan, anyone who can read a project can download all of it as a ZIP archive, so your work never depends on Manulyx alone. The wider picture is on the Trust centre and Security pages.
More articles
- After a rejection: moving a paper to another journal's template
- Checking your references for retracted papers before you submit
- How to convert a Word document to LaTeX (equations included)
- How to write a response letter to reviewers
- How to make a marked (tracked-changes) manuscript in LaTeX
- Fixing common BibTeX and biblatex errors
- Choosing and setting up a thesis template in LaTeX
- How Manulyx keeps the version you submitted
- How the marked manuscript is built
- All articles