@typeonce/effect-machine is an external, schema-first state machine API for Effect-TS, currently incubated as the canonical implementation synchronized with Effect PR #6429.

Stars

42

7-day growth

No data

Forks

1

Open issues

0

License

MIT

Last updated

2026-07-28

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It provides a schema-first, tagged class-based state machine API that is synchronized one-way with the official Effect repository, enabling early access and community validation before upstream inclusion.

Who it is for

  • Effect-TS users needing state machine abstractions
  • Developers building complex, type-safe workflows with Effect
  • Early adopters who want to influence the design of upcoming Effect features
  • Contributors involved in Effect's state machine proposal (PR #6429)

Use cases

  • Modeling finite state machines in Effect applications with full type safety
  • Building reactive systems with state transitions using the reactivity adapter
  • Implementing clustered state machines for distributed or concurrent workflows
  • Prototyping and testing the proposed Machine API before it lands in Effect core

Strengths

  • Schema-first design ensures compile-time validation of states and events
  • Independent ESM entrypoints are tree-shakeable, avoiding unnecessary imports
  • Synchronization tool maintains exact alignment with the Effect PR without duplicating logic
  • Comprehensive testing suite including runtime tests, type tests, and consumer validation

Considerations

  • Early-release software with APIs subject to change and coupled to an exact Effect beta version
  • Requires manual pinning of Effect version and lockstep upgrades with this package
  • Intended to become a thin compatibility layer once the equivalent modules ship in Effect, implying eventual deprecation

README quick start

Installation

Description

Schema-first state machines and statecharts for Effect

Related repositories

Similar projects matched by category, topics, and programming language.

TanStack
Featured
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web DevelopmentFrontend Frameworks
14,861
vercel-labs
Featured
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

Developer ToolsCode Quality & Build
1,985
Jakubantalik
Featured
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI & Machine LearningAI Agents
1,191