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
- GUN has more GitHub stars (19.2k vs 16.6k).
- GUN was updated more recently (last commit today, Realm Swift 2 months ago).
- GUN uses MIT; Realm Swift uses Apache-2.0 (both permissive).
- Realm Swift is the older project (repository started 2012; GUN in 2014).
Side by side
| GUN | Realm Swift | |
|---|---|---|
| GitHub stars | ★ 19,171 +2 in 7 days | ★ 16,608 +4 in 9 days |
| Forks | 1,246 | 2,231 |
| Last commit | today | 2 months ago |
| Latest version | 0.2019.413 | v20.0.6 |
| Repository started | July 2014 | April 2012 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Not applicable (library) | Not applicable (library) |
| Platforms | – | – |
| Main language | JavaScript | Objective-C |
| Alternative to | Cloud Firestore | Cloud 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