Automated ranking

Best Go OpenAPI Libraries

Compare go openapi libraries by maintenance, adoption, security, release activity, and Go ecosystem usage. Top packages in this group include swag, Huma, Goa.

Best overall

swag

Highest combined package health score.

66
Best maintained

validate

Strongest maintenance signal in this category.

83
Most adopted

swag

Highest adoption signal from stars, forks, and imported-by data.

72

Ranked Packages

9 packages

#1 swag

Package swag contains a bunch of helper functions for go-openapi and go-swagger projects.

Go OpenAPI Libraries 0 stars 16.2K imported-by 40% confidence
66

#2 Huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1

Go OpenAPI Libraries 0 stars 10 imported-by 80% confidence
56

#3 Goa

Package goa implements a Go framework for writing microservices that promotes best practice by providing a single source of truth from which server code, client code, and documentation is derived.

Go OpenAPI Libraries 0 stars 2.0K imported-by 80% confidence
55

#4 validate

Package validate provides methods to validate a swagger specification, as well as tools to validate data against their schema.

Go OpenAPI Libraries 0 stars 0 imported-by 55% confidence
55

#5 Fuego

Package fuego provides a set of tools to build HTTP servers in Go, that automatically generate OpenAPI 3.0 documentation and support for multiple web frameworks.

Go OpenAPI Libraries 0 stars 0 imported-by 60% confidence
53

#6 go-redoc

Embedded OpenAPI/Swagger documentation ui for Go using [ReDoc](https://redocly.com/).

Go OpenAPI Libraries 0 stars 39 imported-by 80% confidence
52

#7 go-doudou

go-doudou(doudou pronounce /dəudəu/)is OpenAPI 3.0 (for REST) spec and Protobuf v3 (for grpc) based lightweight microservice framework. It supports monolith service application as well.

Go OpenAPI Libraries 0 stars 0 imported-by 45% confidence
48

#8 go-redoc

Go OpenAPI Libraries 0 stars 0 imported-by 20% confidence
41

#9 grpc-gateway

gRPC to JSON proxy generator following the gRPC HTTP spec

Go OpenAPI Libraries 0 stars 0 imported-by 75% confidence
40

Comparison Matrix

score dimensions
Package Health Maintenance Adoption Security Imported by
swag 66 48 72 92 16.2K
Huma 56 45 25 92 10
Goa 55 15 63 92 2.0K
validate 55 83 5 70 0
Fuego 53 75 7 70 0
go-redoc 52 27 34 92 39
go-doudou 48 48 7 92 0
go-redoc 41 48 5 70 0
grpc-gateway 40 15 5 92 0