A summary of the new collaboration binding: how it stores documents, what it keeps when people and agents edit at once, the decisions behind it, and how it compares with @lexical/yjs and other editors.
- What it is.
@lexical/yis a new, opt-in collaboration binding for Lexical on Yjs 14.@lexical/yjsstays as it is. It targets documents that people and AI agents edit at the same time, through the editor or a server-side API. - What's different. Text is stored flat, with a small marker at the end of each block. Splitting, joining or retyping a block only touches a marker, so a collaborator's typing survives restructuring. In every tree-based binding we compared, it doesn't.
- What it costs. A 10,000-edit session takes 217 KB instead of 2.8 MB. Keystroke speed matches the current binding. The binding is larger than the others (about 11.7k lines with comments) because it keeps typing through restructures.
