{"id":30147612,"url":"https://github.com/hanxi/tree-sitter-sproto","last_synced_at":"2026-05-20T07:02:47.877Z","repository":{"id":309321763,"uuid":"1035831088","full_name":"hanxi/tree-sitter-sproto","owner":"hanxi","description":"Treesitter for sproto","archived":false,"fork":false,"pushed_at":"2025-08-11T07:08:53.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-11T09:22:26.015Z","etag":null,"topics":["nvim-treesitter","sproto","tree-sitter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hanxi.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,"zenodo":null}},"created_at":"2025-08-11T06:47:15.000Z","updated_at":"2025-08-11T07:08:56.000Z","dependencies_parsed_at":"2025-08-11T09:22:28.490Z","dependency_job_id":"df59b834-6297-4968-b2eb-5994ac426972","html_url":"https://github.com/hanxi/tree-sitter-sproto","commit_stats":null,"previous_names":["hanxi/tree-sitter-sproto"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hanxi/tree-sitter-sproto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Ftree-sitter-sproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Ftree-sitter-sproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Ftree-sitter-sproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Ftree-sitter-sproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanxi","download_url":"https://codeload.github.com/hanxi/tree-sitter-sproto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Ftree-sitter-sproto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272186295,"owners_count":24888354,"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-08-26T02:00:07.904Z","response_time":60,"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":["nvim-treesitter","sproto","tree-sitter"],"created_at":"2025-08-11T10:01:47.331Z","updated_at":"2026-05-20T07:02:47.820Z","avatar_url":"https://github.com/hanxi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree-sitter-sproto\n\n[![GitHub](https://img.shields.io/badge/github-hanxi%2Ftree--sitter--sproto-blue)](https://github.com/hanxi/tree-sitter-sproto)\n\n\u003e **Treesitter for sproto**\n\nThis repository provides a [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the [sproto](https://github.com/cloudwu/sproto) serialization protocol. With this grammar, you can enable advanced syntax highlighting, code folding, and structural analysis for sproto files in editors and tools that support Tree-sitter, such as Neovim (via nvim-treesitter).\n\n## Features\n\n- Syntax highlighting for sproto files.\n- Tree-sitter queries for advanced code navigation.\n- Multi-language bindings (Node.js, Python, Rust, Go, Swift).\n- Easily integratable with editor plugins (like nvim-treesitter).\n\n## Getting Started\n\n### Requirements\n\n- [Node.js](https://nodejs.org/) (for development and testing)\n- [Tree-sitter CLI](https://tree-sitter.github.io/tree-sitter/creating-parsers#installation)\n- Your preferred editor with Tree-sitter support (e.g., Neovim)\n\n### Installation\n\n#### For Neovim (via nvim-treesitter)\n\nAdd `tree-sitter-sproto` to your `nvim-treesitter` configuration:\n\n```lua\nrequire'nvim-treesitter.parsers'.get_parser_configs().sproto = {\n  install_info = {\n    url = \"https://github.com/hanxi/tree-sitter-sproto\",\n    files = {\"src/parser.c\"}\n  },\n  filetype = \"sproto\",\n}\n```\n\n#### Building Locally\n\nClone the repository and build the parser:\n\n```bash\ngit clone https://github.com/hanxi/tree-sitter-sproto.git\ncd tree-sitter-sproto\nnpm install\nnpm run build\n```\n\n### Usage\n\nAfter building, you can use the generated parser in any tool that accepts Tree-sitter grammars. For editor integration, follow the instructions of the relevant plugin.\n\n## Development\n\n- Grammar is defined in [`grammar.js`](./grammar.js)\n- See `tree-sitter.json` for parser configuration.\n- Multiple build systems supported: `Makefile`, `CMakeLists.txt`, `Cargo.toml`, `setup.py`, `go.mod`, `Package.swift`.\n\nTo generate parser source files:\n\n```bash\nnpx tree-sitter generate\n```\n\n## Contributing\n\nContributions are welcome! Please create issues or PRs if you find bugs or want to improve the grammar.\n\n## License\n\nMIT or same as Tree-sitter (see LICENSE if present).\n\n## Links\n\n- [Tree-sitter Documentation](https://tree-sitter.github.io/tree-sitter/)\n- [sproto Documentation](https://github.com/cloudwu/sproto)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanxi%2Ftree-sitter-sproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanxi%2Ftree-sitter-sproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanxi%2Ftree-sitter-sproto/lists"}