Logo von Catuaba

Catuaba

Community
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).

Herausgeberdayvsonlima
Repositorycatuaba
SpracheGo
Forks
2
Sterne
19
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Catuaba stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    19 Sterne und 2 Forks im verlinkten 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.

Installation

TypingMind
Voraussetzungen:

Node.js 18+

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

Catuaba MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Catuaba verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Catuaba als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Catuaba ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "dayvsonlima-catuaba": {
      "command": "npx",
      "args": [
        "-y",
        "catuaba"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Catuaba. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Catuaba.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Catuaba bei dieser Aufgabe helfen?
Catuaba
Gerne. Ich habe es gelesen.
Das habe ich mit Catuaba gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Catuaba verwendet?

Catuaba ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Catuaba MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Catuaba mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Catuaba MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Catuaba verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Catuaba MCP mit TypingMind?

Catuaba wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Catuaba MCP in TypingMind bereit?

Catuaba stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Catuaba MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Catuaba eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇