{"id":34546332,"url":"https://github.com/tailrecursion/bo","last_synced_at":"2026-03-14T11:30:48.291Z","repository":{"id":141847753,"uuid":"24291857","full_name":"tailrecursion/bo","owner":"tailrecursion","description":"A minimal implementation of LightTable's BOT Architecture.","archived":false,"fork":false,"pushed_at":"2015-09-02T17:04:59.000Z","size":200,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-05-09T13:59:53.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/tailrecursion.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}},"created_at":"2014-09-21T13:36:35.000Z","updated_at":"2021-03-13T11:12:04.000Z","dependencies_parsed_at":"2023-03-13T06:15:18.402Z","dependency_job_id":null,"html_url":"https://github.com/tailrecursion/bo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tailrecursion/bo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fbo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fbo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fbo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fbo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailrecursion","download_url":"https://codeload.github.com/tailrecursion/bo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailrecursion%2Fbo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27997216,"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-12-24T02:00:07.193Z","response_time":83,"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":[],"created_at":"2025-12-24T07:05:12.457Z","updated_at":"2025-12-24T07:05:42.504Z","avatar_url":"https://github.com/tailrecursion.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BO\n\nA minimal implementation of LightTable's [BOT Architecture](http://www.chris-granger.com/2013/01/24/the-ide-as-data/).\n\nBO can be used to glue different parts within the application with behaviors.\nIt can help augment the Data Flow in javelin with\n\n* Data Store\n* Control Flow\n\n# See\n\n* [Entity Systems](http://entity-systems.wikidot.com/rdbms-with-code-in-systems)\n\n# Protocol\n\n```clojure\n(defprotocol IBO\n  (add [this object-name object-map])\n  (get-object [this object-name])\n  (get-in-object [this object-name object-keys])\n  (update! [this object-name object-map])\n  (update-in! [this object-name object-keys value])\n  (rm [this object-name])\n  (objects [this])\n  (by-prop [this meta-info matcher])\n  (raise [this event-name input]))\n```\n\n# Example\n\n```clojure\n(ns tailrecursion.bo.test\n  (:require [tailrecursion.bo :as bo]))\n\n(enable-console-print!)\n\n(let [test-bo (bo/BO. (atom {}) (atom {:pc nil :frame []}))]\n  (bo/add test-bo :foo {:type :object :data 1 :behaviors [:baz]})\n  (bo/add test-bo :bar {:type :object :data 0})\n  (bo/update-in! test-bo :bar [:data] 2)\n  (println (bo/get-in-object test-bo :bar [:data]))\n  (bo/add test-bo :baz {:type :behavior\n                        :events [:e]\n                        :action (fn [this event-name input obj-name]\n                                  (println (str \"got \" input \" for \" obj-name \" from \" event-name)))\n                       })\n  (bo/raise test-bo :e 5))\n```\n\n```\n2\ngot 5 for :foo from :e\n```\n\n# Testing\n\n```\n$ lein cljsbuild auto\n$ node target/test.js\n```\n\n# Status\n\nAlpha.\n\n## License\n\nCopyright (c) Sreeharsha Mudivarti. All rights reserved.\n\nThe use and distribution terms for this software are\ncovered by the Eclipse Public License 1.0\n(http://opensource.org/licenses/eclipse-1.0.php) which can be\nfound in the file epl-v10.html at the root of this\ndistribution. By using this software in any fashion, you are\nagreeing to be bound by the terms of this license. You must not\nremove this notice, or any other, from this software.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailrecursion%2Fbo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailrecursion%2Fbo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailrecursion%2Fbo/lists"}