Back to all databases

GUN

An open-source, offline-first, decentralized graph database with real-time peer-to-peer synchronization. Uses a custom CRDT conflict resolution algorithm (HAM) for multi-master replication across browsers and servers.

Overall rank
#46
First released
2014
License
Zlib OR MIT OR Apache-2.0
Built with
JavaScript

Details

Vendor
GUN
Type
Property Graph
Category
Established
License
Zlib OR MIT OR Apache-2.0
Language
JavaScript
Query Languages
Custom API
Protocols
WebSocket
Sources 5 references

Protocols WebSocket

GUN's own gun.js source opens a WebSocket to each configured peer; the 'web' server option is an HTTP listener mainly used to accept and upgrade that WebSocket connection and to serve static files, not a JSON REST query API, so 'HTTP/REST' from the draft is dropped.

  • var url = peer.url.replace(/^http/, 'ws'); var wire = peer.wire = new opt.WebSocket(url);
    gun.js (raw source) · reviewed 2026-08-02

License Zlib OR MIT OR Apache-2.0

Corrected from MIT. GUN is triple-licensed under the reader's choice of Zlib, MIT, or Apache-2.0; the repository's LICENSE.md contains all three full license texts and package.json declares the same SPDX expression.

  • Designed with ♥ by Mark Nadal, the GUN team, and many amazing contributors. Openly licensed under [Zlib / MIT / Apache 2.0](https://github.com/amark/gun/blob/master/LICENSE.md).
    amark/gun README · reviewed 2026-08-02
  • This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
    amark/gun LICENSE.md · reviewed 2026-08-02

Released 2014

Confirmed via GUN's own README history section; kept as year-only since sources disagree on the exact month (npm's earliest published version is dated March 2014, while the current GitHub repository shows a July 2014 creation date, which per the repo-creation caveat is not authoritative).

  • [GUN](https://gun.eco) was created by [Mark Nadal](https://twitter.com/marknadal) in 2014 after he had spent 4 years trying to get his collaborative web app to scale up with traditional databases.
    amark/gun README · reviewed 2026-08-02

Language JavaScript

Confirmed; no change from current value.

  • GUN (also known as Graph Universe Node, gun.js, and gunDB) is an open source, offline-first, real-time, decentralized, graph database written in JavaScript for the web browser.
    GUN (graph database) · reviewed 2026-08-02