A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Find a file
2021-12-17 11:48:14 +00:00
automerge import protocol into legacy 2021-12-16 20:39:08 -05:00
automerge-js readme and new tests 2021-12-15 19:07:39 -05:00
automerge-wasm import protocol into legacy 2021-12-16 20:39:08 -05:00
edit-trace Improve ergonomics of the main API 2021-12-16 05:46:01 -08:00
.envrc Add nix config 2021-12-17 11:48:14 +00:00
.gitignore Add nix config 2021-12-17 11:48:14 +00:00
flake.lock Add nix config 2021-12-17 11:48:14 +00:00
flake.nix Add nix config 2021-12-17 11:48:14 +00:00
README.md readme and new tests 2021-12-15 19:07:39 -05:00
TODO.md readme and new tests 2021-12-15 19:07:39 -05:00

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