Kora — Config-Driven Application Engine
Define your application — data model, permissions, workflows — in YAML. Kora gives you a database, REST API, React admin UI, and background jobs. No code generation.
Prerequisites
You need three things installed before running Kora:
| Tool |
Why |
Version |
| Go |
Backend server + ORM |
1.25+ |
| Bun |
Frontend build (React SPA) |
1.x |
| Docker |
MySQL database |
24+ |
Install on Linux
# Go
wget -q https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.25.0.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
# Bun
curl -fsSL https://bun.sh/install | bash
# Docker
sudo apt install docker.io docker-compose-v2 # Debian/Ubuntu
sudo systemctl start docker
Install on macOS
# Go
brew install go
# Bun
brew install oven-sh/bun/bun
# Docker
brew install --cask docker
# Start Docker Desktop from Applications
Install on Windows
Verify everything is installed:
go version # go version go1.25.0 linux/amd64
bun --version # 1.x.x
docker ps # (should show no errors)
Quick Start
# 1. Clone
git clone https://github.com/yourorg/kora.git && cd kora
# 2. Set MySQL root password (first time only)
echo 'MYSQL_ROOT_PASSWORD=kora123' > .env
# 3. Start MySQL
docker compose up -d mysql
# 4. Build, setup, and serve (one command)
make dev DB_PASS=kora123 ADMIN_PASS=kora123
Or step by step:
docker compose up -d mysql # Start MySQL
make build # Build UI + Go binary
make setup DB_PASS=kora123 ADMIN_PASS=kora123 # Setup airtime site
make serve # Start server on :8000
If you already have MySQL running
Skip Docker. Just pass your credentials:
make dev DB_USER=root DB_PASS=yourpassword
Open http://localhost:8000/workspace — login with admin@airtime.local / kora123.
All Make Commands
make dev MySQL + build + setup + serve (one command)
make build Build UI (bun) + Go binary
make serve Build + start server on :8000
make restart Kill old server + rebuild all + start fresh
make setup Setup a site from config YAML files
make test Run Go tests (go test ./...)
make lint Run linters (Go + TypeScript)
make fmt Format code (go fmt + prettier)
make release Tag, changelog, push release (TAG=v0.2.0)
make clean Remove build artifacts
make help Show all commands with descriptions
Override Variables
make dev SITE=fieldwork.local CONFIG=config/fieldwork/ # Different site
make dev DB_USER=root DB_PASS=secret # MySQL credentials
make dev ADMIN_EMAIL=admin@test.com ADMIN_PASS=pass123 # Admin account
make build PORT=9000 # Custom port (serve target)
Features
- AI Chat Assistant — floating chat widget on every page. Create, find, and update records via natural language. Supports OpenAI, DeepSeek, and Anthropic. Multi-turn tool execution with finish_reason loop, stall detection, and context compaction.
- AI Doctype Generator — describe a form in plain English ("an Invoice with line items, customer link, computed totals, tax") — the AI generates the YAML, validates it, and saves it as Draft. A human reviews and activates.
- YAML Strict Validation — unknown keys rejected at parse time with line numbers and "did you mean?" suggestions
- Visual Constraints Editor — add min/max, regex, one_of, and other constraints via the form builder
- Auto-Indenting YAML Editor — Tab/Enter/Shift+Tab with context-aware indentation
- Session Cache — 30-second TTL in-memory cache reduces database load on every request
- Config Import Safety — transactional imports with field-level merge (no more DELETE+re-INSERT)
- Site Isolation —
kora_site cookie validated against Host header, unknown hosts get 403
Multi-Site
http://localhost:8000/s/airtime/workspace → Airtime app
http://localhost:8000/s/fieldwork/workspace → Fieldwork app
http://localhost:8000/console/login → System console
No DNS or /etc/hosts needed. Path-based routing just works. For production, add real domains — Host-based routing takes over automatically.
Administrator Panel
After login, the sidebar has an Administrator section for managing the data model entirely from the browser — no YAML files or CLI needed:
- DocTypes — Visual form builder with live YAML preview, collapsible field editors, Draft → Activate workflow
- Permissions — Role × DocType access matrix with inline editing
- Workflows — State machine editor (states, transitions, notifications) for submittable doctypes
- Versions — Config version history with diff view, rollback, and Draft activation
All pages are mobile-responsive — tables become stacked card layouts on small screens.
Documentation
| Document |
What it covers |
| SETUP.md |
Prerequisites, quick start, multi-site setup, config management, production deployment, troubleshooting |
| ARCHITECTURE.md |
System design, request flow, middleware, multi-tenancy, expression engine, schema migration, computed fields |
| CONFIG.md |
DocType/field reference, constraints, workflows, permissions, link fields, computed expressions, back-references |
| API.md |
REST API reference, auth, CRUD, workflow actions, system endpoints, error formats |
| DECISIONS.md |
Architecture Decision Records — why React SPA, config-driven computed fields, path-based multi-site, Gin NoRoute, site-aware auth |
| NETWORKING.md |
TLS, autocert, HTTP→HTTPS, rate limiting, security headers, CORS |
Project Structure
kora/
├── cli/ # Cobra CLI: serve, setup, migrate, config, mcp, secret
├── api/ # REST handlers, CRUD, system endpoints, AI Chat
├── auth/ # Session auth, CSRF, SystemGuard, SiteGuard
├── net/ # SiteRouter, TLS, security headers, rate limiting
├── doctype/ # DocType, Field, Registry, permissions, workflow, expressions
├── orm/ # Generic CRUD on map[string]any documents
├── schema/ # INFORMATION_SCHEMA diff → DDL migration
├── configstore/ # Config persistence (_kora_* tables)
├── workspace/ # React SPA serving (go:embed)
├── console/ # System admin console (server-rendered)
├── scheduler/ # Cron-style background jobs
├── site/ # Site config loading, DB connection
├── email/ # Email sending (mock for dev)
├── secret/ # Encrypted API key storage (AWS-256-GCM)
├── mcp/ # Model Context Protocol server for Claude Desktop
├── config/ # Sample app YAML configs (airtime, fieldwork)
├── ui/ # React 19 SPA (Vite + TanStack + shadcn/ui) + AI Chat Widget
├── docs/ # Documentation
└── sites/ # Per-site config and files
Tech Stack
| Layer |
Technology |
| Language |
Go 1.25 |
| HTTP |
Gin, net/http |
| Database |
MySQL 8.0 |
| AI / LLM |
OpenAI, DeepSeek V4, Anthropic Claude (multi-provider, OpenAI-compatible API) |
| Tool Protocol |
MCP (Model Context Protocol) for Claude Desktop integration |
| Expressions |
expr-lang/expr |
| CLI |
Cobra |
| TLS |
autocert (Let's Encrypt) |
| Frontend |
React 19, TanStack Router/Query/Table/Form, shadcn/ui, Tailwind CSS v4 |
| State |
Zustand, TanStack Query |
| Validation |
Zod |
| Delivery |
Single binary — everything via go:embed |