oapi-codegen/oapi-codegen
Generate Go client and server boilerplate from OpenAPI 3 specifications observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 99
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 49.0
- age_days: 2744
- days_rel: 47
- days_push: 7
- n_releases_24m: 9
Adoption not part of the score
8534 stars · 1056 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
oapi-codegen is a command-line tool and Go library that generates Go server boilerplate, API clients, and HTTP models from OpenAPI 3.0/3.1 specifications. It reduces boilerplate so developers can focus on business logic while keeping generated code idiomatic and simple.
Use cases
- generate go server stubs from an openapi 3 spec
- create a typed go rest api client from swagger
- generate go models from openapi yaml
- spec-first api development in go
- split large openapi specs into multiple go packages
- validate openapi spec types against go type system
When to choose
- you build Go services or clients against an OpenAPI 3.0/3.1 spec and want spec-first codegen
- you want idiomatic, readable generated Go code rather than heavily abstracted output
- you need server boilerplate for popular Go routers or a typed HTTP client
When to avoid
- your API is defined in Swagger 2.0 rather than OpenAPI 3.x
- you work outside the Go ecosystem
- you prefer runtime schema validation over generated code
Facets
cli-tool · maturity active
api-framework http-client http-server developer-tools developer-tools apis web-development backend go cli cross-platform openapi openapi3 swagger rest-api codegen go code-generation
1 source
- readme: https://github.com/oapi-codegen/oapi-codegen · fetched 2026-08-28 · b7fecadc6245
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| oapi-codegen/oapi-codegen | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="oapi-codegen/oapi-codegen")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem