Ruby State machines

Open-source Ruby projects categorized as State machines Edit details

Top 11 Ruby State machine Projects

  • AASM

    AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)

  • State Machine

    Adds support for creating state machines for attributes on any Ruby class


    Download’s Tech Salary Report. Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform

  • Workflow

    Ruby finite-state-machine-inspired API for modeling workflow (by geekq)

  • Statesman

    A statesmanlike state machine library.

    Project mention: State Machines in Ruby: An Introduction | | 2022-06-23

    Honestly state machines are fantastic in Rails too. My last company built [Statesman]( and being able to lean on it to prevent you getting into invalid states is fantastic. You also get the bonus of tracking the history of states your resources went through (which is especially useful when you're dealing with payments).

    At some point you'll have to think about query performance on the state transition table, but it'll go further than you think and is firmly in the realm of problems of success.

  • FiniteMachine

    A minimal finite state machine with a straightforward syntax.

  • state_machines

    Adds support for creating state machines for attributes on any Ruby class

    Project mention: ActiveRecord: Adding Boolean methods for DateTime columns | | 2022-09-17

    Might this be better handled with a state machine with active record integration?

  • StatefulEnum

    A very simple state machine plugin built on top of ActiveRecord::Enum

  • Scout APM

    Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.

  • transitions

    State machine extracted from ActiveModel (by troessner)

  • simple_states

    A super-slim statemachine-like support library

  • FeatureFlags

    Feature flags for Rails application.Manages ‘flags’ within your Rails app that determine whether various features are enabled or not.

  • StrictMachine

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-09-17.

Ruby State machines related posts


What are some of the best open-source State machine projects in Ruby? This list will help you:

Project Stars
1 AASM 4,637
2 State Machine 3,713
3 Workflow 1,683
4 Statesman 1,492
5 FiniteMachine 794
6 state_machines 657
7 StatefulEnum 587
8 transitions 531
9 simple_states 94
10 FeatureFlags 70
11 StrictMachine 0
Find remote jobs at our new job board There are 5 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.