realm / realm-swift
git clone https://github.com/realm/realm-swift.git
v20.0.6 · 23d ago
🔥 on GitHub Trending today
Realm is a mobile database: a replacement for Core Data & SQLite
—
stars, 24h
—
stars, 7 days
+11
stars, 30 days · #9,999
17k
★ total
2.2k
forks · 499 open issues
Star history starts 2026-10-20; the chart appears after the second daily snapshot.
LanguageObjective-C
LicenseApache-2.0
Created2012-04-16 (14y ago)
Last push23d ago
Watchers360
OwnerOrganization
Seen on GitHub Trending
- 2026-10-20 — #3 monthly in objective-c · +11 ★
GitHub topics
Links
- GitHub: github.com/realm/realm-swift
- Homepage: https://realm.io
- Releases · Issues · Hacker News mentions
README excerpt
# About 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. [code] ## Live Objects: Build Reactive Apps Realm’s live objects mean data updated anywhere is automatically updated everywhere. [code] ### SwiftUI Realm integrates directly with SwiftUI, updating your views so you don't have to. [code] ## Fully Encrypted Data can be encrypted in-flight and at-rest, keeping even the most sensitive data secure. [code] ## 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 `sh build.sh docs` from the root of this repository. ## Getting Help - **Need help with your code?**: Look for previous questions with the`realm` 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: `sh build.sh build`. 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 `build/Release/`. Run `sh build.sh help` 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 Ap