#3636th of 55 in Backend and cloud templates

huma

Go framework for REST/RPC APIs built from typed handlers and OpenAPI 3.1

Stars
4.5k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Go

Missed the latest GitHub check; these facts may be older.

Overview

Huma is a Go micro framework that runs on a router you choose (chi, the Go 1.22+ standard mux, and others) and generates OpenAPI 3.1 and JSON Schema from annotated Go input and output types. It validates requests, returns RFC 9457 errors, negotiates JSON or CBOR, and serves docs through Stoplight Elements. It has no AI features, so it fits this list only as a backend service template.

Who it is for: Go developers building documented REST or RPC APIs

Strengths

  • Works with existing routers and middleware, so services can adopt it one route at a time
  • Generates OpenAPI 3.1 and JSON Schema from Go types, so docs track the code
  • Built-in request validation, RFC 9457 problem+json errors, and per-operation body size limits
  • Optional CLI with port flag or env var, plus graceful shutdown

Weaknesses

  • No AI, model or agent functionality; it is a general-purpose HTTP API framework
  • Requires Go 1.26 or newer
  • A library to import, not a starter app with auth, database or deployment files
  • Generated docs UI depends on Stoplight Elements

What it needs

  • Go
  • Needs Go 1.26+, Go HTTP router such as chi (optional)

Also in Backend and cloud templates

See all 55
Also in Backend and cloud templates
RankProjectScore
1fastapiPython web framework for typed REST APIs with automatic OpenAPI docs104.7k stars+1,871 (+1.8%) in 30 daysMIT90 out of 100
2fiberExpress-style HTTP web framework for Go, built on fasthttp40.3k starsMIT90 out of 100
3generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends22.5k starsApache-2.090 out of 100
#4serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml46.9k starscustom license89 out of 100
#5echoMinimalist Go web framework with a radix-tree router and middleware32.8k starsMIT88 out of 100