isar_plus 1.0.21
isar_plus: ^1.0.21 copied to clipboard
Extremely fast, easy to use, and fully async NoSQL database for Flutter. Enhanced version with additional features.
Isar Plus Database
Isar Plus [ee-zahr plus]:
Enhanced version of the Isar database with additional features and improvements.
⚠️ ISAR PLUS V4 IS NOT READY FOR PRODUCTION USE ⚠️
If you want to use Isar Plus in production, please use the stable Isar version 3.
About Isar Plus #
Isar Plus is an enhanced fork of the original Isar database, providing additional features and improvements while maintaining full compatibility with the original API.
Features #
- 💙 Made for Flutter. Easy to use, no config, no boilerplate
- 🚀 Highly scalable The sky is the limit (pun intended)
- 🍭 Feature rich. Composite & multi-entry indexes, query modifiers, JSON support etc.
- ⏱ Asynchronous. Parallel query operations & multi-isolate support by default
- 🦄 Open source. Everything is open source and free forever!
- ✨ Enhanced. Additional features and improvements over the original Isar
Installation #
Add the following to your pubspec.yaml
:
dependencies:
isar_plus: ^4.0.0
isar_plus_flutter_libs: ^4.0.0 # contains Isar Plus Core
dev_dependencies:
build_runner: any
Android 16KB Page Size Support #
Starting with Android 15, devices may use 16KB memory page sizes for improved performance. Google Play requires apps targeting Android 15+ to support 16KB page sizes starting November 1st, 2025.
Isar Plus includes full support for 16KB page sizes out of the box. The native libraries are built with the necessary alignment flags to ensure compatibility with these devices.
Build Requirements #
When building from source, ensure you have:
- Android NDK r27 or higher (recommended for best 16KB support)
- Android Gradle Plugin 8.5.1 or higher (already included)
- Rust toolchain with Android targets installed
The build system automatically includes the necessary linker flags (-Wl,-z,max-page-size=16384
) for all Android architectures.
For detailed documentation and examples, visit the main repository.
Join the Telegram group for discussion and sneak peeks of new versions of the DB.
If you want to say thank you, star us on GitHub and like us on pub.dev 🙌💙
Quickstart #
Holy smokes you're here! Let's get started on using the coolest Flutter database out there...
1. Add to pubspec.yaml #
dependencies:
isar_plus: 4.0.0
isar_plus_flutter_libs: 4.0.0 # contains Isar Plus Core
dev_dependencies:
build_runner: any
2. Annotate a Collection #
part 'email.g.dart';
@collection
class Email {
Email({
this.id,
this.title,
this.recipients,
this.status = Status.pending,
});
final int id;
@Index(type: IndexType.value)
final String? title;
final List<Recipient>? recipients;
final Status status;
}
@embedded
class Recipient {
String? name;
String? address;
}
enum Status {
draft,
pending,
sent,
}
3. Open a database instance #
final dir = await getApplicationDocumentsDirectory();
final isar = await Isar.open(
[EmailSchema],
directory: dir.path,
);
4. Query the database #
final emails = isar.emails.where()
.titleContains('awesome', caseSensitive: false)
.sortByStatusDesc()
.limit(10)
.findAll();
Isar Database Inspector #
The Isar Inspector allows you to inspect the Isar instances & collections of your app in real-time. You can execute queries, edit properties, switch between instances and sort the data.

To launch the inspector, just run your Isar app in debug mode and open the Inspector link in the logs.
CRUD operations #
All basic crud operations are available via the IsarCollection
.
final newEmail = Email()..title = 'Amazing new database';
await isar.writeAsync(() {
isar.emails.put(newEmail); // insert & update
});
final existingEmail = isar.emails.get(newEmail.id!); // get
await isar.writeAsync(() {
isar.emails.delete(existingEmail.id!); // delete
});
Database Queries #
Isar database has a powerful query language that allows you to make use of your indexes, filter distinct objects, use complex and()
, or()
and .xor()
groups, query links and sort the results.
final importantEmails = isar.emails
.where()
.titleStartsWith('Important') // use index
.limit(10)
.findAll()
final specificEmails = isar.emails
.filter()
.recipient((q) => q.nameEqualTo('David')) // query embedded objects
.or()
.titleMatches('*university*', caseSensitive: false) // title containing 'university' (case insensitive)
.findAll()
Database Watchers #
With Isar database, you can watch collections, objects, or queries. A watcher is notified after a transaction commits successfully and the target changes. Watchers can be lazy and not reload the data or they can be non-lazy and fetch new results in the background.
Stream<void> collectionStream = isar.emails.watchLazy();
Stream<List<Post>> queryStream = importantEmails.watch();
queryStream.listen((newResult) {
// do UI updates
})
Benchmarks #
Benchmarks only give a rough idea of the performance of a database but as you can see, Isar NoSQL database is quite fast 😇
![]() |
![]() |
---|---|
![]() |
![]() |
If you are interested in more benchmarks or want to check how Isar performs on your device you can run the benchmarks yourself.
Unit tests #
If you want to use Isar database in unit tests or Dart code, call await Isar.initializeIsarCore(download: true)
before using Isar in your tests.
Isar NoSQL database will automatically download the correct binary for your platform. You can also pass a libraries
map to adjust the download location for each platform.
Make sure to use flutter test -j 1
to avoid tests running in parallel. This would break the automatic download.
Contributors ✨ #
Big thanks go to these wonderful people:
Alexis |
Burak |
Carlo Loguercio |
Frostedfox |
Hafeez Rana |
Hamed H. |
JT |
Jack Rivers |
Joachim Nohl |
Johnson |
LaLucid |
Lety |
Michael |
Moseco |
Nelson Mutane |
Oscar Palomar |
Peyman |
Simon Choi |
Ura |
blendthink |
mnkeis |
nobkd |
License #
## 📝 Changelog
Isar Plus uses automated changelog generation powered by GitHub's release notes feature. Release notes are automatically categorized based on pull request labels and synchronized with local CHANGELOG files.
For more information about our release process, see [Automatic Changelog Documentation](.github/AUTOMATIC_CHANGELOG.md).
## License
Copyright 2023 Simon Choi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.