statesmith
« Back to VersTracker
Description:
State machine code generation tool suitable for bare metal, embedded and more
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: state-machine code-generation embedded model-driven developer-tools
Install: brew install statesmith
About:
Statesmith is a deterministic, embeddable code generator that creates state machine implementations from visual diagrams. It translates UML-style state charts into highly readable, language-agnostic source code, eliminating boilerplate and runtime overhead for complex control logic.
Key Features:
  • Generates readable, language-agnostic code (C, C++, C#, Python, Java, etc.)
  • Supports visual state machine design via PlantUML or draw.io
  • Deterministic and embeddable with zero dependencies
  • Handles hierarchical (HFSM) and orthogonal states
Use Cases:
  • Firmware for bare-metal and embedded systems
  • Game AI and character behavior logic
  • UI and application workflow management
  • Protocol and communication state handling
Alternatives:
  • QPC – QPC is a mature RTOS framework for state machines, while Statesmith is a code generator focused on language flexibility and visual design.
  • Boost.MSM – Boost.MSM is a C++ template library requiring heavy compile-time processing, whereas Statesmith generates plain, portable source code.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 12:46pm 0 VERSION_BUMP a16df762