# GUN

> An open source cybersecurity protocol for syncing decentralized graph data

Source: https://talira.ai/catalog/gun-a0va9892
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Database, Library
- Categories: [databases / realtime](https://talira.ai/categories/databases/realtime)
- Platforms: web, linux, macos, windows, docker[^3]
- Licence: Zlib OR MIT OR Apache-2.0[^1][^2]
- Pricing: Free and open source[^1][^2]
- Free tier: yes[^1][^2]
- Self-hostable: yes[^3]
- Backed by: [Mark Nadal](https://talira.ai/orgs/mark-nadal.md)

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.

## Links

- Website: https://gun.eco/
- GitHub: https://github.com/amark/gun
- Docs: https://gun.eco/docs/

## 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

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 0.71, adoption 0.86, momentum 0.64, community 0.88, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 17 commits in the last 90 days
- latest release 0.2019.413 7.6 years ago
- 19.2k GitHub stars
- 162 contributors
- accepts sponsorship (Github, Patreon, Open Collective)
- backed by Mark Nadal

## Alternatives

- [InstantDB](https://talira.ai/catalog/instantdb-bkg9g3zc.md): An open-source realtime backend with relational queries, auth, permissions, storage and presence
- [Convex](https://talira.ai/catalog/convex-cd5s9zbk.md): The reactive backend platform that keeps up with you and your agents
- [Cloud Firestore](https://talira.ai/catalog/cloud-firestore-a18f6hkf.md): A flexible, scalable NoSQL cloud database for mobile, web and server development
- [PocketBase](https://talira.ai/catalog/pocketbase-6ndc6bsb.md): Open Source backend in 1 file
- [RxDB](https://talira.ai/catalog/rxdb-wj1b1kar.md): A fast, local-first, reactive database for JavaScript applications
- [SurrealDB](https://talira.ai/catalog/surrealdb-b82sjdwt.md): A multi-model database built in Rust that unifies document, graph, relational, time-series, geospatial and key-value data

## Sources

[^1]: https://github.com/amark/gun/blob/master/LICENSE.md (checked 24 Nov 2026)
[^2]: https://github.com/amark/gun/blob/master/package.json (checked 24 Nov 2026)
[^3]: https://github.com/amark/gun (checked 24 Nov 2026)
