FlinDB is the embedded database built into FLIN. Zero configuration. Time-travel queries. WAL. Compression. Cloud backups. Just save and it persists.
// Define your entity
entity User {
name: text
email: text @email
bio: semantic text // AI-searchable
}
// Save — that's it!
user = User { name: "Juste", email: "[email protected]" }
save user
// Time travel with @
user@-1 // Previous version
user@"2024-01-15" // State on that date
user.history() // All versions
No Docker. No SQL. No migrations. No ORM. No connection strings.
Query any point in time with @. Every entity maintains complete version history.
Mark fields as semantic text. Built-in vector embeddings for AI-powered search.
Just save and it persists. Database created automatically on first use.
Every operation logged before execution. Automatic crash recovery with log replay.
delete = soft (recoverable). destroy = hard (GDPR compliant).
Zstd compression + AES-256-GCM encryption. Backup to Google Cloud or Cloudflare R2.
Auto-created on first save. Enterprise-grade storage under the hood.
.flindb/
├── wal.log # Write-Ahead Log
├── data/ # Entity snapshots
├── blobs/ # Content-addressable
├── vectors/ # Embeddings
├── indexes/ # Query indexes
├── schema.json # Auto-schemas
├── meta.json # Metadata
└── checkpoint.json # Checkpoint
Crash recovery with automatic log replay. Never lose data.
SHA-256 file storage. Automatic deduplication.
Built-in embeddings for semantic text fields. No external service.
Periodic snapshots compress the WAL. Faster startup.
// Basic queries
todos = Todo.all
todo = Todo.find(42)
total = Todo.count
// Filtering
active = Todo.where(done == false)
urgent = Todo.where(priority > 5)
// Chained query
results = Product
.where(category == "electronics")
.where(price < 1000)
.order(rating, desc)
.limit(10)
// Semantic search
results = search "comfortable work chair" in Product by description
// Natural language (AI edition)
result = db.ask("users who signed up last week")
FlinDB is built into FLIN. Install FLIN and start building full-stack apps with a database that remembers everything.