{"id":23806788,"url":"https://github.com/webrpc/gen-golang","last_synced_at":"2026-04-01T23:53:34.500Z","repository":{"id":62948371,"uuid":"546133872","full_name":"webrpc/gen-golang","owner":"webrpc","description":"webrpc Golang client/server generator","archived":false,"fork":false,"pushed_at":"2026-03-25T10:00:56.000Z","size":4981,"stargazers_count":14,"open_issues_count":3,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-26T03:37:10.495Z","etag":null,"topics":["client","generator","go","golang","server","webrpc"],"latest_commit_sha":null,"homepage":"https://github.com/webrpc/webrpc","language":"Go Template","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/webrpc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-05T15:26:45.000Z","updated_at":"2026-03-22T18:27:18.000Z","dependencies_parsed_at":"2023-09-27T19:33:37.260Z","dependency_job_id":"876fd8a3-e67d-4ec4-8309-608656c3e650","html_url":"https://github.com/webrpc/gen-golang","commit_stats":{"total_commits":129,"total_committers":7,"mean_commits":"18.428571428571427","dds":0.4883720930232558,"last_synced_commit":"4fb8b9d3be9e9f5b4e7b616f8638a6238ce26e1d"},"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"purl":"pkg:github/webrpc/gen-golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webrpc","download_url":"https://codeload.github.com/webrpc/gen-golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fgen-golang/sbom","scorecard":{"id":1238039,"data":{"date":"2025-08-25","repo":{"name":"github.com/webrpc/gen-golang","commit":"8b43a3cf6a0a79d04e1e8cd4e2e9ee5160b0bd54"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3.8,"checks":[{"name":"Code-Review","score":5,"reason":"Found 15/28 approved changesets -- score normalized to 5","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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"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.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/webrpc/gen-golang/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/webrpc/gen-golang/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned 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/40576783fda6698350fcbbeaea760ff827433034/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.yml: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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"1 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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/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/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/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 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3754 / GHSA-2x5j-vhc8-9cwm","Warn: Project is vulnerable to: GO-2025-3770 / GHSA-vrw8-fxc6-2r93","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-09-23T11:35:00.295Z","repository_id":62948371,"created_at":"2025-09-23T11:35:00.298Z","updated_at":"2025-09-23T11:35:00.298Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["client","generator","go","golang","server","webrpc"],"created_at":"2025-01-01T23:14:37.985Z","updated_at":"2026-04-01T23:53:34.476Z","avatar_url":"https://github.com/webrpc.png","language":"Go Template","funding_links":[],"categories":[],"sub_categories":[],"readme":"webrpc-gen Golang templates\n===============================\n\nThis repo contains the templates used by the `webrpc-gen` cli to code-generate\nwebrpc Go server and client code.\n\n\n## Usage\n\n```\nwebrpc-gen -schema=example.ridl -target=golang -out=./example.gen.go -pkg=main -server -client\n\n# or \nwebrpc-gen -schema=example.ridl -target=github.com/webrpc/gen-golang@v0.6.0 -out=./example.gen.go -pkg=main -server -client\n\n# or\nwebrpc-gen -schema=example.ridl -target=./local-go-templates-on-disk -out=./example.gen.go -pkg=main -server -client\n```\n\nAs you can see, the `-target` supports default `golang`, any git URI, or a local folder :)\n\n### Set custom template variables\nChange any of the following values by passing `-option=\"Value\"` CLI flag to `webrpc-gen`.\n\n| webrpc-gen -option    | Default   | Description                                                                 | Added in |\n|-----------------------|-----------|-----------------------------------------------------------------------------|----------|\n| `-pkg=\u003cname\u003e`         | `\"proto\"` | package name                                                                | v0.5.0   |\n| `-client`             | `false`   | generate client code                                                        | v0.5.0   |\n| `-server`             | `false`   | generate server code                                                        | v0.5.0   |\n| `-types=false`        | `true`    | don't generate types                                                        | v0.13.0  |\n| `-json=sonic`         |           | use [sonic](https://github.com/bytedance/sonic) for JSON encoding           | v0.18.0  |\n| `-json=jsoniter`      |           | use [jsoniter](https://github.com/json-iterator/go) for JSON encoding       | v0.12.0  |\n| `-json=\u003cpkg\u003e`         |           | use alternative drop-in replacement import path for JSON encoding package   | v0.18.0  |\n| `-fixEmptyArrays`     | `false`   | `encoding/json`: fix `null` arrays with reflect (see Go [#27589][go27589])  | v0.13.0  |\n| `-errorStackTrace`    | `false`   | enables error stack traces                                                  | v0.14.0  |\n| `-webrpcHeader=false` | `true`    | enable client send webrpc version in http headers                           | v0.16.0  |\n\nExample:\n```\nwebrpc-gen -schema=./proto.json -target=golang -out server.gen.go -pkg=main -server\n```\n\n## Set custom Go field meta tags in your RIDL file\n\n| CLI option flag                              | Description                                                      |\n|----------------------------------------------|------------------------------------------------------------------|\n| `+ go.field.name = ID`                       | Set custom field name                                            |\n| `+ go.field.type = uuid.UUID`                | Set custom field type (must be able to JSON unmarshal the value) |\n| `+ go.type.import = github.com/google/uuid`  | Set custom field type's import path                              |\n| `+ go.tag.json = id`                         | Set `json:\"id\"` struct tag                                       |\n| `+ go.tag.db = id`                           | Set `db:\"id\"` struct tag                                         |\n\nExample:\n```ridl\nstruct User\n  - ID: int64\n    + go.tag.db = id\n    + go.tag.json = id\n  - UUID: string\n    + go.field.type = uuid.UUID\n    + go.type.import = github.com/google/uuid\n    + go.tag.json = uuid\n    + go.tag.db = uuid\n  - Age: int\n    + go.tag.db: age\n  - Name: string\n    + go.tag.db = name\n  - PasswordHash: string\n    + go.tag.db = passwd_hash\n```\n\nwill result in\n\n```go\nimport \"github.com/google/uuid\"\n\ntype User struct {\n\tID           int64     `json:\"id\" db:\"id\"`\n\tUUID         uuid.UUID `json:\"uuid\" db:\"uuid\"`\n\tName         string    `db:\"name\"`\n\tAge          int       `db:\"age\"`\n\tPasswordHash string    `json:\"-\" db:\"passwd_hash\"`\n}\n```\n\n## Examples\n\nSee [_examples](./_examples)\n\n## LICENSE\n\n[MIT LICENSE](./LICENSE)\n\n[go27589]: https://github.com/golang/go/issues/27589","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrpc%2Fgen-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebrpc%2Fgen-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrpc%2Fgen-golang/lists"}