{"id":19420104,"url":"https://github.com/einride/protoc-gen-typescript-http","last_synced_at":"2026-04-02T15:59:51.031Z","repository":{"id":37970075,"uuid":"345423005","full_name":"einride/protoc-gen-typescript-http","owner":"einride","description":"Generate types and service clients from protobuf definitions annotated with http rules.","archived":false,"fork":false,"pushed_at":"2025-10-01T10:03:20.000Z","size":226,"stargazers_count":48,"open_issues_count":9,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-09T00:06:00.208Z","etag":null,"topics":["protobuf","protoc","typescript"],"latest_commit_sha":null,"homepage":"","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/einride.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","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":"2021-03-07T18:33:00.000Z","updated_at":"2025-09-15T05:53:41.000Z","dependencies_parsed_at":"2025-01-21T09:21:41.203Z","dependency_job_id":"8a611325-9be2-49f0-9fc4-aaecbe82e09a","html_url":"https://github.com/einride/protoc-gen-typescript-http","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/einride/protoc-gen-typescript-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fprotoc-gen-typescript-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fprotoc-gen-typescript-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fprotoc-gen-typescript-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fprotoc-gen-typescript-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/einride","download_url":"https://codeload.github.com/einride/protoc-gen-typescript-http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fprotoc-gen-typescript-http/sbom","scorecard":{"id":370076,"data":{"date":"2025-08-11","repo":{"name":"github.com/einride/protoc-gen-typescript-http","commit":"bb071a04f33f969946d1001c0137d439e8c29fbf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"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: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/einride/protoc-gen-typescript-http/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/review.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/einride/protoc-gen-typescript-http/review.yml/master?enable=pin","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: topLevel permissions set to 'write-all': .github/workflows/release.yml:7"],"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.10.0 not signed: https://api.github.com/repos/einride/protoc-gen-typescript-http/releases/232758592","Warn: release artifact v0.8.2 not signed: https://api.github.com/repos/einride/protoc-gen-typescript-http/releases/99153495","Warn: release artifact v0.8.1 not signed: https://api.github.com/repos/einride/protoc-gen-typescript-http/releases/79603029","Warn: release artifact v0.10.0 does not have provenance: https://api.github.com/repos/einride/protoc-gen-typescript-http/releases/232758592","Warn: release artifact v0.8.2 does not have provenance: https://api.github.com/repos/einride/protoc-gen-typescript-http/releases/99153495","Warn: release artifact v0.8.1 does not have provenance: https://api.github.com/repos/einride/protoc-gen-typescript-http/releases/79603029"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on 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 30 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"}}]},"last_synced_at":"2025-08-18T12:44:37.714Z","repository_id":37970075,"created_at":"2025-08-18T12:44:37.715Z","updated_at":"2025-08-18T12:44:37.715Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000744,"owners_count":26082879,"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-08T02:00:06.501Z","response_time":56,"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","protoc","typescript"],"created_at":"2024-11-10T13:21:05.839Z","updated_at":"2025-10-09T00:08:27.874Z","avatar_url":"https://github.com/einride.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protoc-gen-typescript-http\n\nGenerates Typescript types and service clients from protobuf definitions\nannotated with\n[http rules](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto).\nThe generated types follow the\n[canonical JSON encoding](https://developers.google.com/protocol-buffers/docs/proto3#json).\n\n**Experimental**: This library is under active development and breaking changes\nto config files, APIs and generated code are expected between releases.\n\n## Using the plugin\n\nFor examples of correctly annotated protobuf defintions and the generated code,\nlook at [examples](./examples).\n\n### Install the plugin\n\n```bash\ngo get go.einride.tech/protoc-gen-typescript-http\n```\n\nOr download a prebuilt binary from [releases](./releases).\n\n### Invocation\n\n```bash\nprotoc \n  --typescript-http_out [OUTPUT DIR] \\\n  [.proto files ...]\n```\n\n______________________________________________________________________\n\nThe generated clients can be used with any HTTP client that returns a Promise\ncontaining JSON data.\n\n```typescript\nconst rootUrl = \"...\";\n\ntype Request = {\n  path: string,\n  method: string,\n  body: string | null\n}\n\nfunction fetchRequestHandler({path, method, body}: Request) {\n  return fetch(rootUrl + path, {method, body}).then(response =\u003e response.json())\n}\n\nexport function siteClient() {\n  return createShipperServiceClient(fetchRequestHandler);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinride%2Fprotoc-gen-typescript-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feinride%2Fprotoc-gen-typescript-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinride%2Fprotoc-gen-typescript-http/lists"}