Logo van 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).

Uitgeverdayvsonlima
Repositorycatuaba
TaalGo
Forks
2
Sterren
19
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Catuaba biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    19 sterren en 2 forks in de gekoppelde 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.

Installatie

TypingMind
Vereisten:

Node.js 18+

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

Gebruik Catuaba MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Catuaba is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Catuaba toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Catuaba.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "dayvsonlima-catuaba": {
      "command": "npx",
      "args": [
        "-y",
        "catuaba"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Catuaba in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Catuaba in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Catuaba gebruiken om me hiermee te helpen?
Catuaba
Zeker. Ik heb het gelezen.
Dit vond ik met Catuaba.

Veelgestelde vragen

Waarvoor wordt de MCP-server Catuaba gebruikt?

Catuaba is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Catuaba MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Catuaba gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Catuaba MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Catuaba verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Catuaba MCP met TypingMind?

Catuaba werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Catuaba MCP in TypingMind?

Catuaba biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Catuaba MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Catuaba authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇