qmetrics.net
GUNDecentralized graph sync and embedded data engine Realm SwiftOn-device object database for Apple platforms

GUN vs Realm Swift

How GUN and Realm Swift compare on popularity, activity, license and platforms: two open-source Databases projects, both alternatives to Cloud Firestore.

At a glance

Side by side

GUNRealm Swift
GitHub stars★ 19,171 +2 in 7 days★ 16,608 +4 in 9 days
Forks1,2462,231
Last committoday2 months ago
Latest version0.2019.413v20.0.6
Repository startedJuly 2014April 2012
LicenseMIT · permissiveApache-2.0 · permissive
Self-hostedNot applicable (library)Not applicable (library)
Platforms––
Main languageJavaScriptObjective-C
Alternative toCloud FirestoreCloud Firestore

Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.

GUN

GUN is a JavaScript graph database protocol for realtime peer-to-peer sync, offline-first use, and end-to-end encryption. npm install gun gets a small embedded engine for browser and Node.

Key features

  • Realtime P2P graph synchronization
  • Offline-first local data
  • End-to-end encryption support
  • CRDT-based conflict resolution
  • Browser and Node.js usage
  • SEA cryptographic user auth

Realm Swift

Realm is a mobile database for iOS, macOS, tvOS, and watchOS with Swift and Objective-C APIs. Data persists locally for offline-first apps and live-updating objects.

Key features

  • Object-oriented local data model
  • Swift and Objective-C APIs
  • SwiftUI integration
  • Live updating objects
  • On-disk offline persistence
  • Optional data encryption

More comparisons

GUN vs …

Realm Swift vs …

Report a mistake on this page