realm / realm-swift
Realm is a mobile database: a replacement for Core Data & SQLite
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing realm/realm-swift in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewAbout Realm Database Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the iOS, macOS, tvOS & watchOS versions of Realm Swift & Realm Objective-C. Why Use Realm • **Intuitive to Developers:** Realm’s object-oriented data model is simple to learn, doesn’t need an ORM, and lets you write less code. • **Built for Mobile:** Realm is fully-featured, lightweight, and efficiently uses memory, disk space, and battery life. • **Designed for Offline Use:** Realm’s local database persists data on-disk, so apps work as well offline as they do online. Object-Oriented: Streamline Your Code Realm was built for mobile developers, with simplicity in mind. The idiomatic, object-oriented data model can save you thousands of lines of code. Live Objects: Build Reactive Apps Realm’s live objects mean data updated anywhere is automatically updated everywhere. SwiftUI Realm integrates directly with SwiftUI, updating your views so you don't have to. Fully Encrypted Data can be encrypted in-flight and at-rest, keeping even the most sensitive data secure. Getting Started We support installing Realm via Swift Package Manager, CocoaPods, Carthage, or by importing a dynamic XCFramework. For more information, see our Quick Start. Documentation The documentation can be found in the docs/ directory. The API reference can be generated from source using jazzy by running from the root of this repository. Getting Help • **Need help with your code?**: Look for previous questions with the tag on Stack Overflow or ask a new question. For general discussion that might be considered too broad for Stack Overflow, use the Community Forum. • **Have a bug to report?** Open a GitHub issue. If possible, include the version of Realm, a full log, the Realm file, and a project that shows the issue. • **Have a feature request?** Open a GitHub issue. Tell us what the feature should do and why you want the feature. Building Realm In case you don't want to use the precompiled version, you can build Realm yourself from source. Prerequisites: • Building Realm requires Xcode 15.3 or newer. • Building Realm documentation requires jazzy Once you have all the necessary prerequisites, building Realm just takes a single command: . You'll need an internet connection the first time you build Realm to download the core binary. This will produce Realm.xcframework and RealmSwift.xcframework in . Run to see all the actions you can perform (build ios/osx, generate docs, test, etc.). Contributing See CONTRIBUTING.md for more details! Code of Conduct This project adheres to the MongoDB Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to community-conduct@mongodb.com. License Realm Objective-C & Realm Swift are published under the Apache 2.0 license. Realm Core is also published under the Apache 2.0 license and is available here. Feedback **_If you use Realm and are happy with it, please consider sending out a tweet mentioning @realm to share your thoughts!_** **_And if you don't like it, please let us know what you would like improved, so we can fix it!_**