huma

Community

Build robust Go REST APIs with OpenAPI.

Authordanielmichaels
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Huma provides a cohesive framework to design, implement, and document Go REST APIs by aligning route registration, input validation, error handling (RFC 9457), middleware, security schemes, and OpenAPI generation. It reduces boilerplate and enforces consistent API patterns across services.

Core Features & Use Cases

  • OpenAPI generation from Go code: Generates stable API schemas directly from handlers and operation definitions.
  • Consistent request handling: Enforces a uniform handler signature, structured inputs, and built-in validation tags for request data.
  • Security and middleware support: Integrates per-operation security schemes and reusable middleware for authorization, logging, and resilience.
  • Streaming and SSE support: Supports streaming responses and Server-Sent Events with a clear contract.
  • Testing and tooling: Includes utilities like humatest for end-to-end testing and RFC-compliant error handling.

Quick Start

Create a new Go REST API project using Huma and annotate routes to generate OpenAPI docs.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: huma
Download link: https://github.com/danielmichaels/cskills/archive/main.zip#huma

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.