pluginaweek/state_machine
Adds support for creating state machines for attributes on any Ruby class observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6643
- days_rel: n/a
- days_push: 904
- n_releases_24m: 0
Adoption not part of the score
3722 stars · 517 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Ruby library that adds support for creating state machines for attributes on any Ruby class. It provides states, events, transitions, callbacks, and integrations with ORMs like ActiveRecord, Mongoid, and Sequel.
Use cases
- manage object state transitions in ruby
- define a finite state machine for a ruby class
- add state machine to activerecord model
- replace boolean flags with state-driven behavior
- add before/after transition callbacks to model lifecycle
- visualize state machine transitions with graphviz
When to choose
- you need state machines on plain ruby classes or ORM models
- you want transition hooks, predicates, and namespaced states
- you need integrations with ActiveRecord, Mongoid, DataMapper, or Sequel
When to avoid
- you are not working in Ruby
- you need a modern actively developed alternative with newer Ruby support
- you only need simple boolean flags without complex transitions
Facets
library · maturity maintenance
state-management developer-tools developer-tools web-development ruby state-machine ruby-gem activerecord finite-state-machine transitions callbacks automation
3 sources
- readme: https://github.com/pluginaweek/state_machine · fetched 2026-08-28 · 7d81f8afb866
- homepage: http://www.pluginaweek.org · fetched 2026-08-29 · 543f800b548c
- site_page: https://www.pluginaweek.org/best-ai-web-hosting-services-in-2026-features-pricing-and-comparison · fetched 2026-08-29 · 8d32bec14eb1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pluginaweek/state_machine | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="pluginaweek/state_machine")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem