talira

An open source cybersecurity protocol for syncing decentralized graph data

open sourceZlib OR MIT OR Apache-2.0self-hostablefree

GUN is a decentralized, realtime graph database in JavaScript that syncs data peer to peer between browsers, Node.js servers and React Native apps. Data is a graph that can hold key/value pairs, tables, documents and circular references, updates merge with CRDT conflict resolution, and apps work offline and local-first. Its SEA module adds user accounts, signing and end-to-end encryption, RAD stores data on disk, and AXE meshes relay peers together. The README says the Internet Archive and hundreds of other apps run it in production.

Problems it solves

  • sync app data in realtime between users' browsers without running my own backend database
  • build a multiplayer app that keeps working offline and syncs later
  • store user data encrypted end to end so the server can't read it
  • build a decentralized app where users relay data peer to peer

Features

  • peer-to-peer realtime sync
  • graph data model for key/value, tables and documents
  • offline-first and local-first
  • CRDT conflict resolution
  • SEA user auth, signing and end-to-end encryption
  • RAD radix storage on disk
  • AXE relay peer mesh
  • runs in browsers, Node.js and React Native
  • TypeScript types

Alternatives

The same job

These do what GUN does.

  1. InstantDB An open-source realtime backend with relational queries, auth, permissions, storage and presence
  2. Convex The reactive backend platform that keeps up with you and your agents
  3. Cloud Firestore A flexible, scalable NoSQL cloud database for mobile, web and server development
  4. PocketBase Open Source backend in 1 file
  5. RxDB A fast, local-first, reactive database for JavaScript applications
  6. SurrealDB A multi-model database built in Rust that unifies document, graph, relational, time-series, geospatial and key-value data

Compare GUN with the top 3