code multiplexer -- javascript bindings
npm install codemp






> codemp is a collaborative text editing solution to work remotely.
It seamlessly integrates in your editor providing remote cursors and instant text synchronization,
as well as a remote virtual workspace for you and your team.
> codemp is build with state-of-the-art CRDT technology, guaranteeing eventual consistency.
This means that all agents are guaranteed to converge to a consistent state once all changes are received,
_no matter their order or timing_, while preserving each operation's original intention. On top of this
baseline, codemp's protocol is optimized for speed and low network footprint, meaning even slow
connections or dated hardware can provide stable real-time editing.
The full documentation is available on docs.rs.
codemp is primarily used as a plugin in your editor of choice.codemp is available as a plugin for a growing number of text editors. Currently we support:
- NeoVim
- VSCode
- Sublime Text
- IntelliJ Platform
codemp protocol is openly available and servers may be freely developed with it.A reference instance is provided by hexed.technology at code.mp. You may create an account for it here.
During the initial closed beta, registrations will require an invite code. Get in contact if interested.
An open beta is going to follow with free access to a single workspace per user.
After such period, code.mp will switch to a subscription-based model.
codemp. It provides a batteries-included fully-featured Client, managed by the library itself, and exposes a number of functions to interact with it. The host program can obtain a Client handle by connecting, and from that reference can retrieve every other necessary component.codemp is primarily a rlib and can be used as such, but is also available in other languages via FFI.
Adding a dependency on codemp is easy:
cargo add codemp and check the docs for some examples.
| | Build Status | Package | Build Instructions |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| JavaScript |  |  | README |
| Python |  |  | README |
| Java |  |  | README |
| Lua |  |  | README |
As a design philosophy, our binding APIs attempt to perfectly mimic their Rust counterparts, so the main documentation can still be referenced as source of truth.
Refer to specific language documentation for specifics, differences and quirks.
Any other language with C FFI capabilities will be able to use codemp via its bare C bindings.
This may be more complex and may require wrapping the native calls underneath.
If you have a Matrix account, you can join the gitter room directly at #hexedtech_codemp:gitter.im
In case you wish to contribute code, that's great! We love external contributions, feel free to open a PR!