Skip to content
SPECIFICTION
Get listed

CloudKit vs Drift

CloudKit

developer.apple.com

Drift

drift.simonbinder.eu

Side by side

FigureCloudKitDrift
Price fromFree—
Free planYes—
Free trial——
Open source——
WebYesYes
Windows—Yes
macOSYesYes
Linux—Yes
iOSYesYes
Android—Yes
APIYes—
Plans published10
Spec score · Mobile Databases8.2 (#6)7.6 (#20)
What it doesCloudKit stores app data in iCloud and keeps it up to date across devices and on the web.Drift is a reactive persistence library for relational data in Dart and Flutter applications.

Plans

CloudKit

  • CloudKitFree

CloudKit pricing →

Drift

No plans published.

Drift pricing →

In their own words

CloudKit

CloudKit is Apple’s service for storing structured app and user data in iCloud and synchronizing it across devices and the web. Data is organized in containers with public, private, and shared databases, and synchronization is bidirectional across iOS, iPadOS, macOS, tvOS, watchOS, visionOS, and web apps. CloudKit supports Swift, Objective-C, and JavaScript. Apple Developer Program membership includes up to 1PB of free storage for each app. CloudKit Console lets developers manage containers and schemas, inspect test data, and review telemetry, logs, and alerts. Fields in private databases can be configured for encryption in storage and while travelling to the application. Public databases use World, Authenticated, and Creator roles. Separate sandbox and production environments are provided; production schemas can only be changed in a forward-compatible manner. Automation supports integration tests from Xcode or a CI system, and CKTool JS can be embedded in developer tools. CloudKit JS adds CloudKit support to web apps. A free plan is listed at free, while pricing is from $99/yr. Incoming traffic is throttled by limits and controls that may change over time.

Visit developer.apple.com

Drift

Drift is a reactive persistence library for relational data in Dart and Flutter applications. It maps database rows to selected objects and offers type-safe queries; watched queries can emit updates as underlying data changes. Its SQL parser and analyzer can validate queries at compile time and generate Dart row code, using drift_dev and build_runner for code generation. Drift supports SQLite and has packages for PostgreSQL and libSQL connections, including local-copy synchronization with libSQL. Developers can use migration utilities, but need to write migrations when changing schemas used by existing apps. Encrypted databases are possible through SQLite3MultipleCiphers with a NativeDatabase executor, provided the app sets an encryption key. Documented implementations cover Android, iOS, Windows, Linux, macOS, and web. Some APIs, including date-time modification APIs, are SQLite-only with PostgreSQL. Full web support may require COOP/COEP security headers; Chrome on Android can have cross-tab persistence issues without them. Drift is free, and its documentation includes a DevTools extension page; questions and feedback can go to GitHub discussions.

Visit drift.simonbinder.eu