Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

GUN

gun.eco

  • Free plan
  • Windows
  • macOS
  • Linux
  • Web
  • iPhone and iPad
  • Android
  • API
  • Self-hosted
8.0 Club score Visit gun.eco

What GUN is

GUN is a free, open-source decentralized graph database and data protocol for developers building decentralized applications. It synchronizes data between peers in real time and can keep subscribed data available after refresh, including while offline. Its graph model covers SQL-like tables, JSON-like documents, files, livestreaming video, relational data, and hypergraphs. Browser peers use localStorage by default, with IndexedDB available through RAD; the same browser code can run in Node.js. Peers communicate through WebRTC, WebSockets, or other transports, with relay peers passing messages between them. Storage adapters and integrations listed in the documentation include the Node.js filesystem, AWS S3, IPFS, Level, MongoDB, MySQL, Cassandra, Elasticsearch, and LMDB. SEA supplies key pairs, signing, encryption, verification, and certificates for authorizing writes. Public-space data is editable by anyone by default, so the User system is needed to restrict edits. GUN supports self-hosted deployment and is presented as an open-source Firebase alternative.

Who it suits

It suits developers building decentralized apps who need peer synchronization, flexible graph data, and self-hosted storage options.

Good to know, and what to watch

  • Real-time synchronization between peers
  • Supports multiple graph and document data types
  • WebRTC, WebSockets, and other transports
  • SEA cryptographic features for authorized writes
  • Many storage adapters and integrations
  • Public data can be edited by anyone by default
  • Passwords or private keys in JavaScript risk exposure
  • 3-Friend recovery is cautioned against for banking apps

The verdict

GUN provides a broad decentralized data model with peer sync, local-first storage, and multiple adapters. Its documentation highlights important security and public-data restrictions that developers must account for.

What the maker publishes

Account recovery
The documentation describes serverless password recovery using 3-Friend Account recovery, but cautions against using it for banking apps. source
Credential risk
The tutorial warns that passwords or private keys in JavaScript can be exposed through XSS or other attacks and recommends a browser extension such as Party. source
Data models
GUN supports graph data, SQL-like tables, JSON-like documents, files, livestreaming video, and relational and hypergraph data. source
Data sync
GUN synchronizes data between peers in real time and can keep data available after refresh while offline. source
Data types
GUN supports graph data including SQL-like tables, JSON-like documents, files, livestreaming video, relational data, and hypergraphs. source
Developer integrations
The documentation shows GUN used with plain HTML and JavaScript and says developers can also use React or Vue. source
Development
The tutorial demonstrates installing GUN with npm and running a local Node.js peer. source
Founded
2014 source
Integrations
The docs list storage options and adapters including localStorage, IndexedDB, Node.js filesystem, AWS S3, IPFS, Level, MongoDB, MySQL, Cassandra, Elasticsearch, and LMDB. source
Local first storage
Browser peers use localStorage or IndexedDB for subscribed data, and the documentation says the same browser code runs in Node.js. source
Networking
Peers can sync using WebRTC, WebSockets, or other transports, and GUN describes relay peers that pass messages between peers. source
Product
GUN describes itself as an open source, decentralized graph database and data protocol for developers. source
Public data limit
The documentation warns that anyone can edit data in public space by default and says the User system is needed to restrict edits. source
Security
SEA provides cryptographic features including key pairs, signing, encryption, verification, and certificates for authorizing writes. source
Security limitation
The documentation warns that public-space data can be edited by anyone by default. source
Server storage
In Node.js, RAD can store data on disk with fs, and plugins for AWS S3 and other storage systems are available. source
Storage
Browser peers use localStorage by default, with an IndexedDB adapter also available through RAD. source
Support
The tutorial directs users to the GUN chatroom for help, Stack Overflow for API questions, and GitHub Issues for bug reports. source
Target users
GUN presents itself as a tool for developers building decentralized apps and calls itself an open source Firebase alternative. source

Checked against the maker's pages on 9 Oct 2026.