A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
automerge | ||
automerge-js | ||
automerge-wasm | ||
edit-trace | ||
.envrc | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
README.md | ||
TODO.md |
Automerge Experiment
Setup
You will need to have node, yarn, rust and wasm-pack installed.
To build and test the rust library:
$ cd automerge
$ cargo test
To build and test the wasm library:
## setup
$ cd automerge-wasm
$ yarn
## building or testing
$ yarn build
$ yarn test
## without this the js library wont automatically use changes
$ yarn link
## cutting a release or doing benchmarking
$ yarn release
$ yarn opt ## or set `wasm-opt = false` in Cargo.toml on supported platforms (not arm64 osx)
And finally to test the js library. This is where most of the tests reside.
## setup
$ cd automerge-js
$ yarn
$ yarn link "automerge-wasm"
## testing
$ yarn --test