json-crdt-repo
Version:
JSON CRDT server and syncing local-first browser client
19 lines (11 loc) • 357 B
Markdown
Syncing local-first browser client for `json-crdt-server`.
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
```