Documentation
One embedded database — five data primitives, git-style branches, time travel, and built-in inference. Everything on these pages was run against the shipped binary.
Install the CLI
One binary. The install script, Homebrew, or build from source.
strata --cache ping
Your first database
Create a durable database, write across primitives, fork a branch, read the past.
strata ./mydb kv put greeting hello
Python SDK
The engine in your process — pip install stratadb, no server, no toolchain.
db = stratadb.open("./mydb")
$ strata ./demo kv put plan v1
created plan applied=true
$ strata ./demo branch fork default risky
{ "name": "risky", "parent": { "name": "default", "fork_version": 3 }, "status": "active" }
$ strata ./demo --branch risky kv put plan v2-experimental
updated plan applied=true
$ strata ./demo --branch risky kv get plan
v2-experimental
$ strata ./demo kv get plan
v1
A fork is isolation
Two branches, two truths, one database. This transcript is from a real run — and the same engine compiles to WebAssembly.
Run it in your browser →Working with data
Key-value
Opaque values by key, versioned.
JSON documents
Read and write inside documents by path.
Vectors
Similarity search with metadata filters.
Events
Append-only, hash-chained history.
Graph
Nodes, edges, analytics, and an ontology.
Combining primitives
RAG, semantic search, knowledge graphs — one substrate.
Browse the docs
Why Strata
What it is, when to use it, honest comparisons.
Concepts
Branches, commits, time travel, durability — the mental model.
Inference
Chat, embeddings, and reranking with your own keys.
Guides
Branching workflows, configuration, deploying, migrating.
Cookbook
End-to-end recipes, every command verified.
For AI agents
MCP server, machine catalogs, the self-describing binary.
Reference
Every command, generated from the IDL — plus errors and configuration.
Architecture
How V1 is built — storage, durability, capabilities.
FAQ & troubleshooting
Answers, failure modes, and the codes they carry.
agents: llms.txt · llms-full.txt · append .md to any docs URL for CommonMark · /e/ error registry · the full agent surface →