Docs Why Wagoe Libraries Blog GitHub Get Started →

A Clojure framework for people
who'd rather build the product.

Auth, admin screens, background jobs, search and email are already there, and they all follow the same architecture. You start at the part that is actually your product.

$ curl -fsSL https://get.wagoe.org | bash
From nothing to running

A new project and a first module, in one take.

This is a real recording, unedited. A new project, one sentence that describes a module, the generated schema and tests, a migration, and the app running. Every line is what the CLI printed.

my-app — first run
$ wagoe new my-app
✓ Project created: my-app/

$ cd my-app
$ bb setup --database sqlite --ai-provider replicate
✓ Generated resources/conf/dev/config.edn
$ bb quickstart
[4/8] Scaffolding sample module
[8/8] Verifying project structure
━━━ Quickstart Complete ━━━━━━━━━━━━━━━

$ bb scaffold ai "product module with name, price, stock" --yes
✓ Successfully generated module: product
$ clojure -M:test --focus my-app.product.core.product-test
0 failures.
$ bb scaffold integrate product
$ bb migrate up

$ bb repl
user=> (go)

Recorded in one take against the released v1.3.0. CI walks the same path on every commit.

29
Libraries you don't have to write
FC/IS
One architecture your whole team follows
1.12
Runs on the Clojure you already use
deps.edn
Plain dependencies, and a documented way out
What's included

The parts every backend needs anyway.

Auth, roles, admin screens, jobs, search, email, file storage, audit logs. All built the same way. Take what you need now and add the rest later.


Admin UI

Define a schema and the admin screens are there.

These are screenshots of the current release, not mockups. I defined a user schema; the list, the form and the validation errors below came with it.

The generated admin interface listing eight users, with columns for email, name, role, active state and creation date, one user inactive, plus search, filters, a New User button and a sidebar with users, groups, roles, permissions, an access overview and the audit trail.
Auto-generated CRUD. Declare an entity; the list, search, filters, sorting and bulk actions come with it.
The generated Create New User form with fields for name, email, password, role and a welcome-email checkbox, and a panel listing the password requirements.
Forms from the same schema. Field types, the role options and the password rules are read from the definition, not written twice.
The same form after an invalid submission, showing Not in the expected format under the email field and At least 8 characters under the password field.
Validation that reaches the screen. The server re-renders the form with the failures against the fields that caused them.
The development dashboard showing 43 components, 223 routes, 8 modules and no recent errors, with a list of the running Integrant components and an environment panel.
A dashboard while you work. Components, routes, schemas, jobs, requests and errors, served on :9999 in development only.

Developer experience

Error messages that tell you what to do.

The same missing JWT secret, twice. Left: plain Clojure. Right: Wagoe's devtools, with your own code on top, the fix underneath, and (fix!) if you can't be bothered to type it.

Without Wagoe's devtools
Execution error (ExceptionInfo) at
  shop.checkout.core/issue-session-token (core.clj:6).
JWT_SECRET not configured

Full report at:
/var/folders/cw/hbtpm.../clojure-5181972888.edn
With Wagoe's devtools
━━━ WGE-103: Missing or Short JWT Secret ━━━━
JWT_SECRET is not set, or shorter than 32
characters, but the user module is active.

── Your code ────────────────────────────────
  shop.checkout.core/issue-session-token (core.clj:6)
  shop.main/sign-in (main.clj:8)
  shop.main/-main (main.clj:12)

── Framework (12 frames) ────────────────────
  (expand with (explain *e :verbose))

Fix: export JWT_SECRET="$(openssl rand -base64 32)"

Auto-fix: (fix!)  — Generate and set dev JWT_SECRET
          for current session
Dashboard: http://localhost:9999/dashboard/errors
Docs: bb guide error WGE-103
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

REPL

Ask the running system what's going on.

Start it with (go). After that, (status), (routes) and (modules) tell you what's running and what you can do next, without restarting or digging through the system map.

REPL
user=> (status)
┌─ Wagoe Dev ─────────────────────────────────────────┐
│ System:    running (43 components, 0 errors)        │
│ Web:       http://localhost:3000                    │
│ Admin:     http://localhost:3000/web/admin          │
│ nREPL:     port 7888                                │
│                                                     │
│ Modules:   admin, ai, invite, payment, search (+... │
│ Guidance:  full (set :guidance-level :minimal to... │
│                                                     │
│ Try: (status) | (routes) | (modules) | (commands)   │
└─────────────────────────────────────────────────────┘

Architecture

Business logic and I/O stay apart, and the build checks it.

Every team agrees where business logic goes and where I/O goes. Six months later someone is in a hurry. In Wagoe, code in core/ can't import I/O, and the build fails if it tries.

Imperative Shell
shell/
I/O · HTTP handlers · Persistence · Side effects
http.clj service.clj persistence.clj
▼
Ports — Protocol Definitions
ports.clj
Interfaces only · Injectable adapters · No implementation
defprotocol
▲
Functional Core
core/
Pure functions · Business logic · No I/O · No mocks needed
validation.clj domain.clj rules.clj

Enforced by directory layout + clj-kondo rules  ·  Every library follows the same structure


29 Libraries

Take the libraries you need
and leave the rest.

Every library is a normal deps.edn dependency. How much comes along depends on the library.

Audience, geo, observability, payments, reports and scaffolder only need wagoe-core (Clojure and Malli), and ai also needs wagoe-config. Cache, config, i18n and ui-style need nothing, and realtime only needs i18n. These drop into any project.

Jobs, search, events, storage, push and webhooks bring next.jdbc, HoneySQL, HikariCP and Migratus through wagoe-platform-sql, but no web server or router. Run clojure -Stree and you won't find Jetty, Reitit or Muuntaja.

User, tenant, admin, workflow and the rest run on wagoe-platform, which has its own Integrant, Reitit and next.jdbc wiring. If your app already has that wiring, adding wagoe-user means replacing yours.


Real code

What the code looks like.

Four things you do in almost every project, as they look in Wagoe: generating a module, modelling a state machine, going from dev to prod, and adding auth and audit to a route.

Terminal
# Natural language module generation
$ bb scaffold ai "order module with customer, total, status"

✓ Schema defined       schema.clj
✓ Validation rules     core/validation.clj
✓ Persistence layer    shell/persistence.clj
✓ HTTP routes          shell/routes.clj
✓ Service layer        shell/service.clj
✓ Tests generated      test/core_test.clj

Generated 6 files in libs/order/
All tests passing: 12/12
schema.clj
(ns wagoe.order.schema
  (:require [malli.core :as m]))

(def Order
  [:map
   [:id          :uuid]
   [:customer-id :uuid]
   [:total       [:and :decimal [:> 0]]]
   [:status      [:enum
                  :pending
                  :paid
                  :shipped
                  :delivered]]
   [:created-at  :instant]])
order/workflow.clj
(defworkflow order-workflow
  {:initial-state :pending
   :states        #{:pending :paid
                    :shipped :delivered
                    :cancelled}
   :transitions
   [{:from :pending
     :to   :paid
     :required-permissions [:finance]}
    {:from  :paid
     :to    :shipped
     :guard :payment-confirmed}
    {:from :shipped
     :to   :delivered}]})

; Pure core logic: no I/O, no mocks needed

Pure business logic

The whole state machine lives in core/, without I/O or side effects. You test every transition without a database or a mock.

Audit trail by default

Every state change is recorded with who, when, and the from and to state. You query it with plain SQL.

Guards and permissions

Role-based guards and your own guard functions. The workflow rejects an invalid transition at the transition layer.

config.edn
;;; Development: nothing to set up
{:wagoe/db-context
 {:adapter   :sqlite
  :db        "dev.db"}

 :wagoe/cache
 {:adapter   :in-memory}

 :wagoe/observability
 {:log-adapter  :stdout
  :err-adapter  :no-op}}

;;; Production: one key per adapter, no code changes
{:wagoe/db-context
 {:adapter   :postgresql
  :host      #env DB_HOST
  :pool-size 10}

 :wagoe/cache
 {:adapter   :redis
  :uri       #env REDIS_URL}

 :wagoe/observability
 {:log-adapter  :datadog
  :err-adapter  :sentry
  :dsn          #env SENTRY_DSN}}
routes.clj
;;; Cross-cutting concerns declared alongside the route.

{:path    "/api/admin/orders"
 :methods
 {:post
  {:handler      'handlers/create-order
   :interceptors ['auth/require-admin
                  'audit/log-action
                  'rate-limit/admin
                  'metrics/record-latency]}}}

;;; Service layer: one macro call, telemetry included
(defn create-order [this order-data]
  (service/execute
    :create-order {:order order-data}
    (fn [{:keys [params]}]
      (order-core/prepare
        (:order params)))))

; Automatically instruments: structured logs, metrics,
; Sentry breadcrumbs, PII redaction. No telemetry code needed.

Alternatives

Want to choose every piece yourself? Then start with Kit.

Kit and Biff are small toolkits, and you wire things up yourself. Wagoe makes those choices for you and asks you to stick to its conventions. It has been 1.0 since October 2026; Django and Rails have twenty years on it.


What it does for you depends on your role.

The same libraries and patterns for every team size. What they solve for you depends on where you sit.


Up in minutes

From install to your own app.

01
Install the CLI
curl -fsSL https://get.wagoe.org | bash
You need curl, git and Babashka (bb). This installs the wagoe command.
02
Create a project
wagoe new my-app && cd my-app clojure -M:migrate up
The project comes with CLAUDE.md, AGENTS.md, a Claude Code skill and an MCP server, so the agent knows the conventions from the first prompt.
03
Start Claude and ask for the app you want
claude > Build a webshop with products, customers and orders.
If all goes well, you'll have a working webshop in no time. Rather drive it yourself? Run source .env && clojure -M:repl and eval (go).

A colleague built a chat app that worked over the network in ten minutes. I rebuilt Werkbezoeken, a Django app, in Wagoe in two days, mostly to find out how grown-up Wagoe had become.

Why it exists

I build Wagoe because I use it.

Wagoe grew up next to ZZPGuard and Wagoe License. While building them I saw that licences, payments and the like were needed in more than one app. So Wagoe License now handles payments, customers, licences and integrations for my SaaS products, built from Wagoe's modules. I use Wagoe for every project I start, I like working with it, and I'll be at it for a long time.

Which also means your bugs are probably my bugs.

Thijs Creemers

Try it on a real project.

Star it, read the code, or say hi on Clojurians Slack. Wagoe is young, so you'll run into things I haven't. Tell me.

GitHub Clojurians Slack Start Building