ObjectBox Dart persists local Dart objects with fast on-device storage for Flutter and Dart apps. It adds vector search and optional sync across devices.
Overview
ObjectBox Dart is the Flutter and Dart binding for ObjectBox, an embedded database that stores objects in boxes inside a local store. It targets offline-first mobile, desktop, and IoT apps that need responsive queries without SQL ceremony.
The Dart API is statically typed with code generation from entity annotations. Features highlighted in the docs include ACID transactions, relations, query filters, schema migrations, multiplatform native libraries, and low resource use on device. The project also advertises on-device vector database support for local AI workloads.
Platforms named for Flutter builds include Android, iOS, macOS, Linux, Windows, and other POSIX systems. Setup adds the objectbox package, runs build_runner to produce objectbox.g.dart and a model JSON file, and downloads native libraries for local testing. A separate sync-enabled package variant exists for customers with ObjectBox Sync access.
Maintainers compare performance to sqflite and Hive in bundled benchmarks and position ObjectBox as a NoSQL SQLite alternative with optional data synchronization to servers or other devices.
Key features
- Native Dart object persistence API
- Code generation from entity annotations
- ACID transactions and relations
- Query filters across linked objects
- Schema migration via model file
- On-device vector search support
- Multiplatform Flutter native libraries
- Optional ObjectBox Sync packages
Use cases
- Offline-first Flutter app storage
- Local vector search in Dart AI features
- High-performance mobile object queries
- Sync data between devices when licensed
Open-source alternative to
Firebase“It comes with an out-of-the-box Data Sync, making it an effective self-hosted Firebase alternative” source