# grpc-ecosystem/grpc-gateway

gRPC to JSON proxy generator following the gRPC HTTP spec

Repository: https://github.com/grpc-ecosystem/grpc-gateway
Canonical: https://ross.abutalabs.com/products/grpc-gateway
Homepage: https://grpc-ecosystem.github.io/grpc-gateway/
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: go, grpc, grpc-gateway, rest-api, restful-api, swagger, openapi
Last push: 2026-08-26T20:53:34+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4170, "days_push": 7, "days_rel": 28, "gap_med": 22.5, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 19991, forks 2402 (observed 2026-08-28T04:11:29.498573+00:00)

## What it is
A protoc plugin that reads protobuf service definitions with google.api.http annotations and generates a reverse-proxy server translating RESTful JSON/HTTP requests into gRPC calls. It lets you expose the same API in both gRPC and REST styles, with OpenAPI/Swagger support.

## Use cases
- expose a gRPC service as a RESTful JSON API
- generate a reverse proxy from protobuf definitions
- support clients that cannot use gRPC
- generate OpenAPI/Swagger docs from proto files
- serve both gRPC and REST endpoints from one codebase
- maintain backward-compatible HTTP APIs alongside gRPC

## When to choose
- you already define services in protobuf and need HTTP/JSON access
- you want REST and gRPC from a single source of truth
- you need OpenAPI documentation generated from proto annotations
- you serve high-volume APIs in Go with proven tooling

## When to avoid
- your services are not defined with protobuf/gRPC
- you want a hand-crafted REST API with full control over routing
- you need non-Go runtime support for the generated gateway
- you only need gRPC without any HTTP/JSON interface

## Facets
- artifact type: library
- maturity: stable
- function: rpc, api-framework, http-server, middleware, api-gateway
- domain: apis, backend, developer-tools, web-development
- platform: go, cross-platform
- tags: grpc, protobuf, rest-api, openapi, swagger, reverse-proxy, protoc-plugin, code-generation

## Member repositories
- grpc-ecosystem/grpc-gateway (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:29.498573+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:59:23.044275+00:00, confidence not recorded.
  - readme: https://github.com/grpc-ecosystem/grpc-gateway (fetched 2026-08-28T04:11:29.498573+00:00, sha 875f345ba46d)
  - homepage: https://grpc-ecosystem.github.io/grpc-gateway/ (fetched 2026-08-29T07:57:52.527619+00:00, sha 5b78475f45b2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
