Andurel
Rails-inspired full-stack Go web framework with scaffolding, database tooling, and server-rendered or Inertia frontends
About Andurel
Andurel, Space-grade Go framework, built agent-first
Everything you and your agent(s) need to build robust and performant applications that will scale to the far-side of the moon.
Andurel is the fullstack framework built agent-first: one-time scaffolding that writes Go you own, explicit wiring, and a CLI designed for machine discovery. It is Go-native — net/http, no HTTP framework dialect, no dependency-injection container.
Docs: andurel.com · Release candidate: v2.0.0-rc.1 · Agent-first: how it works · Discord: join here
This README tracks
master(head / nightly) and currently documents thev2.0.0-rc.1line. Stable 2.0 has not shipped. Install the pinned release candidate below;@lateston either the v1 or/v2module path is not a stable 2.0 install.
Platform Support
Andurel supports Linux and macOS on amd64 and arm64. Official releases contain and smoke-test all four combinations.
See release verification for archive installation, checksums, SBOMs, keyless signatures, and provenance.
Why Andurel?
Andurel is optimized for agents, without making the code opaque to people:
- Airframe:
domains/(business logic + persistence),services/(application logic),handlers/(HTTP),routes/, andmiddleware/— all ordinary Go you own - GNC: Explicit constructor injection in
app/. The dependency graph is readable top-to-bottom; there is no container and no reflection - Propellant: PostgreSQL with narsilc-generated queries from SQL colocated with the domain that owns it
- Payload: Inertia v3 with React, Vue, or Svelte. One Go backend, official Inertia adapters, optional SSR. The Inertia root document is standard-library html/template; email is React Email
- Range ops: River jobs, email, and queues on the same stack that serves the request path
- Agent-first: Read-only patterns, JSON discovery, scoped inspection, sync, verify, and installed skills so an agent can operate the project without a second stack
- Live reload:
andurel runuses an in-process runner to rebuild Go, reload the embedded root document and export React Email, and run Vite (--tools mailpitfor sidecars) - Production build:
andurel buildcompiles Go, exports React Email, builds Vite assets, and compiles everycmd/*process (app,queue,migrate,ssr) intodist/
Agents. andurel patterns show <kind> publishes reference code and a definition-of-done checklist for every layer. andurel inspect reads project shape, andurel sync refreshes derived files, and andurel verify checks the result. The full workflow is in docs/agent-first.md.
Humans. One-time scaffolding. The scaffold writes Go and Inertia pages you can read, edit, and ship. After that, the code is yours, laid out in a shape you can navigate, and every command works by hand.
Core Technologies
- net/http +
pkg/anduin: The single HTTP package — routing,func(ctx) errorhandlers, middleware, request/response helpers, and the server lifecycle overhttp.ServeMux - PostgreSQL + pgx: Database
- narsilc: Typed SQL with caller-owned result structs
- Inertia v3: React / Vue / Svelte + Vite
- React Email: Email components in TSX, exported to committed Go templates
- html/template: The Inertia root document
- River: Background jobs
- OpenTelemetry: Observability
- Tailwind CSS: CSS
Install
Match the install channel to the docs you follow.
Latest v2 release candidate
V2 has not shipped a stable tag yet. Install the v2.0.0-rc.2 candidate once published:
go install github.com/mbvlabs/andurel/[email protected]
andurel --version
Read the v2.0.0-rc.2 release notes before using it. To pin another published v2 tag, replace the version suffix in the same command.
v1
V1 releases stay on the unversioned module path:
go install github.com/mbvlabs/[email protected]
andurel --version
That path's @latest never jumps to v2. V1 projects stay on v1; v2 has no
supported automated v1 upgrade.
Nightly (matches master / this README)
Nightly ships as prebuilt binaries on the nightly GitHub release. Do not use go install for nightly; it builds from source without the embedded nightly version metadata.
# Linux amd64 (also available: andurel-darwin-arm64, andurel-darwin-amd64)
curl -L https://github.com/mbvlabs/andurel/releases/download/nightly/andurel-linux-amd64 -o andurel
chmod +x andurel
mv andurel "$(go env GOBIN)/"
andurel --version
Verified release archives (checksums, attestations) are documented in release verification.
Full install guide: andurel.com/docs.
Quick Start
# Default: PostgreSQL + Inertia React + pnpm
andurel new myapp
# Other UI combinations (Inertia adapter + JS package manager)
andurel new myapp --ui vue/bun
andurel new myapp --ui svelte/npm
cd myapp
andurel tool sync
andurel skill install
cp .env.example .env
# Edit .env with your database credentials
andurel db create # optional: if the local database does not exist yet
andurel db migrate up
andurel run
App: http://localhost:8080
Build a first resource. The generator creates migrations; the agent writes the code from the patterns:
andurel generate migration create_products_table
# Edit the SQL in migrations/, then apply it:
andurel db migrate up
# Read the pattern for each layer, then write the code yourself:
andurel patterns show domain
andurel patterns show handler
andurel patterns show route
andurel sync queries
andurel verify
Explore what the CLI knows:
andurel patterns list
andurel patterns --help
andurel db --help
Project Layout & Options
A new app is ordinary Go you own. Top-level shape:
| Path | Role |
|---|---|
cmd/app, cmd/queue | Process entry: load env, signal context, single app.New / app.NewQueue (the App owns its Server) |
cmd/migrate | One-shot process: apply pending SQL via storage.RunMigrations |
cmd/seeds | One-shot process: run named seed sets |
app/ | Composition root: explicit constructors, HTTP server + queue lifecycle |
payloads/ | Inertia page props and request bodies emitted to resources/js/types/payloads.ts |
| top-level packages | Other app support code and adapters, named for their job (for example clients/, payment/) |
config/ | App, DB, auth, email, telemetry config |
domains/ | Business logic + persistence in one flat package; SQL colocated as domains/<entity>.sql |
domains/internal/queries/ | narsilc output; imported only by domains/** |
services/ | Application logic / cross-domain orchestration |
handlers/ | HTTP handlers (func(ctx context.Context) error); one flat package |
routes/ | Route data: names, paths, URL builders |
middleware/ | App HTTP middleware (auth, authorization); the cookie jar is built in app/ |
resources/root.html | Inertia root document rendered with html/template |
resources/js/ | Inertia pages, layouts, components, and generated TS helpers |
emails/ | Go email structs (ToHTML/ToText), committed text/template bodies, and React Email TSX components exported by andurel sync emails |
queue/ | River jobs and workers |
migrations/ | SQL migrations |
seeds/ | Seed data |
css/ / assets/ | Tailwind source and compiled/static assets |
Default: Inertia React + pnpm (--ui react/pnpm).
--ui react/pnpm|vue/bun|svelte/npm: Same Go backend; choose the Inertia adapter and JavaScript package manager. Inertia is the only UI; there are no server-rendered template pages and no Datastar pages. JSON endpoints are ordinary routes that return anduin.JSON; there is no separate API mode.
Details: directory structure · frontend options.
Core Commands
| Command | Purpose |
|---|---|
andurel new (n) | Scaffold a project |
andurel patterns | Read-only reference patterns for every layer (patterns list, patterns show <kind> --json) |
andurel verify | Setup, formatting, go fix, go vet, typed layer rules, frontend, content, and generated-code drift; --with-tests also runs tests. Rules: andurel verify --help or the rule table |
andurel generate migration | Create a migration file (code-writing generators are gone) |
andurel sync | Refresh derived files (queries, routes, payloads, emails) |
andurel email render | Render every email to HTML, text, and a gallery without sending (--watch keeps it live) |
andurel db | Database lifecycle: create, drop, nuke, rebuild, migrate, seed, console |
andurel console (c) | Open an interactive database console |
andurel run (r) | Dev server with live reload |
andurel build | Production build (React Email export, Vite, all cmd/* processes in dist/) |
andurel tool sync | Download pinned project binaries |
andurel upgrade | Bring an app forward to a newer Andurel |
andurel doctor | Project diagnostics |
andurel skill | Show / install the embedded agent skill |
andurel inspect | Read-only project shape (handlers, domains, routes, …) |
andurel commands | Structured command discovery |
For CI, andurel verify --require-test-execution runs tests and fails if a
test-bearing package reports no test events. It allows deliberate test skips
and cached results; skips are reported as partial execution. Use the unscoped
command for the full expected suite.
Use andurel <command> --help for flags. Full CLI reference: andurel.com/docs/latest/cli.
Host fallback policies are checked when the app starts, not by a static verify rule. Use andurel verify --with-tests to run the app startup tests that catch a host with routes but no fallback policy.
Agents
Andurel is optimized for agent operation, and every command remains usable by a person. Prefer discovery over scraping this README:
andurel patterns show domain --json
andurel verify
andurel inspect handlers --json
andurel inspect domains --json
andurel inspect routes --json
andurel commands --json
andurel skill install --harness claude
andurel skill show layer-placement
andurel patterns never writes files. It prints reference code, the placement
rules, and a definition-of-done checklist the agent self-verifies against. Many
commands support --dry-run and --json. Full workflow:
docs/agent-first.md.
Contributing
- Fork and branch
- Make changes
- Run
just check-fmt,just check-fix, andjust vet(orgofmt/go fix/go vetwithGOWORK=off) - Open a pull request
just recipes and CI set GOWORK=off so the CLI resolves pkg/* from go.mod, matching go install. The workspace file is for local ad-hoc work only.
git clone https://github.com/mbvlabs/andurel
cd andurel
GOWORK=off go mod download
just vet
License
MIT. See LICENSE.
Sites built with Andurel
- DeployCrate: Remote boxes for your agents and teams
- MBV Blog: Personal blog
- Master Golang: Course platform
- Palantir: Open sourced analytics platform (WIP)
Built something cool? Let me know or open a PR.
Author
Created by Morten Vistisen
Frequently Asked Questions
What is Andurel?
Andurel is a Web Frameworks library for the Go programming language. Rails-inspired full-stack Go web framework with scaffolding, database tooling, and server-rendered or Inertia frontends
How do I install Andurel?
Install Andurel with the Go module system using `go get mbvlabs/andurel`. Check the repository for the current installation instructions.
What category does Andurel belong to?
Andurel is listed under Web Frameworks, specifically Web Frameworks.