Hacker GitHub

← All repos

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

Mentions per year 27 mentions · busiest year 2018 (6)
20082026
  1. …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
  2. …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.
  3. …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
  4. it lacks flexibility but i really enjoy grpc-gateway for 99% of my work https://github.com/grpc-ecosystem/grpc-gateway
  5. …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):…
  6. …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 )
  7. …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
  8. 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)
  9. …outside for consumption in a RESTful style. One exception I know of is sourcegraph/sourcegraph. [1] https://github.com/grpc-ecosystem/grpc-gateway#usage
  10. That's available with GRPC to JSON transcoding https://github.com/grpc-ecosystem/grpc-gateway
  11. …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
  12. …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
  13. …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
  14. …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
  15. You can build gRPC and get REST for free. https://github.com/grpc-ecosystem/grpc-gateway
  16. Check out grpc-gateway[1] [1]: https://github.com/grpc-ecosystem/grpc-gateway/
    comment by mehrdada · 2018-01-26 · in gRPC-Go Engineering Practices
  17. 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
  18. That's pretty much exactly what tools like https://github.com/grpc-ecosystem/grpc-gateway are doing
  19. …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
  20. 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
  21. 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.
  22. 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
  23. grpc-go ( https://github.com/grpc/grpc-go ) + grpc-gateway ( https://github.com/grpc-ecosystem/grpc-gateway )
  24. …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…
  25. …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.
  26. 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
  27. …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