Skip to content

Installation

  • Node.js >= 22.12.0
  • TypeScript >= 5.0
Terminal window
npm install @mantaq/core
# or
pnpm add @mantaq/core

Optional helpers:

Terminal window
npm install @mantaq/sugar
# or
pnpm add @mantaq/sugar
  • @mantaq/core: Actor, Context, state, event, VirtualClock, RealClock
  • @mantaq/sugar: matches, states, events, tag, isIn, activeLeaves, ActorMap, onOutput, withPromise, withTimeout, actorSpec, definePart, use, withParts

sugar needs core. Only core is required.

Nothing special required. Standard works:

{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler"
}
}