What is XTXP?
XTXP lets many people edit the same XML document at the same time, on different software, over unreliable networks. Anyone can fork the document’s history into a session, preview it over the original, and merge it back.
The first document type is SVG, so the first application is a shared vector canvas with spatial chat and comments. It isn’t a separate layer: the canvas, chat and comments are views that muppet provides wherever it runs. The engine is not SVG-specific, though. Any XML tree works, and an HTML page parsed into a tree is close enough, which is what makes live web branching possible.
The problem
Section titled “The problem”Collaborative design tools today mostly share three traits:
- Identity and data live with one vendor. Your drawing and your account sit in that company’s cloud.
- Collaboration needs their client. Usually that means a heavy JavaScript app, or a desktop app that only talks to its own servers.
- History is linear. You can undo, but you can’t fork the history, preview the fork over the current state, and merge it back.
The XTXP answer
Section titled “The XTXP answer”- Identity as a public key, fetched to a device through a sign-in people already have, so no central account owns anyone.
- A CRDT engine (Xmesh) that merges concurrent edits without a central authority. Every client runs it, so desktop clients keep working offline.
- Sessions as history. Going back to an earlier version, proposing an edit and previewing it are all the same thing: a session forked from a point in history. Ctrl+Z still undoes just your own recent actions.
- Plain HTML as a first-class client. A server-side muppet does the CRDT work for a browser that only submits forms and follows links.
Status
Section titled “Status”The design is still in progress. The decision log records what has been settled, and the open questions list what hasn’t. Behaviour is defined first, as test vectors, and code follows.
The first working code exists. In M1-y-sweet, two people in two terminals edit the same SVG drawing live through a stock y-sweet, on Xmesh, XTXP’s CRDT engine. It is a spike to learn from, not XTXP’s own host. The report covers what it does and what testing it found.