codemp/README.md

92 lines
6.8 KiB
Markdown
Raw Normal View History

2024-09-07 22:10:47 +02:00
[![codemp](https://code.mp/static/banner.png)](https://code.mp)
2024-08-17 18:27:32 +02:00
[![Actions Status](https://github.com/hexedtech/codemp/actions/workflows/test.yml/badge.svg)](https://github.com/hexedtech/codemp/actions)
2024-09-17 19:33:27 +02:00
[![docs.rs Status](https://img.shields.io/docsrs/codemp)](https://docs.rs/codemp/)
2024-09-05 16:24:56 +02:00
[![Crates.io Version](https://img.shields.io/crates/v/codemp)](https://crates.io/crates/codemp)
[![Gitter Chat](https://img.shields.io/gitter/room/hexedtech/codemp)](https://gitter.im/hexedtech/codemp)
[![GitHub last commit](https://img.shields.io/github/last-commit/hexedtech/codemp)](https://github.com/hexedtech/codemp/commits/dev/)
2024-09-26 02:43:18 +02:00
[![GitHub commits since tagged version](https://img.shields.io/github/commits-since/hexedtech/codemp/v0.7.2)](https://github.com/hexedtech/codemp/releases/tag/v0.7.2)
2024-09-05 16:24:56 +02:00
> `codemp` is a **collaborative** text editing solution to work remotely.
2024-08-17 18:27:32 +02:00
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.
2024-09-07 20:01:36 +02:00
This means that everyone is guaranteed to converge to a consistent state once all changes are received
no matter the order or the timing due to unreliable networks or constrained resources. And similarly, your
changes will always carry their original intention. On top of this baseline, `codemp`'s protocol is optimized for speed
2024-08-17 18:27:32 +02:00
and low network footprint, meaning even slow connections can provide stable real-time editing.
2024-09-18 16:14:20 +02:00
The full documentation is available on [docs.rs](https://docs.rs/codemp/).
2024-08-17 18:27:32 +02:00
# Usage
`codemp` is primarily used as a plugin in your editor of choice.
2024-08-17 18:27:32 +02:00
## Installation
2024-09-05 06:33:18 +02:00
> [!IMPORTANT]
> The editor plugins are in active development. Expect frequent changes.
2024-08-17 18:27:32 +02:00
`codemp` is available as a plugin for a growing number of text editors. Currently we support:
- [NeoVim](https://github.com/hexedtech/codemp-nvim)
- [VSCode](https://github.com/hexedtech/codemp-vscode)
- [Sublime Text](https://github.com/hexedtech/codemp-sublime)
2024-09-17 19:33:27 +02:00
- [IntelliJ Platform](https://github.com/hexedtech/codemp-intellij)
2024-08-17 18:27:32 +02:00
## Registration
The `codemp` protocol is [openly available](https://github.com/hexedtech/codemp-proto/) and servers may be freely developed with it.
2024-08-17 18:27:32 +02:00
2024-09-08 05:23:32 +02:00
A reference instance is provided by hexed.technology at [code.mp](https://code.mp). You may create an account for it [here](https://code.mp/signup).
During the initial closed beta, registrations will require an invite code. Get in contact if interested.
2024-08-17 18:27:32 +02:00
2024-09-05 19:08:29 +02:00
An open beta is going to follow with free access to a single workspace per user.
2024-09-07 22:10:47 +02:00
After such period, [code.mp](https://code.mp) will switch to a subscription-based model.
2024-08-17 18:27:32 +02:00
# 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.
2024-08-17 18:27:32 +02:00
`codemp` is primarily a rlib and can be used as such, but is also available in other languages via FFI.
2024-08-17 18:27:32 +02:00
Adding a dependency on `codemp` is **easy**:
2024-08-17 18:27:32 +02:00
### From Rust
Just `cargo add codemp` and check the docs for some examples.
2024-08-17 18:27:32 +02:00
### From supported languages
We provide first-class bindings for these other programming languages:
| | Build Status | Package | Build Instructions |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| JavaScript | [![JavaScript Build](https://github.com/hexedtech/codemp/actions/workflows/javascript.yml/badge.svg)](https://github.com/hexedtech/codemp/actions/workflows/javascript.yml) | [![NPM Version](https://img.shields.io/npm/v/codemp)](https://npmjs.org/package/codemp) | [README](./dist/README.md#javascript) |
| Python | [![Python Build](https://github.com/hexedtech/codemp/actions/workflows/python.yml/badge.svg)](https://github.com/hexedtech/codemp/actions/workflows/python.yml) | [![PyPI Version](https://img.shields.io/pypi/v/codemp)](https://pypi.org/project/codemp) | [README](./dist/README.md#python) |
| Java | [![Java Build](https://github.com/hexedtech/codemp/actions/workflows/java.yml/badge.svg)](https://github.com/hexedtech/codemp/actions/workflows/java.yml) | [![Maven Central Version](https://img.shields.io/maven-central/v/mp.code/codemp)](https://central.sonatype.com/artifact/mp.code/codemp) | [README](./dist/README.md#java) |
| Lua | [![Lua Build](https://github.com/hexedtech/codemp/actions/workflows/lua.yml/badge.svg)](https://github.com/hexedtech/codemp/actions/workflows/lua.yml) | [![LuaRocks Version](https://img.shields.io/luarocks/v/alemi/codemp)](https://luarocks.org/modules/alemi/codemp) | [README](./dist/README.md#lua) |
2024-08-17 18:27:32 +02:00
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.
2024-08-17 18:27:32 +02:00
### From other languages
2024-09-05 06:33:18 +02:00
> [!IMPORTANT]
> The common C bindings are not available yet!
2024-08-17 18:27:32 +02:00
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.
2024-08-17 18:27:32 +02:00
2024-09-05 16:51:17 +02:00
# 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](https://gitter.im) room available on [gitter.im/hexedtech/codemp](https://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](https://matrix.org) account, you can join the gitter room directly at [#hexedtech_codemp:gitter.im](https://matrix.to/#/#hexedtech_codemp:gitter.im)
## Contributing
2024-08-17 18:27:32 +02:00
If you find bugs or would like to see new features implemented, be sure to open an issue on this repository.
2024-09-08 15:13:01 +02:00
In case you wish to contribute code, that's great! We love external contributions, feel free to open a PR!