Superstate logo

Superstate

Type-safe JavaScript statecharts library


Type-safe

Everything is typed, from defining a statechart to sending events and listening to changes.

No more typos ruining your day!

Easy to read

The API is designed to be dense and easy to read.

Literal string syntax helps to grasp relations between states without visualization.

Composable

Defining substrates separately, makes the statechart hierarchy easy to read and promotes reusability.

And it's all fully type-safe!

Lightweight

Superstate is lightweight (just 1.5kB!) and fast, so you can use it even in smaller projects without worrying about the bundle size.

GitHub npm @kossnocorp