Xray is a collaborative text editor and distributed workspace manager that utilizes conflict-free replicated data types to synchronize real-time edits and directory structures across peers. It functions as both an Electron-based desktop application and a headless editor server that manages workspaces and file systems remotely for connected clients.
The project distinguishes itself by integrating fine-grained version control tracking, recording keystroke-level changes and uncommitted edits between Git commits. It employs a decentralized synchronization model for working copies and uses operation-based state reconciliation to manage non-linear undo history and resolve directory naming conflicts across distributed replicas.
The system covers high-performance text rendering via WebGL and maintains interface responsiveness through an isolated plugin architecture using worker threads. Its broader capabilities include distributed file system management, peer presence tracking, and a key-value history persistence layer for versioned directory evolution.