Comments (3)
@rabble I haven't been able to make sense of Gun's documentation. I'm happy to answer questions about Earthstar though.
Here's a new overview of Earthstar I just wrote: https://github.com/cinnamon-bun/earthstar/blob/master/docs/vocabulary.md
from earthstar.
@xuhcc Thanks for finding that. Your summary seems about right.
Earthstar...
- Designed for many small disconnected workspaces, not a single giant interconnected space like Gun or SSB is.
- Resolves conflicts per document using simple timestamps
- Relies on pub servers. We'd like to support hyperswarm for direct p2p connections but haven't had the time yet. Also interested in webrtc or websocket star topologies. Any way peers can connect they can sync, we just haven't built them all yet.
- Has a data model of "key-value store holding small JSON documents" similar to CouchDb or Mongo
- Designed to allow partial sync of the data, but not quite implemented yet
- Documents are mutable and deletable
- Has document-level access control. It would be easy to add pub-level access control also, and we plan for cryptographically enforced workspace-level access control
- Data is signed but there's no built-in encryption yet, but it would be easy to add since user identities are keypairs
- Storage support: sqlite in node, localStorage in browser, indexedDb "soon"
- Can work 100% offline if the host app can (e.g. as a PWA webapp, or a native app)
- Does not yet do anything smart to work well in multiple tabs (which share the same localStorage data).
from earthstar.
Here's a relatively short overview of GunDB: https://jaredforsyth.com/posts/local-first-database-gun-js/
From what I can tell, the major differences are:
- Gun uses advanced confict resolution techniques whereas Earthstar resolves conflicts by timestamp.
- Gun tries to find peers automatically (https://gun.eco/docs/Service-Discovery) whereas Earthstar relies solely on pubs.
@cinnamon-bun Is that correct?
from earthstar.
Related Issues (20)
- Address private set intersection exploit HOT 2
- What is the rationale for the generateAuthorKeypair shortname only allowing lengths of 4 chars? HOT 1
- npm install error HOT 1
- Adding denoKV to doc drivers HOT 4
- ReplicaCache#onCacheUpdated not triggered until you call cache.queryDocs()? HOT 3
- Error compiling typescript file that imports earthstar npm package
- ExtensionKnownShares loading known shares from memory HOT 1
- Export a browser entrypoint with IndexedDB StorageDriver
- Port Discovery API + DiscoveryLan
- Add way to check if Auth has been set up yet
- Add way to check if given password is correct on Auth
- Auth should be an EventTarget and emit events
- Peer should be an EventTarget and emit events
- IdentityKeypair + ShareKeypair secretKey property should be Base32 encoded string
- "All-in-one" authorisation
- Lots of duplicate auth stuff in the store HOT 5
- Filter sparse documents from store results unless specifically requested
- Cinn25519 shortname encoding is incorrect
- TypeError: The input must be a Uint8Array, a string, or an ArrayBuffer. Received a value of the type undefined. HOT 3
- Earthstar on browser doesn't load documents correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from earthstar.