XState is an open-source JavaScript/TypeScript framework by Stately for managing state machines and statecharts and includes the ability to treat them as actors.

Using XState with TypeScript

XState can enforce type safety through automatic type generation. For an overview, see Is XState good with TypeScript? in the following video.

XState Resources

XState Tutorials and Presentations

Broader Topics Related to XState JavaScript Library

Actor Model

A model where an actor is the fundamental unit of computation including processing, storage, and communication

Open-Source JavaScript and TypScript Libraries

Popular open-source libraries used in JavaScript and TypeScript development

State Machines

Abstract representations of system state at a given point in time


A visual formalism for complex systems

XState JavaScript Library Knowledge Graph