earthstar
earthstar copied to clipboard
Storage for private, distributed, offline-first applications.
Attachment transfers keep running when sync is cancelled right now. They should be cancelled and gracefully abort instead. This may need some support in the attachment drivers to achieve (e.g....
Replicas allow you to optionally provide desired format(s) for all query operations, but I'm pretty sure only the Sqlite drivers support this feature. That leaves Memory and IndexedDB (LocalStorage will...
Earthstar should automatically select the most performant crypto driver for the platform it's running on. - Deno: `CryptoDriverSodium` - Browser: `CryptoDriverNoble` - Node: `CryptoDriverChloride` We'll probably need to have two...
The new replica drivers are composed of a doc driver and an attachment driver. They're completely independent of each other, which means you can mix and match, but there are...
`ReplicaCache` needs to reflect the new APIs `Replica` got. Luckily they all need to just proxy their calls to the underlying replica: - `getAttachment` - `addAttachments` - `wipeDocument`
The nomenclature changed so that Authors are now Identities. Type and method names should be changed to reflect this, with the exception of the `author` field on documents (which still...
Conceptually the new SyncPartner APIs represent the peer you're syncing with. So PartnerLocal is a local partner, PartnerWebServer is a web server, and PartnerWebClient is a browser calling out to...
Note: **I'm not recommending this** because it would increase the code complexity significantly. It needs more thought. ## What's the problem you want solved? Deleting a doc is done by...
(First, probably do #14 set up RPC) Right now we sync by sending everything. Instead, do something like: * Both sides agree on a query filter and sort order *...
What if you want to store binary data in Earthstar documents? ### Storing binary data in Earthstar today Base64-encode your binary data to turn it into UTF-8. Use the document...