# stateright/stateright

A model checker for implementing distributed systems.

Repository: https://github.com/stateright/stateright
Canonical: https://ross.abutalabs.com/products/stateright
Homepage: https://docs.rs/stateright
Language: Rust
License: MIT
License Family: permissive
Topics: model-checker, distributed-systems, actor-model, paxos
Last push: 2025-07-27T23:48:01+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 33, release rhythm 35, longevity 100
- inputs: {"age_days": 3105, "days_push": 402, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1866, forks 62 (observed 2026-08-28T04:05:46.287716+00:00)

## What it is
Stateright is a Rust actor library with an embedded model checker for implementing distributed systems, including a web UI for exploring system behaviors and a lightweight actor runtime. It supports exhaustive verification of protocols like Paxos and Raft, plus a built-in linearizability tester.

## Use cases
- model check a distributed consensus protocol like paxos or raft
- verify safety and liveness properties of a distributed algorithm
- test linearizability of a distributed register implementation
- explore possible message reorderings and system behaviors in a web UI
- implement actors in rust and run them on a real network
- find counterexamples to invariants in a two phase commit protocol

## When to choose
- you are implementing a distributed algorithm and want exhaustive verification of nondeterministic behaviors
- you need stronger coverage than black-box testing tools like Jepsen
- you want an embedded model checker in a Rust codebase
- you want to prototype and explore consensus protocols interactively

## When to avoid
- you need a general-purpose formal methods tool like TLA+ or SPIN with rich specification languages
- your system is not written in or modeled with Rust
- you only need simple unit or integration testing without state-space exploration

## Facets
- artifact type: library
- maturity: active
- function: testing, simulation, concurrency, developer-tools
- domain: microservices, testing, developer-tools
- platform: rust, windows, cli
- tags: model-checking, actor-model, paxos, raft, linearizability-testing, formal-methods, consensus-protocols, algorithms, linux, macos

## Member repositories
- stateright/stateright (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.287716+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:32.728409+00:00, confidence not recorded.
  - readme: https://github.com/stateright/stateright (fetched 2026-08-28T04:05:46.287716+00:00, sha fc024a8a2f03)
  - homepage: https://docs.rs/stateright (fetched 2026-08-29T10:54:34.648592+00:00, sha 3e086b2af56b)
  - site_page: https://docs.rs/ (fetched 2026-08-29T10:54:34.657826+00:00, sha df347a24ac74)
  - site_page: https://docs.rs/crate/stateright/latest (fetched 2026-08-29T10:54:34.659825+00:00, sha 45f7f039b58d)
  - site_page: https://docs.rs/crate/stateright/latest/features (fetched 2026-08-29T10:54:34.661539+00:00, sha fc9787bb1f5c)
  - site_page: https://docs.rs/about (fetched 2026-08-29T10:54:34.663060+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T10:54:34.664952+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T10:54:34.666789+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T10:54:34.668688+00:00, sha 0dcdccb2b2b2)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T10:54:34.670281+00:00, sha 1b1efd93105f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
