Description
GUN is an open-source decentralized graph database for developers. It syncs data directly between devices and between peers, without needing a central server to hold it, and it is described as an open-source alternative to Firebase. Data is stored as a graph, which lets apps update any part of a dataset in real time, for example in multiplayer use. GUN is an ecosystem of modular tools. SEA provides local-first user accounts with secure keys and normal logins, and it describes peer-to-peer password resets. AXE is for deploying without a cloud to a decentralized edge CDN for JAMstack apps, and it can run in browsers through WebRTC. HAM is the conflict resolution algorithm, a CRDT approach to merging changes that were made on different devices. DAM supports offline mesh networking, and RAD handles storage. The documentation covers getting started, offline-first and distributed concepts, installation for browsers and Node, a todo app tutorial, and a React Native guide. GUN is licensed under ZLIB, MIT or Apache 2.0, and its code is on GitHub at amark/gun.…
Highlights
- Decentralized graph database for syncing across devices
- Real-time updates on any part of the data
- Local-first user accounts with SEA
- CRDT conflict resolution with HAM
- Offline mesh networking and browser WebRTC support
- Licensed under ZLIB, MIT or Apache 2.0
Ratings & Reviews
No ratings yet
Be the first to rate Gun.
People also visit
Gun FAQ
What is GUN?
A decentralized graph database that syncs data between devices and peers, with modules for accounts, networking and storage.
Does it need a central server?
The design is decentralized: data can sync directly between your devices and friends. The AXE module can also deploy to a decentralized edge network.
Is it free?
GUN is open source, licensed under ZLIB, MIT or Apache 2.0, so you can choose the license that fits your use.
How do I get started?
The docs have a getting started guide for browsers and Node, and a tutorial that builds a todo app step by step.
Does it work offline?
Yes. The docs cover offline-first use, and the DAM module supports offline mesh networking.
Can it be used with React?
The docs include a React guide and a React Native tutorial.
Where is the source code?
On GitHub at amark/gun.
What are the best Gun alternatives?
Popular alternatives to Gun include Sqlite Sync, Supabase and Defradb. See all Gun alternatives

