# gRPC-Gateway

> protoc plugin that generates a REST/JSON reverse proxy for your gRPC services

Source: https://talira.ai/catalog/grpc-gateway-zz4r5a53
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [frameworks / rpc](https://talira.ai/categories/frameworks/rpc), [languages / go](https://talira.ai/categories/languages/go)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [OpenAPI](https://talira.ai/standards/openapi.md)[^1]
- Backed by: [gRPC Ecosystem](https://talira.ai/orgs/grpc-ecosystem.md)

gRPC-Gateway is a plugin for the protocol buffers compiler that reads your protobuf service definitions and generates a reverse-proxy server in Go, which translates a RESTful HTTP/JSON API into gRPC calls, following the `google.api.http` annotations. So you can serve the same API over gRPC and REST. It also comes with `protoc-gen-openapiv2`, which generates OpenAPI (Swagger 2.0) definitions from the same files, and an alpha `protoc-gen-openapiv3` for OpenAPI 3.1. It works with `protoc` or `buf generate`. The gRPC Ecosystem project maintains it.

## Links

- Website: https://grpc-ecosystem.github.io/grpc-gateway/
- GitHub: https://github.com/grpc-ecosystem/grpc-gateway

## Problems it solves

- serve a REST JSON API alongside my gRPC service without writing it twice
- generate an HTTP gateway from my protobuf definitions in Go
- get an OpenAPI spec from my .proto service definitions

## Features

- generates a Go reverse proxy that serves a REST/JSON API in front of gRPC
- follows google.api.http annotations for paths, query strings and request bodies
- maps server streaming to newline-delimited JSON
- maps HTTP headers to gRPC metadata and sets gRPC timeouts
- turns PATCH requests into field-mask updates
- generates OpenAPI (Swagger 2.0) definitions with protoc-gen-openapiv2

## Limitations

- Its makers don't plan to support method parameters in HTTP headers, trailer metadata, XML bodies or true bidirectional streaming.[^1]
- protoc-gen-openapiv3 (OpenAPI 3.1 output) is alpha: its output may change between minor releases, and protoc-gen-openapiv2 is the stable option.[^1]

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.86, momentum 0.65, community 1.00, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 423 commits in the last 90 days
- latest release v2.34.0 13 days ago
- 20.0k GitHub stars
- 503 contributors
- backed by gRPC Ecosystem

## Related

- Works with [gRPC](https://talira.ai/catalog/grpc-gdszpcny.md)
- Works with [Protocol Buffers](https://talira.ai/catalog/protocol-buffers-6w9h1xsc.md)

## Alternatives

- [Kratos](https://talira.ai/catalog/kratos-5wy0dm66.md): Go microservices framework for the cloud-native era

## Sources

[^1]: https://github.com/grpc-ecosystem/grpc-gateway/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE (checked 28 Nov 2026)
