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.

BehaviorTree.js
66
Established
mistreevous
58
Established
Maintenance 13/25
Adoption 16/25
Maturity 17/25
Community 20/25
Maintenance 10/25
Adoption 10/25
Maturity 25/25
Community 13/25
Stars: 341
Forks: 54
Downloads: 426
Commits (30d): 0
Language: JavaScript
License:
Stars: 128
Forks: 14
Downloads:
Commits (30d): 0
Language: TypeScript
License: MIT
No License
No risk flags

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

Scores updated daily from GitHub, PyPI, and npm data. How scores work