Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
KoruDelta — The Invisible Database
Tagline: "Invisible. Causal. Everywhere."
One-line: "KoruDelta is the invisible database that gives you Git-like history, Redis-like speed, and distributed consistency—without configuration."
Get Started in 10 Seconds
use KoruDelta;
async
Why KoruDelta?
🧠 Invisible Operations
KoruDelta::start() is all you need. No config files, no cluster rituals.
🤝 Always Consistent
Multiple nodes? KoruDelta automatically syncs and keeps data consistent.
⏱ Built-in History
Every change is versioned. Time travel and auditing are one method away.
// Get the full history of changes
let history = db.history.await?;
// Time travel to a specific point
let past_user = db.get_at.await?;
🌐 Runs Everywhere
Same core engine runs in servers, laptops, browsers, and edge devices.
🤝 Automatic Distribution
Multiple nodes sync automatically with zero configuration:
# Machine 1 - Start a node
# Machine 2 - Join the cluster
# Now you have a distributed cluster!
🔍 Powerful Queries
Filter, sort, and aggregate your data with a fluent query API:
use ;
// Find active users over 30, sorted by name
let results = db.query.await?;
// Aggregate sales by region
let total = db.query.await?;
📊 Materialized Views
Pre-compute and cache query results for instant access:
use ViewDefinition;
// Create a view of active users
let view = new
.with_query
.auto_refresh;
db.create_view.await?;
// Query the view (instant, cached results)
let results = db.query_view.await?;
🔔 Real-time Subscriptions
Get notified when data changes:
use Subscription;
// Subscribe to user changes
let = db.subscribe.await;
// React to changes in real-time
while let Ok = rx.recv.await
Core Features
- Zero-configuration - Start a node with one line of code
- Causal history - Every change is an event in a versioned timeline
- Time travel - Query data at any point in history
- Visual diffs - Compare versions with Git-style colored output
- JSON native - Store and query JSON documents naturally
- Content-addressed - Built on koru-lambda-core's distinction calculus
- Thread-safe - Concurrent operations with no data races
- WASM-ready - Run in browsers, Node.js, and edge environments
- CLI included - Full-featured command-line tool for interactive use
- High performance - ~340ns reads, 27K+ writes/sec
- Query engine - Filter, sort, project, and aggregate data
- Materialized views - Cache query results for instant access
- Real-time subscriptions - Get notified when data changes
CLI Reference
# Basic Operations
# Cluster Operations
# Query Operations
# View Operations
# Watch for Changes
Architecture
KoruDelta is built on top of koru-lambda-core, a minimal axiomatic system for distributed computation. This gives KoruDelta:
- Mathematical guarantees - Safety and consistency from a formal foundation
- Structural integrity - Can't corrupt by design
- Deterministic operations - Same inputs always produce the same results
- Natural distribution - Consensus and sync emerge from the axioms
The math is your secret weapon, not your configuration burden.
Status
All three phases complete! KoruDelta is feature-complete and production-ready.
✅ Phase 1: Magical Single Node (Complete)
- Simple key/value + JSON document storage
- Full causal history tracking
- Time travel queries (
get_at) - Visual diff command for comparing versions
- Clean, simple API (Rust + WASM)
- Full-featured CLI tool (
kdelta) - Persistence to disk
✅ Phase 2: Automatic Distribution (Complete)
- Multi-node clustering (
kdelta start --join) - Automatic data sync between nodes
- Gossip protocol for peer discovery
- Cluster health monitoring
- Snapshot sync on join
✅ Phase 3: Advanced Features (Complete)
- Query engine (filter, sort, project, aggregate)
- Materialized views (create, refresh, query)
- Real-time subscriptions (change notifications)
- History queries across versions
Project Stats
- 7,095 lines of Rust code
- 146 tests (all passing)
- ~340ns read latency
- ~27K writes/sec throughput
- Cross-platform (Linux, macOS, Windows, WASM)
Examples
The examples/ directory contains runnable demos:
# E-Commerce demo: CRUD, versioning, queries, views, subscriptions
# Clustering demo: Multi-node replication and peer discovery
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines and ARCHITECTURE.md for technical details.
License
This project is licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Links
- GitHub Repository - Source code and issues
- Design Document - Design philosophy and decisions
- koru-lambda-core - The underlying distinction engine
KoruDelta: Where data meets history, and simplicity meets power.