mimir
0.2.1+3, released 2 months ago by gsconrad.com
Embeddable NoSQL database with typo-tolerant full-text search.
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.
Works with
Packages commonly used together with mimir: ones it builds on, ones built on it, and its own family.
- hooksmimir depends on itDart API for the JSON-based protocol for package build and link hooks.
- code_assetsmimir depends on itProvides the hook protocol specification for bundling native code with Dart packages.
- ffimimir depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- loggingmimir depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- fixnummimir depends on itProvides 32‑ and 64‑bit signed fixed‑width integer types for Dart.
- protobufmimir depends on itProvides runtime support for Dart protocol buffer messages generated by protoc_plugin.
- native_toolchain_rustmimir depends on itBuild and bundle Rust code into a Dart/Flutter project via build hooks.