Statelet is an Apache 2.0 distributed database written in Rust. It gives AI agents durable memory, context versions, runtime state snapshots, an openCypher-style memory query language, DiskHNSW/SPFresh vector recall, temporal graph recall, CDC, Raft consensus, Redis compatibility, and local ONNX embeddings.
Three-tier distributed architecture: stateless Gateway (gRPC :9379, HTTP :9380, Redis :6379) routing to a Metadata Plane (Raft consensus for namespace/database registry, shard map, column families, and node registry) and Data Plane (ShardEngine per node with LSM-tree, DiskHNSW/SPFresh vector search, temporal GraphSST, and per-shard Raft).
Open source and Apache 2.0 licensed.
Statelet's gateway extracts structured facts from conversations, detects conflicts through vector similarity, resolves updates with temporal supersedes edges, and stores each fact with temporal metadata. Agents can recall memories with vector search, hybrid dense+sparse search, graph-RAG expansion, Personalized PageRank, and AS OF time travel.
Official gRPC clients: Python 3.9+, Rust 1.70+, Go 1.21+, Java 17+, C++ 17+. Redis RESP2 protocol compatible — connect with redis-cli or any Redis client library.
Single Node (cargo run), Docker (multi-stage build), Kubernetes (StatefulSet with 3+ data nodes), macOS launchd.
Open source, Apache 2.0 licensed. View on GitHub.