What is Fuego?
Fuego is a file-based routing framework for Go, inspired by Next.js App Router. Your file structure is your router - no manual route registration required.Quick Start
Get up and running in under 5 minutes
File-Based Routing
Learn how your files become routes
Middleware
Add cross-cutting concerns with ease
Context API
Complete API reference for handlers
Why Fuego?
Traditional Go routing requires manual registration:app/api/users/route.go→GET/POST /api/usersapp/api/users/[id]/route.go→GET/PUT/DELETE /api/users/:idapp/api/posts/route.go→GET/POST /api/posts
Features
File System Routing
File System Routing
Your directory structure defines your routes. Create a file, get a route.Maps to
/api/usersZero-Config Start
Zero-Config Start
A working API in 5 lines of code. Sensible defaults, full control when needed.
Type-Safe Templates
Type-Safe Templates
First-class templ support with compile-time HTML validation.
HTMX-Ready
HTMX-Ready
Build interactive UIs without client-side JavaScript frameworks.
Standalone Tailwind
Standalone Tailwind
Built-in Tailwind CSS v4 binary. No Node.js required.
Request Interception
Request Interception
Proxy layer for auth checks, rewrites, and early responses.
Hot Reload
Hot Reload
Sub-second rebuilds during development.
Production Ready
Production Ready
Single binary deployment, minimal dependencies.
Installation
Quick Example
Request Logging
Fuego includes a built-in request logger that captures ALL requests:The logger is enabled by default and shows color-coded HTTP methods, status codes, response times, and proxy actions.
Coming From Other Frameworks?
If you’ve used Next.js, Nuxt, SvelteKit, or similar frameworks, Fuego’s patterns will feel familiar:| Pattern | File | Route |
|---|---|---|
| Static | app/api/users/route.go | /api/users |
| Dynamic | app/api/users/[id]/route.go | /api/users/:id |
| Catch-all | app/docs/[...slug]/route.go | /docs/* |
| Middleware | app/api/middleware.go | Applies to /api/* |
| Pages | app/dashboard/page.templ | /dashboard |
| Layouts | app/layout.templ | Wraps child pages |
Familiar Patterns Guide
Learn how Fuego compares to frameworks you already know