Skip to content

GoForgeProduction-Ready Go Framework

Go 1.25+ modular DI, hardened HTTP + gRPC servers, Huma OpenAPI docs, multi-driver DB & seeders, generic event bus, interactive TUI, and built-in AI Agent skills.

GoForge Logo

Features at a Glance ​

CapabilityHighlightsDeep Dive
Architecture & DIPure-Go core/di (Module, Bind[I], AutoCollect[I], CollectModels, Lifecycle), errgroup multi-server runnerFeatures · DI
HTTP & OpenAPIGin + 6-layer middleware, /health & /ready probes, TrustedProxies, TLS 1.2+, Huma v2 OpenAPI 3.1HTTP Server
Security & AuthConstant-time X-App-Key, APP_DEBUG docs gate, strict CORS, bounded LimiterStore, RequestID, Limen sessionsSecurity · Tutorial
gRPC & ClientsUnary + Stream interceptors, GRPC_TLS_ENABLED, grpc_health_v1, reflection, HttpClient & GrpcClientgRPC · Clients
Database & SeedersSQLite / Postgres / MySQL / SQL Server, safe DSNs, pooling, Atlas / GORM / SQLC, transactional SeedersDatabase
Events, Errors & ValidationGeneric EventBus, canonical AppError (400–503), dedicated validator/v10 (validate: tags & custom rules)Events · Errors
Console & TUIZerolog prettyWriter, Gin route redirect, Bubble Tea split-panel TUI dashboard (--no-tui for CI/Docker)Logging & TUI
AI Agent & SkillsAGENT.md, 4 .agent/rules/, 6 .agent/commands/, 10 .agent/skills/ with 12 automation scriptsAI Agent Workspace

Quick Start in 30 Seconds ​

bash
goforge new myapp github.com/acme/myapp
cd myapp && cp .env.example .env && goforge gen:key
goforge migrate && goforge db:seed && goforge app serve

Released under the Apache-2.0 License.