GRDB.swift vs Realm
GRDB.swift
github.comRealm
realm.github.ioSide by side
| Figure | GRDB.swift | Realm |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| iOS | Yes | Yes |
| Android | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 1 |
| Spec score · Mobile Databases | 7.9 (#10) | 7.7 (#18) |
| License | The repository license grants free use, copying, modification, distribution, sublicensing, and sale subject to including its copyright and permission notice. | MongoDB said it would offer the renamed Atlas Device SDKs as a free open-source project under Apache License 2.0. |
| Support | The project directs bug reports to GitHub issues and questions or advice requests to GitHub Discussions or the GRDB forums. | The Realm documentation directs users to its forums, Stack Overflow, and GitHub issues for help. |
Plans
In their own words
Realm
Realm is an object database for local data persistence in mobile and edge applications. It runs directly on phones, tablets, and wearables, and presents data as objects that developers can query in code without an ORM. The database supports relationships, generics, and vectorization. Its documentation describes apps continuing to work through weak signal, offline periods, or outages. Listed SDKs include Java, Swift, Objective-C, JavaScript, and .NET; the JavaScript implementation supports React Native on iOS and Android, as well as Node.js and Electron on Windows, macOS, and Linux. Realm Swift supports encryption in transit and at rest. Realm Studio can open and edit local and synced Realms and administer Realm Object Server instances. Former Device Sync connected data across users, devices, and a backend in real time, but MongoDB announced deprecation of Device Sync and Realm SDKs in September 2024. Realm is free and open source under Apache License 2.0.