JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 55
  • Score
    100M100P100Q60155F
  • License MIT

A comprehensive state management library for roblox-ts, featuring Finite State Machines (FSM), Behavior Trees (BT), Goal Oriented Action Planning (GOAP), and Blackboard systems.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/state-management) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @rbxts/state-management

    A comprehensive state management library for roblox-ts. Provides modular, type-safe primitives for building AI and game logic: finite state machines, behavior trees, goal-oriented action planning, and a shared blackboard.

    Installation

    npm install @rbxts/state-management
    # or
    bun add @rbxts/state-management

    Modules

    docs/
    ├── blackboard.md      — Key-value store shared across AI systems
    ├── fsm.md             — Finite State Machine with priority transitions and events
    ├── behavior-tree.md   — Behavior Tree nodes, composites, decorators, and lifecycle
    ├── goap.md            — Goal Oriented Action Planning with A* planner
    └── btcreator.md       — Data-driven BehaviorTree builder from JSON
    Module Export Description
    Blackboard Blackboard Typed + untyped key-value store for sharing data between systems
    FSM FSM Finite state machine with condition, event, and any-state transitions
    Behavior Tree BTree 20+ node types — composites, decorators, leaves, and cross-system connectors
    GOAP Goap A*-based action planner with hierarchical goals and weighted requirements
    BTCreator BTCreator Build behavior trees from JSON with a registry-based node factory

    Quick Start

    import { BTree, FSM, Goap, Blackboard, BTCreator } from "@rbxts/state-management";

    License

    MIT