# google/gnostic

A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.

Repository: https://github.com/google/gnostic
Canonical: https://ross.abutalabs.com/products/gnostic
Language: Go
License: Apache-2.0
License Family: permissive
Topics: openapi, openapi3, protocol-buffers, code-generation, linters, gnostic, apis
Last push: 2026-08-10T21:13:21+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 3578, "days_push": 23, "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 2298, forks 280 (observed 2026-08-28T04:06:35.263170+00:00)

## What it is
gnostic is a Go command-line compiler that converts OpenAPI descriptions between JSON/YAML and Protocol Buffer representations. It provides type-safe protobuf models for OpenAPI, error reporting, dependency resolution, and a plugin interface for code generation and other API tooling.

## Use cases
- convert OpenAPI specs to protobuf representations
- generate code from OpenAPI descriptions
- lint and validate OpenAPI documents
- work with OpenAPI specs in type-safe Go or Dart code
- transcode protobuf APIs to OpenAPI documents
- build custom API tooling via the gnostic plugin interface

## When to choose
- you need programmatic, type-safe access to OpenAPI descriptions
- you want to build code generators or linters on top of OpenAPI specs
- you need to convert between OpenAPI JSON/YAML and protobuf formats

## When to avoid
- you just need simple OpenAPI documentation rendering
- you need a stable 1.0 tool and cannot tolerate prerelease changes
- your toolchain has no Protocol Buffer support

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, serialization, parser, code-review, api-framework
- domain: apis, developer-tools, parsers
- platform: cli, go, cross-platform
- tags: openapi, openapi3, protocol-buffers, code-generation, api-tooling, linters

## Member repositories
- google/gnostic (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.263170+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-30T02:40:17.250167+00:00, confidence not recorded.
  - readme: https://github.com/google/gnostic (fetched 2026-08-28T04:06:35.263170+00:00, sha 368112cc9b30)
- Data as of 2026-08-30T08:39:29.467469+00:00.
