Looking for feedback on easyFSM, a C++14 state machine framework
Hey,
I started with a small traffic light simulator and realized I was writing a ton of boilerplate for state transitions. That led me to build easyFSM — a lightweight, C++14 template-based finite state machine framework.
It currently offers:
- Type-safe state and event enums
- Simple API for defining transitions
- Support for both action handler and observer patterns
- Real examples (traffic light, elevator, threaded systems)
- CMake-based, MIT licensed
I’d like to make this genuinely useful beyond toy examples, so I’m looking for feedback:
- Is the API intuitive to use?
- Any design or template issues you spot?
- Would you prefer a DSL for defining machines, or just plain C++?
- What would make it production-ready in your eyes?
Repo: https://github.com/paqu/easyFSM
All feedback welcome, paqu.
https://redd.it/1o42ly2
@r_cpp
Post #24035
23