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.
341 stars and 426 monthly downloads. Available on npm.
Stars
341
Forks
54
Language
JavaScript
License
—
Category
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.
Compare
Related agents
nikkorn/mistreevous
A tool to build and execute behaviour trees in JavaScript and TypeScript
limbonaut/limboai
LimboAI - Behavior Trees and State Machines for Godot 4
gilzamir18/AI4U
AI4U is a plugin that allows you use the Godot Game Engine to specify agents with reinforcement...
pruttned/owl-bt
owl-bt is editor for Behavior trees. It has been inspired by Unreal engine behavior trees in a...
igiagkiozis/CrystalAI
A Utility AI for C# and Unity