Latest / Developer tools

CXXStateTree

github.com · Package · Quiet

Header-only C++ library for hierarchical state machines with coroutines

Visit github.com ↗Share

  • state machine
  • header only
  • cpp20
  • statetrees
  • cpp library
  • header only library
  • hierarchical state machine
  • c state machine
Stars
71
Forks
5
Open issues
6
Last commit
Releases
2
Found
17 months ago

GitHub figures as of . They are context, not a ranking.

CXXStateTree is a header-only C++ library for hierarchical state machines, with entry and exit handlers, guarded transitions and asynchronous transitions using C++20 coroutines. It suits control logic in embedded systems, games and robotics.

Repository description on GitHub: “A C++ Header-Only Hierarchical State Tree Library”

What it does

  • Header-only C++ library for hierarchical state machines
  • Entry and exit handlers plus guarded transitions
  • Asynchronous transitions using C++20 coroutines with co_await
  • Fluent builder API for defining states
  • Google Test integration

Good for

  • Model embedded or game control logic as nested states
  • Run async state transitions with co_await in C++20 code

Suits: C++ developers building control logic for embedded, games or robotics.

Worth knowing: The readme lists DOT export as planned rather than available

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw CXXStateTree on , when zigrazor posted it to Show HN. The oldest published release on GitHub is v0.3.0, dated . CXXStateTree had been shipping tagged releases for 5 days before it was found. 2 releases have been published in total; the latest is v0.4.0 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 48 points, 36 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 48 points, 36 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (2 in total, busiest month 2).
  1. Repository created on GitHub: ZigRazor/CXXStateTree
  2. Release v0.3.0
  3. Release v0.4.0
  4. Found: zigrazor posted it to Show HN. Show HN
  5. Day-7 check recorded by Kip (details)
  6. Day-30 check recorded by Kip (details)

Quick answers

When was CXXStateTree released?
Its first tagged release on GitHub is dated 2 Jul 2025. Kip found it on Show HN on 7 Jul 2025.
Is CXXStateTree open source?
Its source is public on GitHub at ZigRazor/CXXStateTree under the MPL-2.0 licence.
What does CXXStateTree run on?
Library.
Is CXXStateTree free?
It is open source, so the code is free to read and run; check the licence for terms.
Is CXXStateTree still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryZigRazor/CXXStateTree
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-44487221. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.