Calamari/BehaviorTree.js

An JavaScript implementation of Behavior Trees.

57
/ 100
Established

This helps game developers build realistic and complex behaviors for AI characters and NPCs by defining decision-making flows. You input a series of tasks, sequences, and selectors, and it outputs a runnable behavior tree that dictates how your AI acts. This is designed for game developers, simulation creators, or anyone crafting autonomous agents in a digital environment.

341 stars. Available on npm.

Use this if you need to create sophisticated AI behaviors for characters in games or simulations, dictating their actions based on various conditions and sequences.

Not ideal if you're looking for a low-code solution for simple, rule-based AI or if your primary goal is machine learning model development.

game-development game-AI NPC-behavior character-AI simulation-AI
No License
Maintenance 10 / 25
Adoption 10 / 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

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.