Rift
The next-generation NoSQL database
for Flutter & Dart
Pure Dart. Blazing fast. Reactive queries. Zero native dependencies.
Built for modern apps
Every feature you need. Nothing you don't.
Query Builder
Fluent query builder for filtering, sorting, and paginating data
Live Queries
Reactive queries that auto-update when data changes
ACID Transactions
Atomic operations with savepoints and rollback
WAL Recovery
Write-Ahead Log for crash safety and data durability
Encryption
AES-256 with PBKDF2 key derivation and HMAC verification
Vector Search
Cosine similarity search for AI and embedding applications
How Rift compares
See how Rift stacks up against the most popular Dart databases
| Feature | Rift | Hive v2 | hive_ce | Isar | Drift |
|---|---|---|---|---|---|
| Queries | ✅ | ❌ | ✅ | ✅ | ✅ |
| Live Queries | ✅ | ❌ | ❌ | ❌ | ❌ |
| Secondary Indexes | ✅ | ❌ | ❌ | ❌ | ❌ |
| Composite Indexes | ✅ | ❌ | ❌ | ❌ | ❌ |
| Relations | ✅ | ❌ | ❌ | ❌ | ❌ |
| ACID Transactions | ✅ | ❌ | ❌ | ❌ | ✅ |
| WAL | ✅ | ❌ | ❌ | ❌ | ❌ |
| Schema Migration | ✅ | ❌ | ❌ | ❌ | ✅ |
| Multi-Isolate | ✅ | ❌ | ❌ | ✅ | ❌ |
| Compression | ✅ | ❌ | ❌ | ❌ | ❌ |
| TTL | ✅ | ❌ | ❌ | ❌ | ❌ |
| Middleware | ✅ | ❌ | ❌ | ❌ | ❌ |
Quick Start
Up and running in under 60 seconds
Add dependency
# pubspec.yaml dependencies: rift: ^1.0.0
Hello Rift
1import 'package:rift/rift.dart';23void main() async {4 await Rift.init();5 final users = await Rift.openBox<Map>('users');6 await users.put('u1', {'name': 'Idris', 'age': 25});78 final adults = users.query()9 .where('age', greaterThan: 18)10 .sortBy('name')11 .limit(10)12 .findAll();13}
Layered Architecture
Designed for maximum extensibility and performance
75+ Features
Organized by category. Everything you need to build great apps.
Query & Search
9 features
Data & Schema
18 features
Security & Privacy
6 features
Performance & Storage
13 features
Sync & Distribution
7 features
Developer Tools
10 features
Platform & Integration
13 features
Ready to Rift?
Start building with the most feature-rich NoSQL database for Flutter & Dart.