Wagoe Framework

Wagoe is a batteries-included Clojure web framework that enforces the Functional Core / Imperative Shell (FC/IS) pattern: pure business logic in core/, side effects in shell/, and clean interfaces through ports.clj protocols.
Status: stable since 1.0. The public surface follows Semantic Versioning: a breaking change needs a major version, after a deprecation of at least one minor release and 90 days. A few libraries are incubating — usable, outside that guarantee, and marked as such in wagoe list modules. See Stability.
Questions go to GitHub Discussions; bugs and feature requests to Issues.
Install
Install the Wagoe CLI — it handles all prerequisites (JVM, Clojure CLI, Babashka, bbin) automatically:
curl -fsSL https://get.wagoe.org | bash
Fallback if get.wagoe.org is unavailable:
curl -fsSL https://github.com/wagoebv/wagoe/releases/latest/download/install.sh | bash
Supports macOS, Debian/Ubuntu, Fedora/RHEL, Arch Linux, and WSL2.
Quick Start
# 1. Create a new project
wagoe new my-app
cd my-app
# 2. Add optional modules (e.g. cache, jobs, search)
wagoe add cache
wagoe list modules # see all optional modules
# 3. Run database migrations
bb migrate up
# 4. Start the REPL (prompt + nREPL server on port 7888)
source .env # wagoe new wrote it, with a generated JWT_SECRET
bb repl
At the prompt — or from your editor (or the Wagoe MCP server) connected to port 7888 — eval:
(go) ; start the system — http://localhost:3000
(reset) ; reload changed namespaces and restart
(halt) ; stop the system
You get: SQLite database (zero-config, and your data survives a restart), HTTP server on port 3000, a complete Integrant system, and REPL-driven development.
When something is wrong
wagoe doctor # checks the project and prints the one thing to fix
bb guide # topic guides: scaffold, testing, database, fcis, config, seed
bb guide error WGE-201 # what an error code means and how to fix it
wagoe doctor runs the environment, config, command and project-setup checks in
one pass and ends with a single next action. The bb tasks behind it still
exist and CI calls them directly; you do not need to know which is which.
Why Wagoe?
For developers: 34 independently-publishable libraries on Clojars — use just wagoe-core for validation utilities, or go full-stack with JWT + MFA auth, auto-generated CRUD UIs, background jobs, multi-tenancy, real-time WebSockets, and more. Every library follows the same FC/IS structure, making any Wagoe codebase instantly familiar.
Ship faster: The scaffolder generates fully structured modules (entity + routes + tests) in seconds. The admin UI auto-generates CRUD interfaces from your schema — no manual forms. Built-in observability, RFC 5988 pagination, and declarative interceptors mean you write business logic, not plumbing. AI tooling (bb scaffold ai, and the experimental bb ai gen-tests and bb ai sql) handles the repetitive parts.
Ship with confidence: Reference deployment configs (systemd, nginx, Fly.io, Render), an OWASP-aligned security checklist, scaling guides, health check endpoints, and zero-downtime migration patterns.
Zero lock-in: Each library is a standard deps.edn dependency. Swap what doesn't fit.
AI-Native Development (Claude Code & Agentic CLIs)
Projects created with wagoe new are agent-ready out of the box: they
include a CLAUDE.md, an AGENTS.md, and a Claude Code skill at
.claude/skills/wagoe/SKILL.md that teaches the agent to use Wagoe's
scaffolder and AI tooling instead of hand-writing boilerplate. Open Claude
Code in a fresh project and ask:
add a product module with name, price, and stock
The agent will reach for bb scaffold and generate a complete FC/IS module
with tests and migrations.
For existing projects (or to get updates without regenerating), install
the plugin from this repo's marketplace:
/plugin marketplace add wagoebv/wagoe
/plugin install wagoe@wagoe
See claude-plugin/README.md for details.
Documentation