Skip to content
pubscout

mimir

0.2.1+3, released 2 months ago by gsconrad.com

Embeddable NoSQL database with typo-tolerant full-text search.

$ flutter pub add mimir
Source repository

What it does

Mimir provides an embedded NoSQL database for Dart and Flutter based on Meilisearch. It allows storing documents and performing fast, typo-tolerant full-text searches and declarative queries.

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

Use it when

  • You need typo-tolerant and relevant full-text search locally on device
  • You want declarative and reactive NoSQL queries

Skip it when

  • You are building for the Mac App Store and need macOS App Sandbox enabled
  • You only need simple key-value storage and want to minimize binary size
  • You need to open multiple indexes simultaneously on iOS devices

Strengths

  • Built-in typo-tolerant full-text search with zero extra configuration
  • Reactive streams for queries and documents
  • Cross-platform support across mobile and desktop

Weaknesses

  • Increases app bundle size significantly
  • Cannot be used with macOS App Sandbox
  • Only one index can be opened on iOS devices

Setup

Kind
FFI (native library)
Effort
Medium
Code generation
No
Direct dependencies
7

Requires installing rustup on the development computer and disabling App Sandbox for macOS apps.

final instance = await Mimir.defaultInstance;
final index = instance.getIndex('movies');
await index.addDocuments(myMovies);
final results = await index.search(query: 'jarrassic par');

Alternatives

Packages that do the same job and could replace mimir.

  • sqflite

    If you prefer a traditional relational SQLite database.

  • drift

    If you want a robust, type-safe reactive SQL database builder for Flutter.

  • sqlite3

    If you want direct bindings to SQLite.

Works with

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