qmetrics.net

GUN

Decentralized graph sync and embedded data engine

GUN is a JavaScript graph database protocol for realtime peer-to-peer sync, offline-first use, and end-to-end encryption. npm install gun gets a small embedded engine for browser and Node.

Overview

GUN is an ecosystem for building community-run, encrypted applications with decentralized graph data. It advertises multiplayer-by-default realtime peer-to-peer state sync, flexible graph models spanning key-value, tables, documents, and media, and local-first offline operation with optional end-to-end encryption.

The core is a graph synchronization protocol with a lightweight embedded engine sized for browser use. Documentation points to modular pieces for CRDT conflict handling, cryptographic auth, mesh networking, and storage. Production use is claimed by the Internet Archive and many other projects, with examples spanning chat, social, and media-style apps.

Developers typically start from an interactive browser tutorial or by installing the gun package on npm and running bundled examples. SEA modules add user authentication; Node and React Native need WebCrypto shims such as @peculiar/webcrypto. Integrations are documented for Electron, React Native, Vue, Svelte, web components, and GraphQL among others.

Relay peers can be deployed on Linux via install scripts, Docker images, Heroku, Dome, or Zeet.co so clients can discover each other. Environment variables configure HTTPS certificates and ports. AXE clustering into a shared DHT is mentioned as a default behavior users may disable for isolated networks.

Key features

  • Realtime P2P graph synchronization
  • Offline-first local data
  • End-to-end encryption support
  • CRDT-based conflict resolution
  • Browser and Node.js usage
  • SEA cryptographic user auth
  • Relay peer deployment options
  • Graph, document, and key-value models

Use cases

  • Decentralized realtime applications
  • Offline-capable collaborative apps
  • Encrypted community platforms
  • Browser-based P2P data layers
  • Self-hosted GUN relay networks

Does the same job as

GUN doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare GUN

Similar software

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

  • Embedded in-process OLAP engine
  • Rich SQL with windows and nested types
  • Direct queries on Parquet and CSV files
C++CLIDetails →
★ 43.7k⟳ todayMIT

LevelDB

Ordered embedded key-value storage library

LevelDB is a fast embedded library that maps string keys to string values in sorted order. Applications link it in-process; it is not a SQL database and has no built-in client-server layer.

  • Sorted byte-key storage
  • Custom key comparators
  • Atomic write batches
C++Linux, macOS, WindowsDetails →
★ 39.6k⟳ 21 days agoBSD-3-Clause

RocksDB

Embeddable persistent key-value storage engine

RocksDB is an embeddable C++ library for a persistent key-value store tuned for flash and RAM. It suits embedded workloads, caches, and storage engines inside larger systems.

  • Embeddable LSM key-value engine
  • Configurable amplification tradeoffs
  • Multi-threaded compactions
C++Details →
★ 32.4k⟳ todayGPL-2.0 · open core

Turso

In-process Rust SQL engine with SQLite and experimental Postgres frontends

Turso is an in-process SQL database compatible with SQLite files and APIs. It compiles queries to bytecode on a shared virtual machine and adds bindings for many languages.

  • SQLite-compatible dialect and file format
  • Bytecode VM with multiple SQL frontends
  • Experimental Postgres dialect and wire protocol
RustLinux, macOS, Windows, DockerDetails →
★ 25.4k⟳ todayMIT

RxDB

Local-first reactive NoSQL database for JavaScript

Stores application data on the client with reactive queries and optional sync to your own backend. Targets websites, hybrid mobile apps, desktop shells, and Node.js.

  • Reactive query subscriptions
  • Offline local-first storage
  • Pluggable storage engines
TypeScriptWebDetails →
★ 23.5k⟳ todayApache-2.0
Open Source Alternative to:Firebase Realtime Database

migrate

Go database migration CLI and library

Migrate applies versioned up and down SQL (and driver-specific) changes to many databases from local or remote sources. Use it as a command-line tool or embed the Go package in your application.

  • Ordered up and down migrations
  • Many SQL and NoSQL database drivers
  • Filesystem and remote migration sources
GoDocker, CLIDetails →
★ 19.2k⟳ 18 days agoMIT