A mobile database for iOS, macOS, tvOS, and watchOS that replaces Core Data and SQLite with an object-oriented, reactive model.
Realm is a mobile database for iOS, macOS, tvOS, and watchOS that provides an object-oriented, reactive alternative to Core Data and SQLite. It allows developers to persist data locally on devices with a simple API, enabling offline functionality and real-time data synchronization in apps. The database is designed to be lightweight, efficient, and secure, with built-in encryption and SwiftUI integration.
iOS, macOS, tvOS, and watchOS developers building apps that require local data persistence, offline capabilities, or reactive data flows. It's particularly useful for those seeking a modern replacement for Core Data or SQLite.
Developers choose Realm for its intuitive object-oriented model that eliminates ORM complexity, its live objects enabling reactive architectures, and its mobile-optimized performance. It reduces code overhead while providing robust features like encryption and seamless SwiftUI integration.
Realm is a mobile database: a replacement for Core Data & SQLite
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Defines models as Swift classes without an ORM, reducing boilerplate code as shown with Dog and Person classes in the README.
Live objects automatically propagate changes via notification tokens, enabling real-time UI updates without manual state management.
Directly binds Realm data to SwiftUI views using @ObservedResults, simplifying state management with built-in observation.
Supports encryption at-rest and in-flight with a simple configuration, securing sensitive data on devices as demonstrated in the code example.
Realm uses a custom, non-interchangeable database format, making data migration or external analysis difficult without Realm-specific tools.
Compared to SQL databases, Realm's query language lacks support for advanced operations like complex subqueries or full-text search without extensions.
Building from source requires Xcode 15.3 or newer and internet access for core binaries, adding complexity compared to drop-in solutions like SQLite.
Realm is an open-source alternative to the following products: