A Go backend you’d write yourself — scaffolded.
Gofasta is a CLI and library for Go backend services. It scaffolds a project in one command — standard Go, compile-time DI, every package swappable — with first-class tooling for AI coding agents.
go install github.com/gofastadev/cli/cmd/gofasta@latest$ gofasta new myapp🚀 Creating new gofasta project: myapp📁 Creating directory myapp/📦 Initializing Go module: myapp🏗 Creating project structure...📦 Installing gofasta library...🔌 Generating Wire DI code...🔧 Initializing git repository...✓ Project myapp created successfully!
$ cd myapp && gofasta devStarting gofasta development server...🗄 Running migrations...🚀 Starting air (hot reload)... REST API: http://localhost:8080 Who uses Gofasta
One toolkit, six kinds of teams. Gofasta generates standard Go so the code fits every workflow — solo founder to regulated enterprise.
What Gofasta is
Three design commitments shape every pkg/* package and every generated file. If any one of them doesn't fit your project, Gofasta probably isn't the right toolkit.
A Go toolkit built for humans and AI agents.
AI coding agents aren't afterthoughts — they're first-class users. Every surface of Gofasta is machine-readable so agents can scaffold, verify, inspect, and ship alongside you without losing context.
Universal --json flag
Every command emits structured output. Pipe it into jq, into an agent, into CI.
Stable error codes
ROUTES_DIR_MISSING, WIRE_MISSING_PROVIDER, GO_BUILD_FAILED — not opaque strings.
Scaffolded AGENTS.md
A ready-to-read briefing that teaches any AI coding agent how your project is laid out.
One-command agent setup
gofasta ai claude — or cursor, codex, aider, windsurf. Editor rules in seconds.
High-level commands
verify, status, inspect, do — multi-step workflows collapsed into a single call with structured output.
Debug visually, not through log greps.
`gofasta dev --dashboard` stands up a self-contained HTML debug panel on :9090 — live metrics, request log, SQL, trace waterfall. Zero runtime agent, zero cloud service.
Plus panic history, cache hit/miss, EXPLAIN plans, HAR export, and more. Read the debugging guide →
What's in Gofasta
A CLI that scaffolds your project, and a curated library of composable Go packages that handle the rest — every one of them independently swappable.
Four things Gofasta will never do to your code.
Every decision is one you can read, change, or remove. These four invariants hold across the CLI and the library — and they're the line in the sand between a toolkit and a framework.
Install and run
Three commands. No cloud service, no signup, no configuration wizard. The CLI does the rest.
Install the CLI
go install github.com/gofastadev/cli/cmd/gofasta@latestCreate a project
gofasta new myappStart developing
cd myapp && gofasta devTry Gofasta
Install with go install. Scaffold with gofasta new. Run with gofasta dev.
go install github.com/gofastadev/cli/cmd/gofasta@latest