Skip to main content

codemp

Actions Status docs.rs Status Crates.io Version Gitter Chat GitHub last commit GitHub commits since tagged version

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.

Usage

codemp is primarily used as a plugin in your editor of choice.

Installation

[!IMPORTANT] The editor plugins are in active development. Expect frequent changes.

codemp is available as a plugin for a growing number of text editors. Currently we support:

Registration

The 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.

Development

This is the main client library for 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:

From Rust

Just cargo add codemp and check the docs for some examples.

From supported languages

We provide first-class bindings for these other programming languages:

Build Status Package Build Instructions
JavaScript JavaScript Build NPM Version README
Python Python Build PyPI Version README
Java Java Build Maven Central Version README
Lua Lua Build LuaRocks Version 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.

From other languages

[!IMPORTANT] The common C bindings are not available yet!

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.

Get in Touch

We love to hear back from users! Be it to give feedback, propose new features or highlight bugs, don't hesitate to reach out!

Contacts

We have a public Gitter room available on gitter.im/hexedtech/codemp. It's possible to freely browse the room history, but to send new messages it will be necessary to sign in with your GitHub account.

If you have a Matrix account, you can join the gitter room directly at #hexedtech_codemp:gitter.im

Contributing

If you find bugs or would like to see new features implemented, be sure to open an issue on this repository.

In case you wish to contribute code, that's great! We love external contributions, feel free to open a PR!

Metadata

Release files for codemp 0.8.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codemp 0.8.5
File Size Uploaded
codemp-0.8.5.tar.gz 82.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for codemp 0.8.5
File
codemp-0.8.5-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
codemp-0.8.5-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
codemp-0.8.5-cp38-abi3-manylinux_2_34_x86_64.whl CPython 3.8 abi3 Linux glibc 2.34+ x86-64 Details
codemp-0.8.5-cp38-abi3-macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 11.0+ ARM64 Details

Total release size: 4.5 MB

Release files / codemp-0.8.5.tar.gz

Download URL codemp-0.8.5.tar.gz
Size 82.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4183d35460bf529deaa0873436c90dc81bfeaa1ea0bdb55b428cf76384fd8d44
BLAKE2b-256 checksum
How to use checksums
0f2a8e775e69d769e7d6e892cceb2d5d6b48c93b31fa71636adbe0814ab5d697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.2

Release files / codemp-0.8.5-cp313-cp313-win_amd64.whl

Download URL codemp-0.8.5-cp313-cp313-win_amd64.whl
Size 1.1 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e0e64e4f15a71751d4ea72bba9adca9a4805854dc13f9f71297f1d682f200291
BLAKE2b-256 checksum
How to use checksums
dd0e74ab7218d5374db9f81382552bd6f9dffe31d86d7d159fd8f0e5f6ff62a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.2

Release files / codemp-0.8.5-cp38-abi3-win_amd64.whl

Download URL codemp-0.8.5-cp38-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
135555988f094ec57b80afba11b84d9ba28f5c666fb334e5ff0edd8c77fd77e2
BLAKE2b-256 checksum
How to use checksums
2eb78b5828351e1865c3eabd2f5c6285b063dba590e2e5fd10ed0edc25fe58c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.2

Release files / codemp-0.8.5-cp38-abi3-manylinux_2_34_x86_64.whl

Download URL codemp-0.8.5-cp38-abi3-manylinux_2_34_x86_64.whl
Size 1.2 MB
Tags CPython 3.8 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
ae7337eb2461ee7994ab2e1240041958f661a295523f119996bbcc7f6ec3ca26
BLAKE2b-256 checksum
How to use checksums
cb02862725a4fffc556e10360d4ec35353ee1f2af5576eb03091cf5717738663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.2

Release files / codemp-0.8.5-cp38-abi3-macosx_11_0_arm64.whl

Download URL codemp-0.8.5-cp38-abi3-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.8 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5692497329a9e253cf0ba13187550bf4c1b22c66f7fe5a22dc5b4141ee37cced
BLAKE2b-256 checksum
How to use checksums
8e18cbea9cb4c35f61bc257583fa8e2874920bd84bd3591ab3e90fa8da2c8e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.8.2

Release history Release notifications | RSS feed

This release

0.8.5 This release

5 release files

0.8.4

5 release files

0.8.2

5 release files

0.8.1

5 release files

0.8.0

5 release files

0.7.3

5 release files

0.7.2

5 release files

0.7.0

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page