{"id":18006085,"url":"https://github.com/brianhicks/tree-db","last_synced_at":"2025-09-05T07:38:19.144Z","repository":{"id":138124051,"uuid":"588302216","full_name":"BrianHicks/tree-db","owner":"BrianHicks","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-18T11:15:29.000Z","size":141,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T22:44:29.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrianHicks.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-12T20:01:08.000Z","updated_at":"2023-04-08T10:50:19.000Z","dependencies_parsed_at":"2023-03-16T01:44:57.316Z","dependency_job_id":null,"html_url":"https://github.com/BrianHicks/tree-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrianHicks/tree-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianHicks%2Ftree-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianHicks%2Ftree-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianHicks%2Ftree-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianHicks%2Ftree-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianHicks","download_url":"https://codeload.github.com/BrianHicks/tree-db/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianHicks%2Ftree-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273727774,"owners_count":25157133,"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-05T02:00:09.113Z","response_time":402,"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":"2024-10-30T00:23:13.284Z","updated_at":"2025-09-05T07:38:14.130Z","avatar_url":"https://github.com/BrianHicks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree-db\n\nTransforms a project's source AST into a database you can query!\n\n## Building\n\n1. Have the [Nix](https://nixos.org/) package manager installed (NixOS not required.)\n2. Check out the source\n3. Run `nix build .#tree-db-full`\n\nIf you just want grammars, you can build them like `nix build .#grammars.tree-sitter-rust`.\nLook in `flake.nix` for a full list.\n\nIf you want a development environment, type `nix develop`.\nI recommend having `direnv` installed for this, as there's instructions for easy shells in the repo already.\n\n## Schema\n\n`tree-db` can emit a [Cozo](https://www.cozodb.org/) database or SQLite backup, depending on the command (run `tree-db help export` for full documentation or to export this schema.)\n\n```\n{:create nodes {\n    path: String,\n    id: Int,\n    =\u003e\n    kind: String,\n    is_error: Bool,\n    source: String?,\n}}\n\n{:create node_locations {\n    path: String,\n    id: Int,\n    =\u003e\n    start_byte: Int,\n    start_row: Int,\n    start_column: Int,\n    end_byte: Int,\n    end_row: Int,\n    end_column: Int,\n}}\n\n{:create edges {\n    path: String,\n    parent: Int,\n    child: Int,\n    field: String?,\n}}\n```\n\nThe schema in this file is only provided for convenience and understanding, though.\nSee `tree-db export cozo-schema` for the schema that your installed version of `tree-db` actually works with.\n\n## Stability\n\n`tree-db` is pre-1.0.0 software, and not yet completely stabilized.\nHere are the big things that might change:\n\n1. The schema that `tree-db` generates might change once I've used it in a couple of places.\n1. I'm not sure where it should live (GitHub might only be temporary)\n\n## Contributing\n\nThis is a personal project right now.\nI've got some ideas about how to make it work well, but this is more-or-less an experiment that I'm doing in public.\nFeel free to open issues if you give this a try, but PRs probably don't make sense yet (unless we talk first.)\n\n## License\n\nMIT.\nSee `LICENSE`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianhicks%2Ftree-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianhicks%2Ftree-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianhicks%2Ftree-db/lists"}