# nytimes/openapi2proto

A tool for generating Protobuf v3 schemas and gRPC service definitions from OpenAPI specifications

Repository: https://github.com/nytimes/openapi2proto
Canonical: https://ross.abutalabs.com/products/openapi2proto
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2023-05-21T04:46:31+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3782, "days_push": 1200, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1002, forks 96 (observed 2026-09-03T02:15:15.600010+00:00)

## What it is
A Go CLI tool that converts OpenAPI/Swagger specifications (YAML or JSON) into Protobuf v3 schemas and gRPC service definitions. It supports grpc-gateway annotations, external file inlining, and various generation options via CLI flags and spec extensions.

## Use cases
- convert openapi spec to protobuf schema
- generate grpc service definitions from swagger
- generate proto v3 files from openapi yaml
- add grpc-gateway http annotations to generated protos
- migrate rest api definitions to grpc
- inline external openapi references into one proto file

## When to choose
- you have an existing OpenAPI/Swagger spec and want to adopt gRPC
- you need grpc-gateway annotations generated automatically
- you want a deterministic, spec-driven proto generation pipeline

## When to avoid
- you need gRPC-to-OpenAPI conversion (the reverse direction)
- your spec uses features openapi2proto does not support, like nested extensions
- you want a maintained tool with frequent releases

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, parser, developer-tools, rpc, api-framework
- domain: developer-tools, apis, backend
- platform: cli, go, cross-platform
- tags: openapi, protobuf, grpc, code-generation, swagger

## Member repositories
- nytimes/openapi2proto (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:15.600010+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-30T07:14:01.598118+00:00, confidence not recorded.
  - readme: https://github.com/nytimes/openapi2proto (fetched 2026-09-03T02:15:15.600010+00:00, sha 0ec937fdb4a7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
