Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributesaga_state_machine

A MassTransit-style state machine framework for Dart with a fluent builder API.

pub.devRemove
state_machine

Finite state machine library to define legal state transitions and listen to state changes.

pub.devRemove
ScoresHealth5173 (best)
Maintenance2650 (best)
Quality100 (best)83
Popularity2773 (best)
Community1780 (best)
Compatibility100100
UsageDownloads (30 days)2.1k23k (best)
Likes541 (best)
Pub points160 / 160 (best)120 / 160
GitHub stars365 (best)
MaintenanceLatest release1.1.2, 8 months ago (best)3.0.3, 9 months ago
Major versions in 12 months00
Contributors336 (best)
PublisherUnverifiedworkiva.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITUNKNOWN
Setup effortLowLow
JudgementStrengths
  • Declarative and fluent builder API for defining state machines.
  • Built-in support for event correlation, timeouts, and state compensation.
  • Pluggable storage repository interface for custom persistence.
  • Prevents illegal state transitions by design.
  • Supports cancellation conditions and wildcards for transitions.
  • Exposes streams for state entrances and departures.
Weaknesses
  • Default repository is in-memory only; custom persistence requires manual implementation.
  • Niche state machine architectural pattern which may be overkill for simple apps.
  • Limited documentation on advanced architectural patterns.
  • Unclear active maintenance status with unknown license.
WarningsNoneNone
saga_state_machine vs state_machine: which Flutter package should you use? | pubscout