ogen-go/ogen
OpenAPI v3 code generator for go observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 13.5
- age_days: 1922
- days_rel: 26
- days_push: 9
- n_releases_24m: 29
Adoption not part of the score
2131 stars · 181 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ogen is an OpenAPI v3 code generator for Go that produces statically typed client and server code from an OpenAPI specification. It generates optimized JSON encoding, validation, a static radix router, sum types for oneOf, and optional/nullable wrappers without reflection or interface{} on the hot path.
Use cases
- generate a type-safe Go server from an OpenAPI v3 spec
- generate a Go REST API client from swagger/openapi yaml
- avoid writing boilerplate request parsing and validation code
- get fast JSON encoding without encoding/ reflection overhead
- generate sum types for oneOf schemas in Go
- add OpenTelemetry tracing and metrics to a generated API server
- generate SSE clients from an OpenAPI spec
When to choose
- you have an OpenAPI v3 spec and want fully typed Go client and server code
- you want code-generated validation and routing with no reflection
- you need optional/nullable field handling without pointer soup
- you want a stable, actively maintained generator with batteries-included observability
When to avoid
- your API spec is not OpenAPI v3 (e.g., only Swagger 2.0)
- you need dynamic or runtime-configurable API behavior rather than static codegen
- you prefer hand-written handlers with minimal generated code
- your spec uses features ogen does not support yet
Facets
cli-tool · maturity stable
web-framework http-server http-client serialization routing form-handling cli developer-tools apis web-development backend go cli cross-platform openapi openapi-v3 codegen rest-api swagger type-safe static-typing radix-router opentelemetry sse code-generation docker
3 sources
- readme: https://github.com/ogen-go/ogen · fetched 2026-08-28 · 165e28011c36
- homepage: https://ogen.dev · fetched 2026-08-29 · 9fe588f26942
- site_page: https://ogen.dev/docs/intro · fetched 2026-08-29 · 9217664a7ceb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ogen-go/ogen | main | 98 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem