Giter Site home page Giter Site logo

Comments (3)

cinnamon-bun avatar cinnamon-bun commented on September 21, 2024 2

@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.

cinnamon-bun avatar cinnamon-bun commented on September 21, 2024 2

@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.

xuhcc avatar xuhcc commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.