Logo vun Catuaba

Catuaba

Communautéit
dayvsonlima

đŸ· Build full-stack Go web apps in minutes, not days. Rails-like CLI with Gin, GORM, Templ, HTMX, Tailwind CSS, and built-in AI integration (MCP).

Editeurdayvsonlima
Repositorycatuaba
SproochGo
Forks
2
StÀren
19
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Catuaba stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopĂ©ieren

    Benotzt d'Installatiounsbeispiller, fir dĂ«se Server an Ärem bevorzugte MCP-Client ze konfigurĂ©ieren.

  • Indicateure fir Open Source

    19 StÀren an 2 Forks aus dem verlinkte Repository.


Go is fast, simple, and deploys as a single binary. But starting a web project from scratch means wiring up routers, ORMs, templates, auth, CSRF, sessions, migrations, Docker... hours of boilerplate before you write your first feature.

Catuaba fixes that. One command gives you a production-ready app. Another gives you a full CRUD with views, API, and database — in seconds.

bash
catuaba new blog --db postgres --auth
cd blog
catuaba g scaffold Post title:string content:text published:boolean
make dev

That's it. You now have a running blog with:

  • Landing page styled with Tailwind CSS
  • Full CRUD for Posts — HTML views and JSON API
  • User registration and login with bcrypt + sessions
  • Database migrations, CSRF protection, flash messages
  • Hot-reload in development (Templ + Tailwind + wgo)
  • Docker-ready for production

Why Catuaba?

You wantCatuaba gives you
Start a project fastcatuaba new myapp — full app in 3 seconds
CRUD without boilerplatecatuaba g scaffold — model, views, API, routes, migration
Type-safe HTMLTempl — compiled templates, IDE autocomplete, no interface{}
Interactivity without JS frameworksHTMX + Alpine.js — 31kb total
Production CSSTailwind CSS — standalone binary, no Node.js
Auth that just works--auth — login, register, logout, sessions, bcrypt
AI-powered developmentBuilt-in MCP server — Claude/Cursor understand your project
Deploy anywhereSingle binary + Docker. That's Go.

The Stack

LayerTechnology
HTTPGin
ORMGORM — Postgres, MySQL, SQLite
ViewsTempl — type-safe, compiled HTML
InteractivityHTMX + Alpine.js
CSSTailwind CSS
SessionsSCS
MigrationsRaw SQL (up/down) via golang-migrate

Install

Binary (recommended)

macOS (Apple Silicon)

bash
curl -L https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-darwin-arm64.tar.gz | tar xz
sudo mv catuaba /usr/local/bin/

macOS (Intel)

bash
curl -L https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-darwin-amd64.tar.gz | tar xz
sudo mv catuaba /usr/local/bin/

Linux

bash
curl -L https://github.com/dayvsonlima/catuaba/releases/latest/download/catuaba-linux-amd64.tar.gz | tar xz
sudo mv catuaba /usr/local/bin/

Windows — download from releases, extract, add to PATH.

From source

bash
go install github.com/dayvsonlima/catuaba@latest

Prerequisites

  • Go 1.22+
  • Templ — go install github.com/a-h/templ/cmd/templ@latest
  • wgo (hot-reload) — go install github.com/bokwoon95/wgo@latest
  • A database: PostgreSQL, MySQL, or SQLite

Getting Started

1. Create your app

bash
catuaba new myapp --db postgres
cd myapp
go mod tidy

Flags:

  • --db postgres|mysql|sqlite (default: postgres)
  • --auth — adds login, register, logout

2. Generate a resource

bash
catuaba g scaffold Post title:string content:text published:boolean

This creates everything:

WhatWhere
Modelapp/models/post.go
Migrationdatabase/migrations/*_create_posts.{up,down}.sql
HTML handlersapp/controllers/posts/ (index, show, new, create, edit, update, delete)
Templ viewsapp/views/posts/ (index, show, form)
RoutesAuto-injected into config/routes.go

3. Start developing

bash
make dev

Open http://localhost:8080 — done.

Three watchers run in parallel:

  • Templ — recompiles .templ files on save
  • Tailwind — rebuilds CSS on save
  • wgo — rebuilds and restarts the Go server

Generators

All generators run inside your project directory with catuaba g <generator>.

Full-stack scaffold

bash
catuaba g scaffold Product name:string price:float description:text active:boolean

Creates model + migration + HTML handlers + Templ views + JSON API + routes. This is the fastest way to build features.

HTML routes:

MethodPathDescription
GET/productsList with pagination
GET/products/newNew form
POST/productsCreate
GET/products/:idDetail view
GET/products/:id/editEdit form
POST/products/:idUpdate
POST/products/:id/deleteDelete

JSON API routes:

MethodPath
GET/api/products
POST/api/products
GET/api/products/:id
PUT/PATCH/api/products/:id
DELETE/api/products/:id

API only

bash
catuaba g api Order total:float status:string

Same as scaffold but without HTML views — JSON API only.

Model

bash
catuaba g model Category name:string description:text

Creates model + SQL migration.

Other generators

bash
catuaba g controller Auth login logout           # Controller with methods
catuaba g middleware RateLimit                    # Middleware
catuaba g service EmailSender                    # Service layer
catuaba g seed Posts                             # Database seed
catuaba g migration add_category_id_to_posts     # Empty SQL migration
catuaba g view about                             # Templ page

Field types

TypeGoSQLHTML
stringstringVARCHAR(255)text input
textstringTEXTtextarea
integerintINTEGERnumber input
floatfloat64REALnumber input
booleanboolBOOLEANcheckbox
datetimetime.TimeTIMESTAMPdatetime-local

Commands

CommandDescription
catuaba new <name>Create application
catuaba g scaffold <name> [fields...]Full-stack CRUD
catuaba g api <name> [fields...]JSON API
catuaba g model <name> [fields...]Model + migration
catuaba g controller <name> [methods...]Controller
catuaba g middleware <name>Middleware
catuaba g service <name>Service
catuaba g seed <name>Database seed
catuaba g migration <name>SQL migration
catuaba g view <name>Templ view page
catuaba serverStart server
catuaba routesList all routes
catuaba db migrateRun pending migrations
catuaba db rollbackRollback last migration
catuaba db statusMigration status
catuaba install <plugin>Install plugin
catuaba mcpStart MCP server

Documentation

For detailed guides on each part of the framework:

  • Models — GORM models, field types, relationships, migrations, querying
  • Controllers — HTML handlers vs JSON API, form binding, route patterns
  • Views — Templ templates, layouts, components, HTMX, Alpine.js, Tailwind CSS
  • Middleware — Built-in stack, CSRF, sessions, flash messages, auth, custom middleware

External references:


Project Structure

myapp/
├── application.go              # Entrypoint: middleware stack, routes, graceful shutdown
├── Makefile                    # dev, build, test, docker
├── Dockerfile                  # Multi-stage production build
├── docker-compose.yml          # App + database
├── .env                        # Environment variables
├── config/
│   ├── config.go               # Env vars → AppConfig struct
│   └── routes.go               # Routes (auto-managed by generators)
├── database/
│   ├── connection.go           # GORM connection + migration runner
│   └── migrations/             # SQL files (up/down)
├── app/
│   ├── models/                 # GORM models
│   ├── controllers/
│   │   ├── home.go             # Home page
│   │   ├── {resource}/         # HTML handlers (scaffold)
│   │   └── api/{resource}/     # JSON handlers (api/scaffold)
│   └── views/
│       ├── layouts/base.templ  # HTML5 layout: head, nav, flash, footer
│       ├── components/         # Reusable: nav, flash, pagination, form fields
│       ├── pages/              # Static pages: home, 404
│       └── {resource}/         # CRUD views: index, show, form
├── middleware/                  # Full stack (see below)
└── static/css/                 # Tailwind source + compiled output

Middleware

Every app comes with a production-ready middleware stack — no configuration needed:

MiddlewareWhat it does
HealthGET /health returns 200
RequestIDX-Request-ID on every response
LoggerStructured JSON: method, path, status, latency
RecoveryCatches panics → 500
SecureHeadersHSTS, X-Frame-Options, CSP
CORSConfigurable via CORS_ALLOWED_ORIGIN
RateLimitToken bucket: 10 req/s, burst 40
SessionSCS cookie sessions
CSRFAuto token validation (skips /api/ routes)
FlashFlash messages: success, error, warning

Authentication

bash
catuaba new myapp --db postgres --auth

Generates a complete auth system:

  • GET /register — registration form
  • POST /register — create account
  • GET /login — login form
  • POST /login — authenticate
  • POST /logout — destroy session
  • RequireAuth() middleware — protects routes, redirects to /login

Passwords are hashed with bcrypt. Sessions use SCS (cookie-based, OWASP-compliant).


Database

Drivers

DriverFlagExample
PostgreSQL--db postgresDefault. Docker Compose included
MySQL--db mysqlDocker Compose included
SQLite--db sqliteZero config, file-based

Migrations

Raw SQL, versioned, up/down:

bash
# Auto-generated with models and scaffolds
database/migrations/20240101120000_create_posts.up.sql
database/migrations/20240101120000_create_posts.down.sql

# Manual migration
catuaba g migration add_slug_to_posts

# Run / rollback / check
catuaba db migrate
catuaba db rollback
catuaba db status

MCP Server (AI Integration)

Catuaba ships with a built-in MCP server. AI coding assistants (Claude Code, Cursor, Windsurf) can understand your project structure and generate code — without reading every file.

Setup

Every generated app includes a .mcp.json file — just open the project in Claude Code or Cursor and the MCP server is auto-discovered.

For manual setup, add to your .mcp.json or claude_desktop_config.json:

json
{
  "mcpServers": {
    "catuaba": {
      "command": "catuaba",
      "args": ["mcp"]
    }
  }
}

What the AI gets

Resources — your project as compact JSON:

ResourceReturns
catuaba://project/overviewModule, Go version, DB, port, plugins, directories
catuaba://project/modelsAll models with fields, types, tags
catuaba://project/routesAll routes: method, path, handler
catuaba://project/controllersAll controllers and functions
catuaba://project/middlewareAll middleware functions
catuaba://project/envEnv var names (no values)

Tools — generate code through the AI:

ToolWhat it does
generate_scaffoldFull CRUD: model + handlers + views + API + routes
generate_modelModel + SQL migration
get_modelInspect model details
get_routesList routes (filterable by prefix)
get_logsRecent app logs (filterable by level/path)
run_commandRun any catuaba generate subcommand
install_pluginInstall a plugin

Every generated app also includes a CLAUDE.md with framework conventions, so AI assistants follow the right patterns automatically.


Plugins

Extend Catuaba with plugins:

bash
catuaba install stripe-payments             # From registry
catuaba install https://github.com/user/my-plugin  # From git
catuaba install ./local-plugin              # From local path

catuaba plugin list                         # Browse registry
catuaba plugin info stripe-payments         # Details

Plugins are defined by a plugin.yaml manifest and can add files, inject routes, add imports, insert struct fields, and set environment variables.


Deploy

Docker (recommended)

bash
docker compose up -d --build

The generated Dockerfile is a multi-stage build:

  1. Installs Templ + builds templates
  2. Builds Tailwind CSS (minified)
  3. Compiles Go binary with -ldflags="-w -s"
  4. Runs on alpine:3.19 (~15MB image)

Manual

bash
make build
./bin/myapp

Development

Make targets

bash
make dev          # Hot-reload (templ + tailwind + wgo)
make build        # Production binary
make test         # go test ./...
make tidy         # go mod tidy
make docker-up    # Docker Compose up
make docker-down  # Docker Compose down

Contributing

Contributions are welcome!

bash
git clone https://github.com/dayvsonlima/catuaba.git
cd catuaba
go mod tidy
go test -v ./...
  1. Fork the repo
  2. Create your branch (git checkout -b feature/my-feature)
  3. Run tests (go test ./...)
  4. Submit a PR

License

MIT License — see LICENSE for details.

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "dayvsonlima-catuaba": {
      "command": "npx",
      "args": [
        "-y",
        "catuaba"
      ]
    }
  }
}

Catuaba MCP mat verschiddene KI-Modeller benotzen

TypingMind verbĂ«nnt MCP-Tools um Niveau vum AarbechtsberĂ€ich. Soubal Catuaba verbonnen ass, kĂ«nnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. DĂ«s MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dĂ«s Optioun, wann den MCP-Server ZougrĂ«ff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „DĂ«sen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „DĂ«sen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „DĂ«sen Apparat“, kopĂ©iert de Befeel aus TypingMind a fĂ©iert en am Terminal aus. Loosst de Prozess lafen, wĂ€rend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. BestÀtegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wÀrend Dir MCP-Tools benotzt.
3

Catuaba als Server derbÀisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren Ă€nneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren Ă€nneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Catuaba an.
  4. SpÀichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem KnĂ€ppchen „Serveren Ă€nneren“
{
  "mcpServers": {
    "dayvsonlima-catuaba": {
      "command": "npx",
      "args": [
        "-y",
        "catuaba"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

SpĂ€ichert d'ServerlĂ«scht, maacht „Plugins“ op an aktivĂ©iert d'MCP-Tools vu Catuaba. Wielt dann e belibegen Ă«nnerstĂ«tzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'SĂ€it „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Catuaba.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Catuaba?
Catuaba
Jo. Ech hunn et gelies.
Dat hunn ech mat Catuaba fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Catuaba benotzt?

Catuaba ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kĂ«nnt Dir dĂ«se MCP-Server eemol derbĂ€isetzen a seng Tools an Ärem KI-AarbechtsberĂ€ich zur VerfĂŒgung stellen.

Kann ech Catuaba MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum AarbechtsberÀich. Sou kënnt Dir Catuaba mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Catuaba MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte BenotzeruewerflĂ€che fir LLM-Chat, well et mĂ©i KI-Modeller, Prompts, Plugins, KI-Agenten, API-SchlĂ«sselen a MCP-Tools an engem AarbechtsberĂ€ich zesummebrĂ©ngt. Wann Catuaba verbonnen ass, kĂ«nnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a glĂ€ichzĂ€iteg Är Chataarbecht an TypingMind organisĂ©ieren.

Wéi verbannen ech Catuaba MCP mat TypingMind?

Catuaba leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server ZougrĂ«ff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

WĂ©i eng Tools stellt Catuaba MCP an TypingMind zur VerfĂŒgung?

Catuaba stellt MCP-Funktiounen zur VerfĂŒgung, dĂ©i Dir op der Plugins-SĂ€it vun TypingMind aktivĂ©iere kĂ«nnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Catuaba MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a lĂ©isst Iech d'Kontroll iwwer Är Modellubidder, API-SchlĂ«sselen, Prompts a MCP-Konfiguratioun. Wann Catuaba eng AuthentifizĂ©ierung verlaangt, setzt dĂ©i nĂ©ideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbĂ€i, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

AbonnĂ©iert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukĂŒnfteg GewĂ«nnspiller informĂ©iert ze ginn 👇