#crdt #rich-text #p2p

crdt-richtext

Richtext CRDT, Rust implementation of Peritext and Fugue

2 releases

0.1.1 May 11, 2023
0.1.0 May 11, 2023

#26 in #rich-text

MIT license

460KB
14K SLoC

crdt-richtext

Rust implementation of Peritext and Fugue

This crate contains a subset of Loro CRDT(which is not yet open-source)

📚 See the blog post

The interface is not yet stable and is subject to changes. Do not use it in production.

This Rust crate provides an implementation of Peritext that is optimized for performance. This crate uses a separate data structure to store the range annotation, decoupled from the underlying list CRDT. This implementation depends on RangeMap trait, which can be implemented efficiently to make the overall algorithm fast. But currently, this crate only provides a dumb implementation to provide a proof of concept.


lib.rs:

Rust implementation of Peritext and Fugue

This crate contains a subset of Loro CRDT

This Rust crate provides an implementation of Peritext that is optimized for performance. This crate uses a separate data structure to store the range annotation, decoupled from the underlying list CRDT. This implementation depends on RangeMap trait, which can be implemented efficiently to make the overall algorithm fast. But currently, this crate only provides a dumb implementation to provide a proof of concept.

Dependencies

~4–9.5MB
~108K SLoC