PhoenixDB
ACID embedded database : Rust core, Dart/Flutter FFI
Full 360° technical case study covering memory profiles, threat models, and reproducible benchmarks.
Key Facts & Overview
PhoenixDB is an ACID-compliant embedded database engine written in Rust and exposed to Dart/Flutter through a zero-overhead dart:ffi layer. Use it as a key/value store, as typed preferences, for HNSW vector similarity search, or through a small optional SQL front end. It ships B+Tree storage, MVCC transactions, a write-ahead log, and runtime-dispatched SIMD kernels.
- ›Feature flags: sql, encryption, json, metrics, full. Select modular features as needed.
- ›Flutter apps need no Rust toolchain; Android ships prebuilt binaries.
- ›Async API runs every call on a worker isolate so the UI never blocks.
- ›Security: FFI guardrails, handle tagging, constant-time compares, panic containment.
Core Architectural Features
Installation
flutter pub add phoenixdb
# Or in pubspec.yaml:
# dependencies:
# phoenixdb: ^4.1.1
# Use `flutter pub`, not `dart pub`:
# PhoenixDB is an FFI plugin, so pub.dev requires the Flutter SDK bound.Usage
import 'package:phoenixdb/phoenixdb.dart';
// Synchronous key/value
final db = PhoenixDatabase.open('data.pdb');
db.insert(utf8Key('hello'), utf8Value('world'));
print(utf8Decode(db.getOrThrow(utf8Key('hello')))); // world
db.transaction((txn) {
db.insert(utf8Key('a'), utf8Value('1'), txnId: txn);
db.insert(utf8Key('b'), utf8Value('2'), txnId: txn);
});
db.close();
// Asynchronous (recommended for Flutter)
final adb = await AsyncPhoenixDB.open('data.pdb');
await adb.insert(utf8Key('k'), utf8Value('v'));
final value = await adb.get(utf8Key('k'));
await adb.close();API Reference
PhoenixDatabase.open(path)Open (or create) a synchronous key/value database.
AsyncPhoenixDB.open(path)Open an async database backed by a worker isolate.
PhoenixPrefs.open(path)Typed shared_preferences-style facade over the same store.
PhoenixVectorDB.open(path, dimensions, metric)Open an HNSW vector index for local-first semantic search.
db.query('SQL...')Run SQL when built with the sql feature; returns rows / scalar / asMaps.
db.transaction((txn) { ... })Run a block inside an ACID transaction with a txn id.
Hardware & Telemetry Limits
Verifiable Peer & Client Reviews
Engineering audits, architecture reviews, and production software telemetry evaluated by industry practitioners.
"Ayoub's zero-trust architectural review for our autonomous agent cluster identified critical prompt-injection and permission-escalation vectors before production launch. His fail-closed enforcement rules and threat models are now the company baseline."
Marcus Vance
VP of Information Security & CISO · FinScale Infrastructure
"We integrated Trace into our AI agent pipelines. Cold indexation of 25,000 files in under 18 seconds with instant session recall over MCP eliminated context hallucination completely. A masterclass in Rust systems engineering."
Elena Rostova
Principal Distributed Systems Engineer · HyperMesh Cloud
"ProxifyEdge eliminated client-side CORS hurdles while keeping our private LLM and payment gateway secrets completely off the client bundle. The latency overhead is practically unmeasurable at under 2ms."
David Chen
Head of Infrastructure · EdgeRoute Technologies
"Automous turned our multi-hour manual Linux server hardening checklist into a single deterministic, profile-driven command. We deploy it across all fresh Ubuntu/Debian hypervisors by default."
Sarah Jenkins
Staff DevOps & Security Architect · Nexus Kernel Systems
Need an architectural review, zero-trust audit, or high-throughput systems design?
SCHEDULE ARCHITECTURAL ADVISORY