isar_plus
1.3.9, released 4 months ago by ahmetaydin.dev
An enhanced fully async NoSQL database for Flutter and Dart applications.
What it does
Isar Plus is an enhanced fork of the original Isar NoSQL database providing high-speed storage, composite and multi-entry indexes, query modifiers, and JSON support. It features cross-platform capabilities including Android, iOS, web, Windows, macOS, and Linux with persistent web storage via IndexedDB.
AI-written summary of version 1.3.9, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a fast, fully async NoSQL database for Flutter supporting multiple platforms including the web.
- Your application requires complex queries, composite indexes, and multi-isolate support.
- You want real-time inspection of database instances and collections using the Isar Inspector.
Skip it when
- Your project relies on standard relational SQL features without needing a NoSQL approach.
- You want to avoid code generation steps in your build pipeline.
Strengths
- Extremely fast performance and high scalability.
- Fully asynchronous with parallel query operations and multi-isolate support.
- Persistent web storage through IndexedDB integration for Flutter Web.
Weaknesses
- Requires code generation to build data models.
- Unit tests require explicit initialization and single-threaded execution (`flutter test -j 1`).
Setup
- Kind
- FFI (native library)
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 8
Requires running build_runner for code generation and initializing Isar Core for native platforms or tests using `await Isar.initializeIsarCore(download: true)`.
Future<void> main() async {
final dir = await getApplicationDocumentsDirectory();
final isar = await Isar.open(
[UserSchema],
directory: dir.path,
);
}Alternatives
Packages that do the same job and could replace isar_plus.
Works with
Packages commonly used together with isar_plus: ones it builds on, ones built on it, and its own family.
- analyzerisar_plus depends on itPerforms static analysis of Dart code for tool integration and embedding.
- webisar_plus depends on itLightweight bindings for browser APIs via JS interop
- ffiisar_plus depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- json_annotationisar_plus depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- buildisar_plus depends on itPackage for authoring build_runner compatible code generators.
- source_genisar_plus depends on itSource code generation builders and utilities for the Dart build system.
- loggerisar_plus depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.
- build_runnerUsed togetherA build system for Dart code generation and modular compilation.