# amark/gun

An open source cybersecurity protocol for syncing decentralized graph data.

Repository: https://github.com/amark/gun
Canonical: https://ross.abutalabs.com/products/gun
Homepage: https://gun.eco/docs
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: machine-learning, artificial-intelligence, big-data, blockchain, p2p, decentralized, graph, cryptography, crypto, offline-first, realtime, crdt, protocol, database, end-to-end, encryption, dweb, dapp, web3, metaverse
Last push: 2026-08-01T11:38:47+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 4416, "days_push": 32, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19127, forks 1242 (observed 2026-08-28T04:11:27.427034+00:00)

## What it is
GUN is an open-source decentralized graph database protocol and JavaScript library for syncing data peer-to-peer in realtime, with offline-first support and end-to-end encryption. It serves as an open-source alternative to Firebase, enabling community-run and encrypted applications.

## Use cases
- sync data between browsers in realtime without a server
- build an offline-first app that works without internet
- store user data end-to-end encrypted in a decentralized app
- replace Firebase with an open-source p2p backend
- build a multiplayer collaborative app with CRDT conflict resolution
- create a decentralized chat or social app
- sync graph data across peers with no central database

## When to choose
- you need realtime p2p data sync with offline support
- you want end-to-end encrypted user data without a trusted server
- you're building decentralized/local-first web or mobile apps
- you want a Firebase-like API but self-hosted or serverless

## When to avoid
- you need strong relational queries, joins, or SQL
- you require strict ACID transactions across entities
- you need a battle-tested license for enterprise compliance (license is non-standard)
- your app depends on centralized analytics or heavy server-side aggregation

## Facets
- artifact type: library
- maturity: active
- function: database, cryptography, p2p, websocket, auth, serialization
- domain: databases, microservices, security, privacy, web-development
- platform: browser, cross-platform
- tags: crdt, offline-first, decentralized, graph-database, realtime-sync, local-first, e2e-encryption, dweb, real-time, nodejs, javascript

## Member repositories
- amark/gun (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.427034+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:00:28.975097+00:00, confidence not recorded.
  - readme: https://github.com/amark/gun (fetched 2026-08-28T04:11:27.427034+00:00, sha 4ce7fac8af0d)
  - homepage: https://gun.eco/docs (fetched 2026-08-29T07:59:00.822899+00:00, sha f3bda29b2cd3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
