effect-machine
CommunityBuild reliable typed state machines with Effect.
Software Engineering#state machines#actor model#workflow testing#effect#typed events#ask reply#async orchestration
Authorcevr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
effect-machine removes the brittleness of ad-hoc async state handling by giving you a single typed model for state, events, transitions, and side effects.
Core Features & Use Cases
- Schema-first states & events: Define states/events as Effect-compatible schemas so constructors, validation, and serialization come from one place.
- Typed transition handlers: Implement state transitions with type-safe event payloads, including reply-bearing events for ask/reply flows.
- State-scoped effects & async orchestration: Use spawn/task/background, automatic cancellation on state exit, plus timeouts and postpone buffering for real workflow control.
- Testing, replay, and lifecycle hooks: Simulate machines, assert paths/reaches, replay transitions with stubbed side effects, and integrate recovery/durability for persistence.
Quick Start
Tell the AI: "Create an effect-machine for a Checkout workflow with typed schemas for states and events, state-scoped charging logic via spawn, a timeout that transitions to a failure state, and an ask/reply event that returns the current total amount."
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: effect-machine Download link: https://github.com/cevr/effect-machine/archive/main.zip#effect-machine Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.