Operational Transform: Converging Concurrent Edits
Two mobile clients edit the same text buffer at once over a lagging connection. Watch Operational Transform's insert/delete transform rules reconcile the concurrent edits into one identical document — or, with OT switched off, watch the two copies silently diverge.
Two simulated mobile clients, A and B, edit the same text buffer at once over a connection with real latency. Every keystroke becomes a genuine insert/delete operation that applies instantly on its own device and travels to the other after the configured delay; the classic Operational Transform rules — the same insert-vs-insert, insert-vs-delete and delete-vs-delete transform functions used by real collaborative editors — shift each incoming operation's index to account for what the receiving side already did locally, so both documents provably converge to one identical string no matter the order operations arrive in. Switch OT off and the very same edits apply at their raw, untransformed positions instead, and the two rows of characters drift apart in real time — a direct, visual demonstration of why naive last-write-wins syncing corrupts shared documents on real mobile networks.
Two mobile clients edit the same shared text buffer at once over a lagging connection; watch Operational Transform's insert/delete transform rules reconcile the concurrent edits into one identical document, or switch OT off and watch the two copies silently diverge.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install