# dotnet-state-machine/stateless

A simple library for creating state machines in C# code

Repository: https://github.com/dotnet-state-machine/stateless
Canonical: https://ross.abutalabs.com/products/stateless
Language: C#
License: NOASSERTION
License Family: other
Last push: 2026-04-04T18:25:52+00:00

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

## Adoption (not part of the score)
Stars 6245, forks 802 (observed 2026-08-28T04:09:40.933099+00:00)

## What it is
Stateless is a C# library for creating state machines and lightweight state machine-based workflows directly in .NET code. It supports hierarchical states, entry/exit actions, guard clauses, parameterised triggers, and graph export.

## Use cases
- model state machines in C# code
- build lightweight workflow engines in .NET
- implement hierarchical states with entry and exit actions
- add conditional transitions with guard clauses
- export state machine diagrams to DOT or mermaid
- store state machine state externally in an ORM-tracked property

## When to choose
- you need a fluent, in-code state machine for a .NET application
- you want hierarchical states, guards, and parameterised triggers without external tooling
- you need to visualize state machines as DOT or mermaid graphs

## When to avoid
- you need a full BPMN or durable workflow orchestration engine
- your project is not on the .NET platform
- you need distributed or long-running persisted workflows with human tasks

## Facets
- artifact type: library
- maturity: stable
- function: workflow-automation, developer-tools
- domain: developer-tools, cross-platform
- platform: dotnet, cross-platform
- tags: state-machine, csharp, finite-state-machine, dotnet, workflow, automation

## Member repositories
- dotnet-state-machine/stateless (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:40.933099+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-29T17:47:10.107233+00:00, confidence not recorded.
  - readme: https://github.com/dotnet-state-machine/stateless (fetched 2026-08-28T04:09:40.933099+00:00, sha 5242e151e885)
- Data as of 2026-08-30T08:39:29.467469+00:00.
