r/HelixEditor • u/Watusi7 • 16h ago
Collaborative editing for Helix - alpha, feedback welcome
Hi! I've been working on a Helix fork that adds p2p collaborative editing via CRDT (conflict-free replicated data types). There's no server. Editors connect to each other directly with iroh, encrypted end to end, and edits are merged with Loro.

How it works
The peers are connected using iroh tickets. A ticket is an address that allows other users to connect to you. To start a session, you need to create a ticket: Space m n or :session-new. The ticket is copied to the clipboard, and should be sent manually to other users. To join a session, copy the ticket to your clipboard, and then: Space m j or :session-join.
There's no host in a session: everyone is equal. Local buffers are unshared by default, but anyone can share a buffer with Space m s or :session-share. It stays shared until the owner unshares it, closes it or leaves. This is really not well suited for collaborating on codebases, but rather for sharing standalone buffers with other users (e.g. a brainstorming session). At least for the moment I wanted to keep this feature minimalistic and focus on good ergonomics and robustness.
You can navigate shared buffers using the shared buffer picker: Space m f. You can see connected peers using the peer picker: Space m p. Selecting a peer jumps to their cursor. Remote buffers (not owned) are kept in memory, but you can save a local copy with :write <path>.
Try it
Download the latest release (Linux only), or clone the repository and build manually. Check out the book for more documentation.
It can be tried out locally (two terminals) or remotely (two separate computers).
Feedback
The feature is not perfect. Currently it only works if no messages are lost, nobody drops out, and the ticket's owner is online, but I wanted to get early feedback on it.
Would you use this and for what? For you, are there any must-have features? Comments here are great, or open a discussion or an issue. Thanks!









