{"id":17224834,"url":"https://github.com/pseudomuto/protokit","last_synced_at":"2025-10-05T00:45:00.237Z","repository":{"id":29481043,"uuid":"121817490","full_name":"pseudomuto/protokit","owner":"pseudomuto","description":"A starter kit for building protoc plugins. Rather than write your own, you can just use an existing one.","archived":false,"fork":false,"pushed_at":"2022-08-01T17:52:43.000Z","size":129,"stargazers_count":81,"open_issues_count":6,"forks_count":33,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-05T00:44:56.127Z","etag":null,"topics":["protobuf","protobuf-parser","protoc","protoc-plugin"],"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/pseudomuto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-17T01:13:49.000Z","updated_at":"2025-06-16T13:31:06.000Z","dependencies_parsed_at":"2022-08-07T14:30:14.080Z","dependency_job_id":null,"html_url":"https://github.com/pseudomuto/protokit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pseudomuto/protokit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fprotokit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fprotokit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fprotokit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fprotokit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pseudomuto","download_url":"https://codeload.github.com/pseudomuto/protokit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pseudomuto%2Fprotokit/sbom","scorecard":{"id":747972,"data":{"date":"2025-08-11","repo":{"name":"github.com/pseudomuto/protokit","commit":"dc6fd1c8003a61bcd77ddc148e4d49946fbf8c23"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/pseudomuto/protokit/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/pseudomuto/protokit/ci.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/pseudomuto/protokit/ci.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/pseudomuto/protokit/release.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/pseudomuto/protokit/release.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/pseudomuto/protokit/release.yaml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T19:26:28.642Z","repository_id":29481043,"created_at":"2025-08-22T19:26:28.642Z","updated_at":"2025-08-22T19:26:28.642Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395917,"owners_count":25979691,"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-10-04T02:00:05.491Z","response_time":63,"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":["protobuf","protobuf-parser","protoc","protoc-plugin"],"created_at":"2024-10-15T04:12:06.378Z","updated_at":"2025-10-05T00:45:00.198Z","avatar_url":"https://github.com/pseudomuto.png","language":"Go","readme":"# protokit\n\n[![CI][github-svg]][github-ci]\n[![codecov][codecov-svg]][codecov-url]\n[![GoDoc][godoc-svg]][godoc-url]\n[![Go Report Card][goreport-svg]][goreport-url]\n\nA starter kit for building protoc-plugins. Rather than write your own, you can just use an existing one.\n\nSee the [examples](examples/) directory for uh...examples.\n\n## Getting Started\n\n```golang\npackage main\n\nimport (\n    \"github.com/golang/protobuf/proto\"\n    \"github.com/golang/protobuf/protoc-gen-go/plugin\"\n    \"github.com/pseudomuto/protokit\"\n    _ \"google.golang.org/genproto/googleapis/api/annotations\" // Support (google.api.http) option (from google/api/annotations.proto).\n\n    \"log\"\n)\n\nfunc main() {\n    // all the heavy lifting done for you!\n    if err := protokit.RunPlugin(new(plugin)); err != nil {\n        log.Fatal(err)\n    }\n}\n\n// plugin is an implementation of protokit.Plugin\ntype plugin struct{}\n\nfunc (p *plugin) Generate(in *plugin_go.CodeGeneratorRequest) (*plugin_go.CodeGeneratorResponse, error) {\n    descriptors := protokit.ParseCodeGenRequest(req)\n\n    resp := new(plugin_go.CodeGeneratorResponse)\n\n    for _, d := range descriptors {\n        // TODO: YOUR WORK HERE\n        fileName := // generate a file name based on d.GetName()\n        content := // generate content for the output file\n\n        resp.File = append(resp.File, \u0026plugin_go.CodeGeneratorResponse_File{\n            Name:    proto.String(fileName),\n            Content: proto.String(content),\n        })\n    }\n\n    return resp, nil\n}\n```\n\nThen invoke your plugin via `protoc`. For example (assuming your app is called `thingy`):\n\n`protoc --plugin=protoc-gen-thingy=./thingy -I. --thingy_out=. rpc/*.proto`\n\n[github-svg]: https://github.com/pseudomuto/protokit/actions/workflows/ci.yaml/badge.svg?branch=master\n[github-ci]: https://github.com/pseudomuto/protokit/actions/workflows/ci.yaml\n[codecov-svg]: https://codecov.io/gh/pseudomuto/protokit/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/pseudomuto/protokit\n[godoc-svg]: https://godoc.org/github.com/pseudomuto/protokit?status.svg\n[godoc-url]: https://godoc.org/github.com/pseudomuto/protokit\n[goreport-svg]: https://goreportcard.com/badge/github.com/pseudomuto/protokit\n[goreport-url]: https://goreportcard.com/report/github.com/pseudomuto/protokit\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudomuto%2Fprotokit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpseudomuto%2Fprotokit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpseudomuto%2Fprotokit/lists"}