The open-source SQL Control Plane for modern infrastructure.
Mesa is a web-based database management tool built for developers and SREs. It goes beyond simple queries — offering a full suite for exploring databases, inspecting tables, managing users, and monitoring active sessions, all from a clean cloud-like UI.
- Connection Management — Add and switch between multiple PostgreSQL instances.
- Database & Table Explorer — Browse databases, tables, columns, indexes, and sample data.
- Session Monitor — View and kill active database sessions.
- User Management — Create and manage DB users without memorizing SQL syntax.
- Credential Encryption — All connection credentials are encrypted at rest (AES-256-GCM).
- OpenAPI-first — Typed Go server and auto-generated TypeScript client from a single
openapi.yaml.
- Backend: Go, chi, oapi-codegen, sqlc, pgx
- Frontend: React (Vite), TanStack Router, Shadcn/UI, Tailwind CSS, orval
- Metadata DB: PostgreSQL
- Deployment: Docker-native, optimized for Kubernetes & ArgoCD
- Docker and Docker Compose
- Go (for local development)
- Node.js & pnpm (for local frontend development)
git clone https://github.com/felipemalacarne/mesa.git
cd mesa
docker-compose up -d --build- Frontend: http://localhost:3000
- API: http://localhost:8080
make migrate-up
go run cmd/server/main.gocd web
pnpm install
pnpm dev| Command | Description |
|---|---|
make migrate-up |
Run database migrations |
make migrate-down |
Revert database migrations |
make migration name=<name> |
Create a new migration file |
make sqlc-generate |
Generate Go code from SQL queries |
make codegen |
Generate Go server + TypeScript client from openapi.yaml |
make generate-app-key |
Generate a random 32-byte encryption key |
make seed |
Seed the database with initial data |
- All database credentials are encrypted at rest using AES-256-GCM.
- Integrates with Kubernetes Secrets and external KMS providers.
- Every SQL execution is logged for audit purposes.
- Fully auditable source code under AGPL-3.0.
Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
For commercial licensing without AGPL restrictions, contact felipemalacarne012@gmail.com.