The Substrate · AkashaKV
The kernel underneath every memory.
AkashaKV is the cognitive database engine that makes Minds possible. An LSM-tree KV with WAL group commit, lock-free buffers, MVCC, and TinyLFU caching — hitting 630,000 writes per second.
Capabilities
What it does.
Every capability is production-grade. No flags, no betas — these ship the day you adopt Minds.
LSM-tree
Optimized for write-heavy workloads with bounded read amplification.
WAL group commit
1,673× the original throughput after the group-commit optimization.
Lock-free buffers
Per-thread arenas merge at flush — no global mutex on the hot path.
MVCC
Snapshot reads at any historical version. Concurrent writes safe.
TinyLFU cache
Frequency-aware admission policy outperforms LRU at hot-key workloads.
Compression
Zstd or LZ4 per-keyspace. ~40% on-disk savings typical.
API
A few lines is all it takes.
The SDK reflects the conceptual model directly. No glue code, no orchestrator, no learning curve beyond the data shape.
exampletypescript
// Native KV API — used internally by every memory type.
await minds.kv.put("episode://alpha/q3-investigation/004", payload);
const val = await minds.kv.get("episode://alpha/q3-investigation/004");
// Range scan with prefix
for await (const entry of minds.kv.scan({ prefix: "episode://alpha/" })) {
console.log(entry.key, entry.version);
}
// Snapshot read at a point in time
const snap = await minds.kv.snapshot({ atTxn: 8419003 });
const prior = await snap.get("episode://alpha/q3-investigation/004");Specs
What it costs, what it guarantees.
Performance
- Throughput
- 630,000 writes/sec (1KB)
- Read P99
- <500µs
- Concurrent ops
- 100K+ on commodity hardware
- Versions per key
- unlimited (MVCC)
- Compression
- Zstd · LZ4 (per-keyspace)
- Durability
- fsync per group-commit batch
Guarantees
- Durability
- fsync per WAL commit
- Isolation
- MVCC · snapshot
- Audit
- BLAKE3 Merkle chain
- Encryption
- AES-256-GCM per-namespace
- Concurrency
- 100K+ ops/sec
Build it on Minds.
Start with the SDK. Ship in an afternoon. Run anywhere — Akasha Cloud, on-prem, or air-gapped.