{"id":14991998,"url":"https://github.com/darthdeus/behavior-tree","last_synced_at":"2025-09-25T14:30:38.212Z","repository":{"id":57505539,"uuid":"406835712","full_name":"darthdeus/behavior-tree","owner":"darthdeus","description":"Behavior trees for Rust","archived":false,"fork":false,"pushed_at":"2023-06-17T19:40:11.000Z","size":62,"stargazers_count":32,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-17T08:54:36.231Z","etag":null,"topics":["ai","artificial-intelligence","gamedev"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darthdeus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-15T15:59:30.000Z","updated_at":"2025-02-08T13:15:32.000Z","dependencies_parsed_at":"2025-01-16T12:46:33.825Z","dependency_job_id":"5ba21660-4493-4446-98d5-dcf8ec28c11e","html_url":"https://github.com/darthdeus/behavior-tree","commit_stats":{"total_commits":92,"total_committers":1,"mean_commits":92.0,"dds":0.0,"last_synced_commit":"5a6f28a76b5ed43fcbdaf4473062f3f219db757a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darthdeus/behavior-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darthdeus%2Fbehavior-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darthdeus%2Fbehavior-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darthdeus%2Fbehavior-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darthdeus%2Fbehavior-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darthdeus","download_url":"https://codeload.github.com/darthdeus/behavior-tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darthdeus%2Fbehavior-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275614826,"owners_count":25496807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","artificial-intelligence","gamedev"],"created_at":"2024-09-24T15:00:38.399Z","updated_at":"2025-09-25T14:30:37.866Z","avatar_url":"https://github.com/darthdeus.png","language":"Rust","funding_links":[],"categories":["Data Structure and Algorithm"],"sub_categories":[],"readme":"# `behavior-tree` for Rust!\n\n[![Crates.io](https://img.shields.io/crates/v/behavior-tree)](https://crates.io/crates/behavior-tree)\n[![Crates.io (latest)](https://img.shields.io/crates/d/behavior-tree)](https://crates.io/crates/behavior-tree)\n[![Crates.io](https://img.shields.io/crates/l/behavior-tree)](https://crates.io/crates/behavior-tree)\n[![docs.rs](https://img.shields.io/docsrs/behavior-tree)](https://docs.rs/behavior-tree)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/darthdeus/behavior-tree/rust.yml)](https://github.com/darthdeus/behavior-tree/actions)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/darthdeus/behavior-tree)](https://github.com/darthdeus/behavior-tree/commits/master)\n[![GitHub branch checks state](https://img.shields.io/github/checks-status/darthdeus/behavior-tree/master)](https://github.com/darthdeus/behavior-tree/actions)\n\n**USE AT YOUR OWN RISK. This crate is under heavy development at the moment and a lot of the APIs will change often and without any notice. Performance is also terrible right now.**\n\nImplemented nodes:\n\n- Sequence - execute child nodes in a sequence until one of them fails.\n- Select - execute child nodes in a sequence until one of them succeeds.\n- While - execute a child node only when a condition is true.\n- Wait - constant time delay.\n- RandomWait - random time delay with a defined max.\n- Action - generic user-defined action.\n- StatefulAction - generic user-defined action which manages its own state in addition to the tree-wide Blackboard.\n- Cond - checks a condition and executes either the `positive` or `negative` child.\n\nAlmost all of the behaviors have test coverage including a few of the edge cases, but it is by no means exhaustive yet.\n\n**There are a few quirks that need to be figured out, especially with respect to debugging/visualization, which will be stabilized before version `0.1`.**\n\n## Other behavior tree crates\n\nThere are a few other crates that implement behavior trees (listed below).\nThis library is inspired by all of them, as well as the [Behavior Tree Starter\nKit from Game AI\nPro](https://www.gameaipro.com/GameAIPro/GameAIPro_Chapter06_The_Behavior_Tree_Starter_Kit.pdf).\n\n- https://crates.io/crates/piston-ai_behavior\n- https://github.com/pistondevelopers/ai_behavior\n\n- https://crates.io/crates/aspen\n- https://gitlab.com/neachdainn/aspen\n\n- https://crates.io/crates/stackbt_behavior_tree\n- https://github.com/eaglgenes101/stackbt\n\n## Who uses this?\n\nThe code was originally extracted from [BITGUN](https://store.steampowered.com/app/1673940/BITGUN/), which continues to use it as it's being developed open source. If you're using this crate in your game [do open a PR](https://github.com/darthdeus/behavior-tree/pulls) so we can list your game here as well!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarthdeus%2Fbehavior-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarthdeus%2Fbehavior-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarthdeus%2Fbehavior-tree/lists"}