UNPKG

json-crdt-repo

Version:

JSON CRDT server and syncing local-first browser client

19 lines (11 loc) 357 B
# JSON CRDT Repository Syncing local-first browser client for `json-crdt-server`. ## Usage Create a new repository: ```typescript import {JsonCrdtRepo} from 'json-crdt-repo'; const repo = new JsonCrdtRepo(); const session = repo.make('my-document'); console.log(session.model.view()); // session.model is JSON CRDT model which can be manipulated ```