@rulereplay/xstate
v0.1.0
Published
XState v5 bounded path generation, execution, coverage, and model/runtime parity for RuleReplay
Readme
@rulereplay/xstate
Bounded XState v5 path generation, execution, coverage, and model/runtime parity for RuleReplay.
Install
npm install --save-dev @rulereplay/core @rulereplay/xstate xstateExample
import { fromMachine } from '@rulereplay/xstate';
import { checkoutMachine } from './checkout-machine.js';
const paths = fromMachine(checkoutMachine, {
maxSteps: 8,
events: [{ type: 'SUBMIT' }, { type: 'CANCEL' }],
});Generated paths are explicitly bounded and serializable. The package can execute them against XState actors, track state/event/transition coverage, and compare the model with an independent runtime authority.
Requires Node.js 20.11 or newer and XState v5. Licensed under MIT.
