Skip to content

Latest commit

 

History

History

y_crdt

y_crdt

y.js (https://github.com/yjs/yjs) Dart port, a CRDT implementation. CRDTs allow for local, offline editing and synchronization of shared data.

Uses https://github.com/juancastillo0/wasm_run for executing WASM and https://github.com/y-crdt/y-crdt for the underlying implementation.

Build Wasm Component from Rust

cd y_crdt_wasm
cargo wasi build --release
cp target/wasm32-wasi/release/y_crdt_wasm.wasm ../lib/assets/

Generate Wit Dart bindings

dart run wasm_wit_component:generate y_crdt_wasm/wit/y-crdt.wit lib/src/y_crdt_wit.gen.dart