#134134th of 173 in Backends, databases and hosting
gun
Decentralized realtime graph database that syncs peer-to-peer in browsers and Node
Live demo ↗
(opens in a new tab)Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 19.2k
- License
- custom license
- Last commit
- Oct 2026
- Last release
- Apr 2019
- Language
- JavaScript
Missed the latest GitHub check; these facts may be older.
Overview
GUN is a JavaScript graph synchronization engine that stores key/value, document, table and graph data locally and merges it across peers using CRDT conflict resolution. It runs in browsers and Node.js, with an optional SEA module for user auth and encryption, and relay peers deployable to Heroku, Docker or a Linux host. The README claims about 9KB gzipped and 20M+ API ops/sec.
Who it is for: Web developers building local-first, offline-capable or p2p realtime apps
Strengths
- Runs in browser and Node.js; about 9KB gzipped per the README
- Offline-first with realtime peer-to-peer sync and CRDT conflict resolution
- SEA module adds user auth and end-to-end encryption
- Graph model covers key/value, documents and tables, including circular references
Weaknesses
- Last tagged release is 2019-04-15 despite recent commits
- License is detected as NOASSERTION; check terms before use
- Docker image is community contributed and may lack security updates
- Node and React Native need a WebCrypto shim to use SEA
What it needs
- no GPU
- Docker
- Needs Node.js, npm, @peculiar/webcrypto (Node/React Native, for SEA)
Also in Backends, databases and hosting
See all 173| Rank | Project | Score |
|---|---|---|
| 1 | bunJavaScript and TypeScript runtime with bundler, test runner and package manager | 93 out of 100 |
| 2 | traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators | 93 out of 100 |
| 3 | appwriteBackend with auth, databases, storage, functions and an MCP server for agents | 93 out of 100 |
| #4 | ormTypeScript ORM for PostgreSQL and MongoDB with a plugin SPI and agent skills | 93 out of 100 |
| #5 | strapiHeadless CMS that generates REST and GraphQL APIs from content models | 92 out of 100 |