Skip to content

Feat: Add huma framework - #441

Open
erinoggz wants to merge 5 commits into
Melkeydev:mainfrom
erinoggz:feat/huma-framework
Open

Feat: Add huma framework#441
erinoggz wants to merge 5 commits into
Melkeydev:mainfrom
erinoggz:feat/huma-framework

Conversation

@erinoggz

Copy link
Copy Markdown

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

Problem/Feature

go-blueprint currently supports Chi, Gin, Fiber, Gorilla/Mux, HttpRouter, Echo, and the standard library, but has no option for Huma, a REST API framework that adds typed request/response handling, built-in validation, and auto-generated OpenAPI 3.1 documentation on top of an existing router. This PR adds Huma as a new framework huma option, built on Chi via Huma's official humachi adapter.

Description of Changes:

  • Added Huma as a new flags.Framework value and registered it in AllowedProjectTypes
  • Added "Huma" to the interactive framework selection step
  • Added HumaTemplates, wired into the project's FrameworkMap with its Go module dependencies (huma/v2, huma/v2/adapters/humachi, go-chi/chi/v5)
  • Added a routes.go template that stands up a Chi router wrapped by humachi, registering / (Hello World) and /health (when a DB driver is selected) via huma.Register, and reuses Chi's existing htmx/websocket route wiring
  • Added a dedicated test template that exercises RegisterRoutes() over real HTTP and checks the JSON response
  • Updated the README's "Frameworks Supported" list

Checklist

@erinoggz erinoggz changed the title Feat/huma framework feat: Add huma framework Jul 17, 2026
@erinoggz erinoggz changed the title feat: Add huma framework Feat: Add huma framework Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant