BehaviorTree.js and mistreevous
These are competitors—both implement behavior tree execution engines for JavaScript/TypeScript game AI, with BehaviorTree.js being the more established option (higher stars and actual npm downloads) while mistreevous offers an alternative implementation with similar core functionality.
About BehaviorTree.js
Calamari/BehaviorTree.js
An JavaScript implementation of Behavior Trees.
Provides composable node types (Sequences for linear execution, Selectors for priority-based branching, Random for stochastic behavior) with a blackboard pattern for shared state across tasks. Includes built-in decorators like InvertDecorator and CooldownDecorator for conditional logic and timing control, plus a registry system for reusing task definitions across multiple trees without duplication.
About mistreevous
nikkorn/mistreevous
A tool to build and execute behaviour trees in JavaScript and TypeScript
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work