Latest / Developer tools

State Trooper

github.com · Package · Quiet

Small Go finite state machine with enforced transitions

Visit github.com ↗Share

  • state machine
  • fsm
  • state management
  • go state machine
  • finite state machine go
  • fsm golang
  • state transitions
  • go fsm library
Stars
221
Forks
5
Open issues
0
Last commit
Found
3 years ago

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

State Trooper is a small Go package that implements a finite state machine for managing states. It lets you define allowed transitions between states and enforces those rules. It suits Go developers who need simple state handling without a large dependency.

Repository description on GitHub: “StateTrooper is a Go package that provides a finite state machine (FSM) for managing states. It allows you to define and enforce state transitions based on predefined rules.”

What it does

  • Enforces allowed transitions between states in a finite state machine
  • Keeps transition history with metadata and a configurable size
  • Generic over comparable types and thread safe

Good for

  • Enforce allowed state changes in a Go workflow
  • Record the history of state transitions for debugging

Suits: Go developers needing simple state handling without a big dependency.

Worth knowing: Still under active development, so backward compatibility is not guaranteed before v1.0.0

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 State Trooper on , when hishamk posted it to Show HN. GitHub listed no published releases for hishamk/statetrooper when checked , so the project may ship straight from its main branch. The repository was created .

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: 97 points, 52 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: 97 points, 52 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: hishamk/statetrooper
  2. Found: hishamk posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was State Trooper released?
No dated release record is available. Kip found it on Show HN on 17 Jun 2023.
Is State Trooper open source?
Its source is public on GitHub at hishamk/statetrooper under the MIT licence.
What does State Trooper run on?
Library.
Is State Trooper free?
It is open source, so the code is free to read and run; check the licence for terms.
Is State Trooper 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 repositoryhishamk/statetrooper
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-36370396. 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.