awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pluginaweek avatar

pluginaweek/state_machine

0
View on GitHub↗
3,722 stars·518 forks·Ruby·MIT·2 vueswww.pluginaweek.org↗

State Machine

Ce projet est une bibliothèque Ruby pour définir et gérer les cycles de vie des objets via des états, des événements et des règles de transition. Il fonctionne comme un moteur de workflow déclaratif qui applique la logique métier en restreignant les changements d'attributs à des chemins prédéfinis et valides au sein des classes Ruby.

La bibliothèque se distingue par une intégration profonde avec les couches de persistance de base de données, lui permettant de synchroniser automatiquement les changements d'état avec les modèles de données, les frameworks de validation et la gestion des transactions. Elle prend en charge la configuration dynamique, permettant la construction de règles de cycle de vie au runtime à partir de sources de données externes, et fournit des outils de diagnostic tels que la visualisation graphique des relations d'état et l'analyse des chemins de transition pour auditer les workflows complexes.

Au-delà de la gestion des transitions de base, le framework inclut un système de hooks piloté par des callbacks pour exécuter une logique personnalisée lors des mises à jour du cycle de vie et fournit des méthodes pour interroger le statut actuel de l'objet ou vérifier les transitions autorisées. Il dispose également d'une injection de méthode dynamique pour gérer les requêtes d'état et le déclenchement d'événements directement sur les objets.

Features

  • Lifecycle Management - Provides a framework for managing the lifecycle of Ruby objects through state transitions.
  • Ruby Frameworks and Tools - Provides a framework for defining and managing object lifecycles through states, events, and transition rules.
  • Application State Management - Synchronizes object state transitions with database persistence layers and validation logic.
  • Automatic State Persistence - Synchronizes state changes with database layers to handle validation, transactions, and persistence.
  • Declarative Workflow Definitions - Enforces business logic by restricting attribute changes to predefined, valid state transition paths.
  • State Transition Event Triggers - Manages object state changes by evaluating rules and triggering transitions in response to specific events.
  • Application State Machines - Provides a declarative DSL for defining states, events, and transition rules to manage object lifecycles.
  • Data Integration & Synchronization - Integrates with data models to synchronize state changes with validation frameworks and observer patterns.
  • ORM Integrations - Integrates with ORM persistence layers to support automatic saving and transaction management.
  • State Transition Handlers - Executes state transitions by validating rules and triggering persistence actions during the lifecycle update process.
  • Event-Driven Workflows - Triggers custom logic and side effects automatically when object states change.
  • Dynamic Configuration Engines - Enables building and adapting lifecycle rules at runtime from external data sources.
  • State Lifecycle Callbacks - Executes custom logic automatically upon entering or exiting specific states during lifecycle transitions.
  • Architectural State Machines - Maintains internal state representations to calculate valid paths and verify reachability between states.
  • Custom State Transition Hooks - Supports callback hooks to execute custom logic before, after, or around state changes for side effects and validation.

Historique des stars

Graphique de l'historique des stars pour pluginaweek/state_machineGraphique de l'historique des stars pour pluginaweek/state_machine

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Collections incluant State Machine

Sélections manuelles où State Machine apparaît.
  • Patterns de développement de jeux
  • Architectures de moteurs de jeu

Alternatives open source à State Machine

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec State Machine.
  • dotnet-state-machine/statelessAvatar de dotnet-state-machine

    dotnet-state-machine/stateless

    6,191Voir sur GitHub↗

    Stateless is a .NET state machine library used to manage complex object behaviors and lightweight workflows through C# code. It functions as an asynchronous workflow engine that executes state transitions, guards, and entry-exit actions using asynchronous tasks. The library implements a hierarchical state machine, allowing child states to inherit transitions and properties from parent superstates. It includes a state persistence framework that decouples state tracking from machine logic by reading and writing the current state to external properties or databases. Additionally, it features a g

    C#
    Voir sur GitHub↗6,191
  • jakesgordon/javascript-state-machineAvatar de jakesgordon

    jakesgordon/javascript-state-machine

    8,751Voir sur GitHub↗

    This library is a finite state machine framework for JavaScript designed to manage application states and valid transitions. It provides a system for executing state changes with lifecycle hooks, conditional guards, and transition cancellation. The project is distinguished by its ability to inject state machine logic and transition capabilities directly into existing JavaScript class instances or objects. It also includes a visualization tool that exports state configurations into Graphviz DOT language for auditing system logic. The framework covers asynchronous transition execution and paus

    JavaScript
    Voir sur GitHub↗8,751
  • aasm/aasmAvatar de aasm

    aasm/aasm

    5,219Voir sur GitHub↗

    This library provides a framework for defining finite state machines within Ruby classes to manage complex object lifecycles. It functions as a declarative workflow engine, allowing developers to model object states, events, and transitions through a readable domain-specific language. By integrating directly with database persistence layers, the framework ensures that state changes are synchronized with storage records while maintaining data integrity through transaction management and row locking. The library distinguishes itself by enforcing strict business rules through conditional transit

    Ruby
    Voir sur GitHub↗5,219
  • pytransitions/transitionsAvatar de pytransitions

    pytransitions/transitions

    6,548Voir sur GitHub↗

    Transitions is an object-oriented finite state machine library for Python. It provides a framework for managing valid states and the logic for moving between them, including implementations for asynchronous state machines and thread-safe state managers. The library supports hierarchical state machines that allow states to be nested to organize complex subtasks and logical contexts. It includes tools for generating visual diagrams of states and transitions to document machine logic. The project covers state management primitives such as lifecycle callbacks, conditional transition guarding, an

    Python
    Voir sur GitHub↗6,548
Voir les 30 alternatives à State Machine→

Questions fréquentes

Que fait pluginaweek/state_machine ?

Ce projet est une bibliothèque Ruby pour définir et gérer les cycles de vie des objets via des états, des événements et des règles de transition. Il fonctionne comme un moteur de workflow déclaratif qui applique la logique métier en restreignant les changements d'attributs à des chemins prédéfinis et valides au sein des classes Ruby.

Quelles sont les fonctionnalités principales de pluginaweek/state_machine ?

Les fonctionnalités principales de pluginaweek/state_machine sont : Lifecycle Management, Ruby Frameworks and Tools, Application State Management, Automatic State Persistence, Declarative Workflow Definitions, State Transition Event Triggers, Application State Machines, Data Integration & Synchronization.

Quelles sont les alternatives open-source à pluginaweek/state_machine ?

Les alternatives open-source à pluginaweek/state_machine incluent : dotnet-state-machine/stateless — Stateless is a .NET state machine library used to manage complex object behaviors and lightweight workflows through C#… jakesgordon/javascript-state-machine — This library is a finite state machine framework for JavaScript designed to manage application states and valid… aasm/aasm — This library provides a framework for defining finite state machines within Ruby classes to manage complex object… pytransitions/transitions — Transitions is an object-oriented finite state machine library for Python. It provides a framework for managing valid… zerobias/effector — Effector is a reactive state management library and data flow orchestrator designed for building complex, event-driven… effector/effector — Effector is a reactive state management library designed for building complex, event-driven applications. It functions…