{"id":15798673,"url":"https://github.com/chanced/formatproto","last_synced_at":"2025-09-14T04:05:04.128Z","repository":{"id":142987760,"uuid":"329740239","full_name":"chanced/formatproto","owner":"chanced","description":"format-proto is a post-processor for protoc-gen-star that formats proto files with clang-format","archived":false,"fork":false,"pushed_at":"2021-01-14T21:56:37.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-15T22:25:22.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/chanced.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":"2021-01-14T21:36:25.000Z","updated_at":"2024-06-19T10:07:00.709Z","dependencies_parsed_at":"2023-04-04T23:44:15.484Z","dependency_job_id":null,"html_url":"https://github.com/chanced/formatproto","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/chanced/formatproto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanced%2Fformatproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanced%2Fformatproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanced%2Fformatproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanced%2Fformatproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanced","download_url":"https://codeload.github.com/chanced/formatproto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanced%2Fformatproto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275058562,"owners_count":25398174,"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-14T02:00:10.474Z","response_time":75,"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-05T00:43:07.417Z","updated_at":"2025-09-14T04:05:04.076Z","avatar_url":"https://github.com/chanced.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formatproto\n\nformatproto is a post-processor for [protoc-gen-star](https://github.com/lyft/protoc-gen-star) that formats proto files with [clang-format](https://clang.llvm.org/docs/ClangFormatStyleOptions.html)\n\n## Usage:\n\n```go\npackage main\n\nimport (\n    \"github.com/chanced/formatproto\"\n    pgs \"github.com/lyft/protoc-gen-star\"\n)\n\nfunc main() {\n    pgs.Init(\n        pgs.DebugEnv(\"DEBUG\"),\n    ).RegisterModule(\n        // your modules here\n    ).RegisterPostProcessor(\n        formatproto.PostProcessor(),\n    ).Render()\n}\n```\n\nYou will also need a `.clang-format` file at the root of your directory. An example file:\n\n```yaml\nLanguage: Proto\nBasedOnStyle: google\nIndentWidth: 2\n```\n\n## Prereqs:\n\nYou must have clang-format installed.\n\n### MacOS\n\n`brew install clang-format`\n\n### Linux (with apt)\n\n`sudo apt install clang-format`\n\n### Windows\n\nDownload the binary: [https://llvm.org/builds/](https://llvm.org/builds/)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanced%2Fformatproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanced%2Fformatproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanced%2Fformatproto/lists"}