Calamari/BehaviorTree.js

An JavaScript implementation of Behavior Trees.

66
/ 100
Established

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.

341 stars and 426 monthly downloads. Available on npm.

No License
Maintenance 13 / 25
Adoption 16 / 25
Maturity 17 / 25
Community 20 / 25

How are scores calculated?

Stars

341

Forks

54

Language

JavaScript

License

Category

unity-game-ai

Last pushed

Mar 09, 2026

Monthly downloads

426

Commits (30d)

0

Dependencies

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/agents/Calamari/BehaviorTree.js"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.