grpc-ecosystem/grpc-gateway
View on GitHub ↗ ★ 20,013 Go
gRPC to JSON proxy generator following the gRPC HTTP spec
27 mentions on Hacker News by 26 people: 0 stories, 27 comments · first 2016-07-15 · latest 2025-12-01
20082026
-
…then this framework let's you work with protobufs and gives you a JSON rest-like service for free: https://github.com/grpc-ecosystem/grpc-gateway
comment by pstuart · 2025-12-01 · in Why I stopped using JSON for my APIs -
…generate an HTTP API from the corresponding gRPC API It's possible to do this without writing code. https://github.com/grpc-ecosystem/grpc-gateway You can even get it to generate Open AI style documentation.
comment by ianpurton · 2024-07-24 · in Software engineers are not (and should not be) technicians -
…packages that can facade/match your existing REST APIs[1][2]. Reads like a skill issue to me. [1]: https://github.com/grpc-ecosystem/grpc-gateway [2]: https://github.com/connectrpc/vanguard-go
comment by perezd · 2024-06-27 · in gRPC: The Bad Parts -
it lacks flexibility but i really enjoy grpc-gateway for 99% of my work https://github.com/grpc-ecosystem/grpc-gateway
comment by flowardnut · 2024-02-10 · in How I write HTTP services in Go after 13 years -
…that's public atm, but the guide in grpc-gateway is pretty clear/can be followed step by step. https://github.com/grpc-ecosystem/grpc-gateway To integrate with Fiber, I used the Fiber Adaptor (also pretty straightforward):…
comment by ecesena · 2023-08-03 · in Ask HN: Rapid Development API-Only One Person Stack – Seeking Performant Tech -
…ad (see "PRICING") and that you can continue to use "go generate" like you always have. (Example: https://github.com/grpc-ecosystem/grpc-gateway/pull/1971 )
comment by jrockway · 2022-02-23 · in The Buf CLI, an all-in-one tool for Protobuf development, has reached v1.0 -
…cool features (pretty printing, serialization to text/binary, sending over the network, etc). [0] - https://github.com/grpc-ecosystem/grpc-gateway
comment by gravypod · 2021-09-23 · in gRPC for Microservices Communication -
I had really good success with https://github.com/grpc-ecosystem/grpc-gateway for returning json to the web from a grpc system
comment by llimllib · 2021-02-22 · in Best practices for REST API design (2020) -
…outside for consumption in a RESTful style. One exception I know of is sourcegraph/sourcegraph. [1] https://github.com/grpc-ecosystem/grpc-gateway#usage
comment by 0xbkt · 2021-01-17 · in REST Servers in Go: Part 1 – standard library -
That's available with GRPC to JSON transcoding https://github.com/grpc-ecosystem/grpc-gateway
comment by orbz · 2020-11-05 · in gRPC on Node.js with Buf and TypeScript -
…that generates a RESTful API from your gRPC API You might be thinking grpc-gateway. [1] [1]: https://github.com/grpc-ecosystem/grpc-gateway
comment by divbzero · 2020-06-20 · in Robust APIs Are Weird -
…chunked encoding. In fact, that's what the gRPC-gateway (http/json gateway to a gRPC service) does https://github.com/grpc-ecosystem/grpc-gateway . gRPC adds bi-directional streaming which is not possible in http, but the use cases for…
comment by ahuang · 2019-05-27 · in Why We’re Switching to gRPC -
…streaming bit, since you'd have to do some sort of comet/long polling/sse/websockets approach. [0]: https://github.com/grpc-ecosystem/grpc-gateway
comment by hardwaresofton · 2019-01-10 · in The state of gRPC in the browser -
…Happy to answer questions on our experience. [0]: https://github.com/improbable-eng/grpc-web [1]: https://github.com/grpc-ecosystem/grpc-gateway
comment by lima · 2019-01-09 · in The state of gRPC in the browser -
You can build gRPC and get REST for free. https://github.com/grpc-ecosystem/grpc-gateway
comment by segmondy · 2018-06-11 · in Why create gRPC if you can run REST over HTTP/2, and there is websockets? -
Check out grpc-gateway[1] [1]: https://github.com/grpc-ecosystem/grpc-gateway/
comment by mehrdada · 2018-01-26 · in gRPC-Go Engineering Practices -
Does this work? https://github.com/grpc-ecosystem/grpc-gateway Seems to generate a REST proxy server side.
comment by kyrra · 2018-01-26 · in gRPC-Go Engineering Practices -
That's pretty much exactly what tools like https://github.com/grpc-ecosystem/grpc-gateway are doing
comment by bpicolo · 2018-01-20 · in Rejoiner: Unified GraphQL schema from gRPC microservices -
…of JSON support in gRPC - while that's true, it's relatively easily to bolt on using grpc-gateway ( https://github.com/grpc-ecosystem/grpc-gateway ). Here's how we did it in CockroachDB: https://github.com/cockroachdb/cockroach/blob/24ed8df…
comment by tdrd · 2018-01-17 · in Twirp: A new RPC framework for Go -
There is also the grpc-gateway project for JSON transcoding https://github.com/grpc-ecosystem/grpc-gateway
comment by buckhx · 2018-01-16 · in Twirp: A new RPC framework for Go -
Have you seen https://github.com/grpc-ecosystem/grpc-gateway ? It generates a reverse proxy that converts proto <-> JSON and will even output a Swagger definition you can use with a JS client library.
comment by Veratyr · 2017-11-19 · in Ask HN: Using gRPC+protobuf is painful. Any nice-to-use alternatives? -
We are doing it another way: Start with a gRPC spec -> protoc-gen-swagger ( https://github.com/grpc-ecosystem/grpc-gateway ) I think there is a New York Times Github repo, which does: Swagger -> gRPC
comment by weitzj · 2017-10-06 · in AutoRest: OpenAPI Specification code generator -
grpc-go ( https://github.com/grpc/grpc-go ) + grpc-gateway ( https://github.com/grpc-ecosystem/grpc-gateway )
comment by prettynatty · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
…translates the REST mappings of `google.api.http` into gRPC requests. It relies on code-generation: https://github.com/grpc-ecosystem/grpc-gateway This has been the way we've been shipping our REST services until now, but the need to…
comment by mwitkow · 2017-04-27 · in gRPC-Web: Moving past REST+JSON towards type-safe Web APIs -
…super interesting lately is defining APIs with grpc and then exposing them with the gateway proxy: https://github.com/grpc-ecosystem/grpc-gateway In this way, you get strongly-typed interfaces and Swagger is autogenned for you.
comment by bpicolo · 2017-03-21 · in A Visual Guide to What's New in Swagger 3.0 -
There's already a project that auto-generates a normal REST proxy from a gRPC definition: https://github.com/grpc-ecosystem/grpc-gateway
comment by manigandham · 2016-08-24 · in gRPC: Internet-scale RPC framework is now 1.0 -
…from Google, and used by Docker and Square among others. It even comes with a rest-focused gateway https://github.com/grpc-ecosystem/grpc-gateway
comment by e1g · 2016-07-15 · in Real-world HTTP/2: 400GB of images per day