GUN (graph database)

{{Short description|Decentralized Graph Database}}

{{Infobox software

| name = GUN

| developer = ERA Inc

| author = Mark Nadal

| released = {{Start date and age|2014}}

| repo = {{URL|https://github.com/amark/gun}}

| programming language = JavaScript

| genre = NoSQL, Graph database, Javascript library

| license = MIT License, Apache 2.0, zlib License

| website = {{URL|https://gun.eco/}}

}}

{{Portal|Free and open-source software}}

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.{{Cite web |url=https://www.youtube.com/watch?v=oTQXzhm8w_8 |title=GUN Decentralized Graph DB in 100 Seconds |author=Fireship |date=2021-06-07 |access-date=2024-08-02 |website=YouTube}}{{cite news |date=2019-07-21 |title=These technologists think the internet is broken. So they're building another one.

|last=Smith |first=Noah |author-link=Noah Smith (writer) |url=https://www.nbcnews.com/tech/tech-news/these-technologists-think-internet-broken-so-they-re-building-another-n1030136 |work=NBC News}}

The database is implemented as a peer-to-peer network distributed across "Browser Peers" and "Runtime Peers". It employs multi-master replication with a custom commutative replicated data type (CRDT).{{Cite journal |last1=Thakur |first1=Uma |last2=Chichmalkar |first2=Abhishek |last3=Sambhare |first3=Aditya |last4=Chaturvedi |first4=Aman |last5=Khuspare |first5=Chinmay |last6=Tembhe |first6=Nikhil |title=Decentralised Chat Application |journal=IRJET |date=2022 |url=https://www.irjet.net/archives/V9/i2/IRJET-V9I244.pdf}}

GUN is currently used in the decentralized version of the Internet Archive.{{cite web | url = https://www.bleepingcomputer.com/news/technology/archiveorg-has-created-a-decentralized-or-dweb-version-of-their-site/ | title = Archive.org Has Created a Decentralized or Dweb Version of Their Site

| last = Abrams | first = Lawrence | date = 2018-08-07 | publisher = Bleeping Computer | access-date = 2024-07-12 | quote = "For these reasons, Archive.org is testing a decentralized version, or DWeb version, of their web site that allows their content to be delivered over peer-to-peer connections with different hosts sharing portions of or the same content. This decentralized version of Archive.org is running on the domain dweb.me or dweb.archive.org and uses a combination of HTTP and peer-to-peer protocols such as yjs, IPFS, WebTorrent, and GUN to deliver the content."}}{{cite AV media | people = Brewster Kahle | date = 2022-01-27 | title = The Decentralized Web: An Introduction | type = Webinar | language = English |institution=Metropolitan New York Library Council | url = https://www.youtube.com/watch?v=6OWBGrQNcDU | access-date = 2024-07-12 | archive-url = https://archive.org/details/the-decentralized-web-an-introduction/ | archive-date = 2022-02-02 | time = 26:52 minutes in | quote = "We went and built at the Internet Archive a demo, a couple of years old now called dweb.archive.org. The idea is can we build the Internet Archive but decentralized and that was kind of an interesting approach. It tried to leverage things like WebTorrent, IPFS, GUN, some of the early technologies that try to build decentralized tech such that any particular piece of hardware or institution could go away yet you still have access to the resources."}}

References

{{reflist}}