Built with RustBSL 1.1Kubernetes-ready

State machines,
stored durably.

rstmdb is a database built around states, transitions and guards. Every event is written to a write-ahead log before it's applied — with observability, TLS and Helm deployment included.

Get startedView on GitHub$ docker run -p 7401:7401 rstmdb/rstmdb
machine order · v1 · instance ord-001interactive — apply an event
pending
CONFIRM
confirmed
SHIP
shipped
DELIVER
delivered
CANCEL · from pending or confirmed
cancelled
Available events · state pending
Write-ahead log1 entries
  1. 1041create-instance ord-001 → pendingfsync ok

Everything a stateful workflow needs.

One binary for the engine, the log, the metrics and the transport — so your services stop reinventing status columns.

State machine engine

Model complex workflows with states, transitions and guards — including hierarchical machines.

WAL durability

Write-ahead logging with configurable fsync intervals, so state survives crashes and power loss.

Prometheus metrics

Transition counts, latencies and health exposed in Prometheus format, with a ready Grafana dashboard.

TLS & mTLS

TLS by default, plus mutual TLS for service-to-service authentication.

Official Helm chart

Deploy to Kubernetes with configurable replicas, persistence and monitoring.

Scriptable CLI

Every operation from the terminal — built to drop into scripts and CI pipelines.

Define → run → observe

Simple to define. Built to scale.

Describe a machine in JSON, register it with the CLI, and run the server in a container. Instances can only move along the transitions you declared.

order.json
{
  "states": ["pending", "confirmed", "shipped", "delivered", "cancelled"],
  "initial": "pending",
  "transitions": [
    { "from": "pending",   "event": "CONFIRM", "to": "confirmed" },
    { "from": "pending",   "event": "CANCEL",  "to": "cancelled" },
    { "from": "confirmed", "event": "SHIP",    "to": "shipped" },
    { "from": "shipped",   "event": "DELIVER", "to": "delivered" }
  ],
  "meta": { "description": "Order fulfillment", "version": "1.0.0" }
}

Official clients for six languages.

First-party SDKs, each with a package, source on GitHub and a runnable example.

Rust

crates.io
$ cargo add rstmdb-client
PackageGitHub

Python

PyPI
$ pip install rstmdb
PackageGitHub

Go

Go modules
$ go get github.com/rstmdb/rstmdb-go
PackageGitHub

JavaScript / Node.js

npm
$ npm install @rstmdb/client
PackageGitHub

C# / .NET

NuGet
$ dotnet add package Rstmdb.Client
PackageGitHub

Java

Maven Central
$ implementation("com.rstmdb:rstmdb-client:0.1.0")
PackageGitHub

Running in one command.

01 · DOCKER

Quickest way to try it locally.

docker run -p 7401:7401 rstmdb/rstmdb
02 · HELM

Production deployment on Kubernetes.

helm install rstmdb rstmdb/rstmdb
03 · CARGO

Build from source with Rust.

cargo install rstmdb

Using rstmdb commercially?

BSL 1.1 lets you use rstmdb free for non-commercial work and evaluation. For commercial use, talk to us about a license and enterprise features.

  1. 01
    Enterprise support
    Dedicated support with SLAs.
  2. 02
    Custom integrations
    Help fitting rstmdb into your stack.
  3. 03
    Volume licensing
    Terms for larger deployments.

Contact sales

By submitting, you agree to our privacy policy.