{"id":50265399,"url":"https://github.com/everthis/bst-visualizer","last_synced_at":"2026-05-27T13:39:06.658Z","repository":{"id":57190598,"uuid":"269000465","full_name":"everthis/bst-visualizer","owner":"everthis","description":"BTree visualizer","archived":false,"fork":false,"pushed_at":"2020-06-09T12:53:41.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-27T13:39:04.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/everthis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-03T05:48:27.000Z","updated_at":"2020-08-10T10:06:50.000Z","dependencies_parsed_at":"2022-08-28T13:00:21.020Z","dependency_job_id":null,"html_url":"https://github.com/everthis/bst-visualizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/everthis/bst-visualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everthis%2Fbst-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everthis%2Fbst-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everthis%2Fbst-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everthis%2Fbst-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/everthis","download_url":"https://codeload.github.com/everthis/bst-visualizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everthis%2Fbst-visualizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33568857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":"2026-05-27T13:39:05.940Z","updated_at":"2026-05-27T13:39:06.653Z","avatar_url":"https://github.com/everthis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BST-visualizer\n\n```js\nclass Node {\n  constructor(val) {\n    this.val = val\n    this.left = null\n    this.right = null\n  }\n}\n\nconst root = new Node([32])\nconst l1_1 = new Node([19])\nconst l1_2 = new Node([14])\nconst l2_0 = new Node([9])\nconst l2_1 = new Node([8])\nconst l2_2 = new Node([5])\nconst l2_3 = new Node([33])\nconst l3_1 = new Node([1,2,3])\nconst l3_2 = new Node([1])\nconst l4_2 = new Node([10, 11, 12])\nconst l5_2 = new Node([11])\nconst l6_2 = new Node([12])\nconst l7_2 = new Node([13])\nconst l8_2 = new Node([14,15])\nconst l4_1 = new Node([99])\nconst l4_3 = new Node([79])\nconst l5_3 = new Node([78,79,80])\nroot.left = l1_1\nroot.right = l1_2\nl1_2.right = l2_0\nl1_2.left = l2_3\nl1_1.left = l2_1\nl1_1.right = l2_2\nl2_2.right = l3_2\nl3_2.right = l4_2\nl4_2.right = l5_2\nl5_2.right = l6_2\nl6_2.right = l7_2\nl7_2.right = l8_2\nl2_1.left = l3_1\nl3_1.left = l4_1\nl2_3.left = l4_3\nl4_3.left = l5_3\n\nconst cvs = document.getElementById(\"cvs\")\nconst tree = new BinaryTree({ canvas: cvs, root })\n\ntree.plot()\n```\n\n![Imgur](https://i.imgur.com/eS536ZH.png 'example')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverthis%2Fbst-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverthis%2Fbst-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverthis%2Fbst-visualizer/lists"}