automerge-repo
automerge-repo copied to clipboard
This PR adds a `syncPolicy` callback to the repo configuration. It will be called whenever a sync message is received from a peer, and if it returns false, syncing will...
Requesting a document with `repo.find` from a peer (e.g., a sync server) will fail if the sharePolicy doesn't return true on the peer id. The following code reproduces the error...
Working on the automerge-repo-swift implementation, and ran into a bit of a snag and unexpected responses. I'm running the simple code for automerge-repo-sync-server, but verified the same behaviour from `sync.automerge.org`...
The automerge svelte store hides the doc handle so there is no way to do something like ```svelte // automerge import { Repo } from "@automerge/automerge-repo"; import { IndexedDBStorageAdapter }...
Hello again :) I wanted to post some performance findings: I have a roughly 10MB JSON file I'm parsing and creating a new automerge document from. Here's the size of...
This is fine if you're dealing with the doc directly in your callback but a pain in the neck if you're triggering a bunch of other code. Should be straightforward...
Imagine the following -- I have a document containing secrets. I give you the AutomergeUrl so you can request it from me. In order to request the document, you broadcast...
As Automerge Repo becomes more mature, we're starting to feel some pain around some underlying confusion in the set of primitives we're exposing. I'm going to start by describing what...
My code, which is primarily automerge-repo-based, accessed RawString through a '@automerge/automerge/next' import. At one point, I noticed that I didn't have '@automerge/automerge' in my package.json, which I reflexively consider bad...
Adding this for review. I've tested this locally and it seems to work just fine. Ultimately I'd like to add some integration tests here, as it has none, similar to...