Skip to content
pubscout

isar_community

3.4.1, released 5 weeks ago by isar-community.dev

Extremely fast NoSQL database for Flutter with static typing and asynchronous queries.

Rock solid
$ flutter pub add isar_community
Source repository

What it does

Provides a NoSQL database for Flutter and Dart applications with support for composite indexes, full-text search, and real-time database watchers. It uses code generation via build_runner to define typed collections and queries.

AI-written summary of version 3.4.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a high-performance local NoSQL database for your Flutter or desktop application
  • You want compile-time checked queries and static typing for database operations
  • You require real-time updates through collection and query watchers

Skip it when

  • You prefer an SQL database solution like SQLite or Drift
  • You want a database that works entirely without code generation

Strengths

  • Very fast query and insert performance
  • Full-text search and embedded object support
  • Real-time database watchers for collections and queries

Weaknesses

  • Requires code generation using build_runner
  • Community fork requiring manual setup of multiple packages like isar_community_flutter_libs and isar_community_generator

Setup

Kind
FFI (native library)
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
3

Requires adding isar_community, isar_community_flutter_libs, isar_community_generator, and build_runner to pubspec, and running build_runner for code generation.

final dir = await getApplicationDocumentsDirectory();
final isar = await Isar.open(
  [EmailSchema],
  directory: dir.path,
);

final emails = await isar.emails.filter()
  .titleContains('awesome', caseSensitive: false)
  .sortByStatusDesc()
  .limit(10)
  .findAll();

Alternatives

Packages that do the same job and could replace isar_community.

  • hive_ce

    If you want a lightweight NoSQL key-value database alternative.

  • drift

    If you prefer a robust, type-safe SQLite database over a NoSQL solution.

  • sqflite

    If you need a standard, lightweight SQLite database for Flutter.

Works with

Packages commonly used together with isar_community: ones it builds on, ones built on it, and its own family.