{"id":17543298,"url":"https://github.com/fatih/twirpdemo","last_synced_at":"2026-03-12T18:54:56.021Z","repository":{"id":47679527,"uuid":"429741460","full_name":"fatih/twirpdemo","owner":"fatih","description":"An example repository of using the Twirp RPC framework with Go ","archived":false,"fork":false,"pushed_at":"2021-11-19T14:54:55.000Z","size":16,"stargazers_count":33,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-21T05:54:33.650Z","etag":null,"topics":["golang","rpc","twirp"],"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/fatih.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":"2021-11-19T09:33:05.000Z","updated_at":"2024-04-13T22:17:04.000Z","dependencies_parsed_at":"2022-08-22T02:20:15.876Z","dependency_job_id":null,"html_url":"https://github.com/fatih/twirpdemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fatih/twirpdemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Ftwirpdemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Ftwirpdemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Ftwirpdemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Ftwirpdemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fatih","download_url":"https://codeload.github.com/fatih/twirpdemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fatih%2Ftwirpdemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30438246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"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":["golang","rpc","twirp"],"created_at":"2024-10-21T00:23:39.530Z","updated_at":"2026-03-12T18:54:55.999Z","avatar_url":"https://github.com/fatih.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twirpdemo\n\nThis repo was created for a local meetup to show some of the features of the [Twirp RPC framework](https://twitchtv.github.io/twirp/docs/intro.html).\n\n## Usage\n\nGenerate proto code:\n\n```\nprotoc  --twirp_out=. --go_out=. proto/rpc.proto\n```\n\nRun the calculator service:\n\n```\n$ go run cmd/calculatorsvc/main.go\n2021/11/19 13:13:43 server started at port 8080\n```\n\nMake a request using curl: \n\n```\n$ curl \\\n  --request \"POST\" \\\n  --header 'Content-Type:application/json' \\\n  --data '{\"a\": 10, \"b\": 5}' \\\n  http://localhost:8080/twirp/Calculator/Add\n\n{\"result\":15}⏎\n````\n\n\nMake a request using generated Go client: \n\n```\n$ go run cmd/calculatorctl/main.go\nResult = 15\n````\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatih%2Ftwirpdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatih%2Ftwirpdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatih%2Ftwirpdemo/lists"}