{"id":30802173,"url":"https://github.com/clarkmcc/brpc","last_synced_at":"2025-09-05T21:48:12.318Z","repository":{"id":206045333,"uuid":"715338683","full_name":"clarkmcc/brpc","owner":"clarkmcc","description":"Bi-directional gRPC. Easily call client RPCs from your gRPC server.","archived":false,"fork":false,"pushed_at":"2023-11-30T14:54:16.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-11-30T15:45:43.989Z","etag":null,"topics":["grpc","grpc-go","multiplexing"],"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/clarkmcc.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}},"created_at":"2023-11-07T00:08:19.000Z","updated_at":"2023-11-07T23:05:09.000Z","dependencies_parsed_at":"2023-11-30T15:52:50.413Z","dependency_job_id":null,"html_url":"https://github.com/clarkmcc/brpc","commit_stats":null,"previous_names":["clarkmcc/brpc"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/clarkmcc/brpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkmcc%2Fbrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkmcc%2Fbrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkmcc%2Fbrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkmcc%2Fbrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarkmcc","download_url":"https://codeload.github.com/clarkmcc/brpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarkmcc%2Fbrpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273827098,"owners_count":25175235,"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-09-05T02:00:09.113Z","response_time":402,"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":["grpc","grpc-go","multiplexing"],"created_at":"2025-09-05T21:48:10.769Z","updated_at":"2025-09-05T21:48:12.308Z","avatar_url":"https://github.com/clarkmcc.png","language":"Go","readme":"# brpc\nA low-invasive, bidirectional gRPC framework for Go. This library is a proof of concept that allows your clients to connect to a gRPC server, and then expose a gRPC server of their own, allowing the real gRPC server to call RPCs on the client.\n\n```go\nfunc (s *GreeterService) Greet(ctx context.Context, _ *example.GreetRequest) (*example.GreetResponse, error) {\n\t// The client provides a gRPC service. Let's extract it from the context.\n\tclient, err := s.ClientFromContext(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\t// Let's call the client's Name method, an RPC on the client's gRPC service.\n\tres, err := client.Name(ctx, \u0026example.NameRequest{})\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn \u0026example.GreetResponse{\n\t\tGreeting: fmt.Sprintf(\"Hello %v\", res.GetName()),\n\t}, nil\n}\n```\n\n## Features\n* **Bidirectional** - Clients can expose a gRPC server of their own, allowing the real gRPC server to call RPCs on the client.\n* **Low-invasive** - Takes advantage of all the generated types and functions from `protoc`, you just need to plug everything into brpc.\n* **Single connection** - All connections are multiplexed across a single QUIC connection.\n* **Go generics** - Uses Go generics to make it easy to plug everything together correctly.\n\n## Internals\nThis library uses a single QUIC connection and all other connections are multiplexed across this connection. Clients receive connection IDs from the server which they then provide with every subsequent client-to-server RPC request, and the brpc server exposes the client's RPC methods inside your gRPC service so that you can call them from the server.\n\n\n## Example\nSee [EXAMPLE.md](EXAMPLE.md) for a full example.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarkmcc%2Fbrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarkmcc%2Fbrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarkmcc%2Fbrpc/lists"}