Skip to main content

code multiplexer

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemp-0.8.1.tar.gz (76.3 kB view details)

Uploaded Source

Built Distributions

codemp-0.8.1-cp38-none-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8 Windows x86-64

codemp-0.8.1-cp38-abi3-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8+ Windows x86-64

codemp-0.8.1-cp38-abi3-manylinux_2_34_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.34+ x86-64

codemp-0.8.1-cp38-abi3-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

File details

Details for the file codemp-0.8.1.tar.gz.

File metadata

  • Download URL: codemp-0.8.1.tar.gz
  • Upload date:
  • Size: 76.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for codemp-0.8.1.tar.gz
Algorithm Hash digest
SHA256 1d9beae3210f98f171f6fd37c277a59c08f676b0a7fbcebdb3b68018e36bea5d
MD5 97a2821f0ac0b4f3fc1d3220c77c3f7f
BLAKE2b-256 b4339cc2652508ffde006dd3d682ed23a17a5df97d0a028ff904ff3747dcefa4

See more details on using hashes here.

File details

Details for the file codemp-0.8.1-cp38-none-win_amd64.whl.

File metadata

  • Download URL: codemp-0.8.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for codemp-0.8.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 35e3317cb6c39f4f319084caf525a42e6924363e2d5f423625ceaf66eda3b093
MD5 4af589831b8d379b392f16075f62fb04
BLAKE2b-256 865d609ed490b44d6d71372e0b173572de8b85a81142fb4f888db78893ae4831

See more details on using hashes here.

File details

Details for the file codemp-0.8.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: codemp-0.8.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.4

File hashes

Hashes for codemp-0.8.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bb32fd044b0d36ad8c10f4fd55ee001629cf80703e26dccf5133ad97f3472107
MD5 6f2bdf7e992aea9fcd30e1a140e83dba
BLAKE2b-256 70431c30d60bae2b1b275174025b8f6ca80ffc34d6c736cc8ba004c926d41c46

See more details on using hashes here.

File details

Details for the file codemp-0.8.1-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for codemp-0.8.1-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7354e035064769889a6e71464600055b16201617df48c0b53e16774a003bc6e1
MD5 7cdcfaf8d792d64543442b6035f9cae0
BLAKE2b-256 74109096d91963ffe32c68f07f8e5f0fa8280c8c8e95e581bedd774951799ca9

See more details on using hashes here.

File details

Details for the file codemp-0.8.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for codemp-0.8.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 743b63d13fddd394229a7a352bc1f2ba33c229b70ff96d7246f4c5664ba81cb5
MD5 dc89d3f15fec6befbf4695af1ba37bb2
BLAKE2b-256 4844c7bfe4f417f439f67ea9c89653cdb6fa83b54248338b617750b276d865f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page