{"id":37188041,"url":"https://github.com/markthethomas/protoc-gen-twirp_typescript","last_synced_at":"2026-01-14T21:52:13.171Z","repository":{"id":57505186,"uuid":"231706007","full_name":"markthethomas/protoc-gen-twirp_typescript","owner":"markthethomas","description":"Protobuf Plugin for Generating a Twirp Typescript Client","archived":false,"fork":true,"pushed_at":"2020-01-17T06:36:06.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T11:03:58.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"larrymyers/protoc-gen-twirp_typescript","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markthethomas.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}},"created_at":"2020-01-04T04:01:59.000Z","updated_at":"2023-03-04T06:25:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/markthethomas/protoc-gen-twirp_typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markthethomas/protoc-gen-twirp_typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthethomas%2Fprotoc-gen-twirp_typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthethomas%2Fprotoc-gen-twirp_typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthethomas%2Fprotoc-gen-twirp_typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthethomas%2Fprotoc-gen-twirp_typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markthethomas","download_url":"https://codeload.github.com/markthethomas/protoc-gen-twirp_typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markthethomas%2Fprotoc-gen-twirp_typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-14T21:52:11.973Z","updated_at":"2026-01-14T21:52:13.156Z","avatar_url":"https://github.com/markthethomas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twirp Typescript Plugin\n\nA protoc plugin for generating a twirp client suitable for browser and node.js projects.\n\nThis plugin supports two different outputs when generating code:\n\n1. A minimal standalone client that supports JSON transport only.\n2. [Protobuf.js](https://github.com/dcodeIO/protobuf.js) adapter for RPC calls to a twirp server. \n\n## Setup\n\nThe protobuf v3 compiler is required. You can get the latest precompiled binary for your system here:\n\nhttps://github.com/google/protobuf/releases\n\n### Twirp Go Server (optional)\n\nWhile not required for generating the client code, it is required to run the server component of the example.\n\n    go get github.com/twitchtv/twirp/protoc-gen-twirp\n    go get -u github.com/golang/protobuf/protoc-gen-go\n\n## Usage\n    \nAll generated files will be placed relative to the specified output directory for the plugin.  \nThis is different behavior than the twirp Go plugin, which places the files relative to the input proto files.\n\nThis decision is intentional, since only client code destination is likely somewhere different\nthan the server code.\n\n### Generating Code for Twirp v6\n\nBy default code is generated that supports the twirp v5 spec. If you want to use the the v6 prerelease specify the \nversion using protoc params.\n\n    protoc --twirp_typescript_out=version=v6:\u003cpath-to-project\u003e \u003cpath-to-proto-file\u003e\n    \nThe relevant change here is the routing path, which now starts with the proto package instead of \"twirp/\".\n\n* [Minimal JSON Client Usage](doc/minimal.md)\n* [Protobuf.js Client Usage](doc/protobufjs.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkthethomas%2Fprotoc-gen-twirp_typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkthethomas%2Fprotoc-gen-twirp_typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkthethomas%2Fprotoc-gen-twirp_typescript/lists"}