LmCast :: Stay tuned in

Rust off Rails: The opinionated web stack for the AI era

Recorded: Oct. 21, 2026, 5:07 p.m.

Original Summarized

Rust off Rails: the opinionated web stack for the AI era

Skip to content

Rust off Rails

Get started
Guide
FAQ
Philosophy
Docs
Tour
Field tests
How it was built

Get started

A web framework that ships zero lines of code
The opinionated web stack for the AI era.
Rust off Rails is a set of Markdown files that tell coding agents how to build a full-stack Rust web app: one blessed stack, one layout, one way to do each thing. The convention lives in the prose. The agent writes the code.

curl -fsSL https://rustoffrails.org/install.sh | sh
or in Claude Code: /plugin marketplace add rust-off-rails/rustoffrails
Read before you pipe: the install script · INSTALL.md

Play3:06

Railboard: a live Kanban built by AI in 7 prompts 3:06 · Watch on YouTube

Get started
Read the philosophy →

0 lines of framework code
60 Markdown files
2 databases, same code

~/code/bookshelf, claude
Replay

An illustrated agent session: the /offrails:new command, the interview, the plan, the generated files and the tests passing on SQLite and Postgres.

> /offrails:new bookshelf: people track and review books, with an API for a mobile app later
● Reading AGENTS.md → interview · doctrine · structure · stack · workflow
? Accounts? a) magic link (Recommended) b) email + password c) invite-only d) none
› a
? Who owns data? a) each user (Recommended) b) teams c) shared
› you decide
? Frontend? a) htmx (Recommended) b) inertia c) spa d) api
› b
? UI library? a) React (Recommended) b) Svelte
› b
? API for other programs? a) none b) REST + OpenAPI c) GraphQL d) both
› b
◆ Plan: inertia + Svelte · API rest · Postgres in prod (SQLite locally)
Book title, author, rating 1–5 · belongs to User
Review body, stars 1–5 · belongs to Book
API /api/v1/books, /api/v1/reviews · bearer tokens
› yes
+ migration/src/m20261013_120000_create_books.rs
+ src/models/book.rs · src/controllers/books.rs
+ web/src/pages/Books/Index.svelte (+ 71 more)
✓ cargo clippy --all-targets -- -D warnings
✓ pnpm --dir web typecheck · svelte-check
✓ cargo nextest run · SQLite · 142 passed
✓ cargo nextest run · Postgres 18 · 142 passed
Definition of Done: green. Run bin/setup && bin/dev

What it is
A framework made of decisions, not code.
Other frameworks ship a library. Rust off Rails gives your agent the judgment: every choice it would otherwise improvise, already made and written down.

0
The founding rule
All code is written by AI
Every line of Rust, SQL, HTML, CSS, TypeScript and every Dockerfile is written by an agent. Humans write intent: specs in product/, answers in the interview, feedback in conversation. Never code. It's the rule the others rest on: boilerplate is free, conventions are enforced by the agent, and specs stay the source of truth. Read §0.

#
Markdown is the framework
Where a framework would ship a library, Off Rails ships a precise spec. The job queue, sessions and Inertia adapter are rendered into your app as code you own.

!
Strong opinions, aimed at agents
Crate choice, file layout, naming, errors, tests: decided once. The agent never debates the ORM. Inconsistency is the enemy, not imperfection.

+
Batteries included
Auth, jobs, email, caching, uploads, realtime, deploys: every layer has a guide and a recipe, so the agent never starts from a blank page. Browse the guides.

How it works
Interview. Plan. Generate. Green.
The agent asks only what a human can answer, writes the answers down, and is done only when the compiler and the test suite on both databases agree.

01
Interview
Product questions only, each with a recommended default. "Who can see this?" yes; "which ORM?" never. Say "you decide" and it takes the defaults.

02
Plan
A compact plan (resources, pages, jobs, assumptions) written into product/ specs with acceptance criteria. The spec is the durable record; chat is not.

03
Generate
Generator recipes, run by the agent: migration → model → failing tests → controller → views, one vertical slice at a time.

04
Green
fmt, clippy, tests on SQLite and Postgres, every acceptance criterion traced to a test, coverage gates. Green or it didn't happen.

Eight skills, one per job

SkillWhat it does

/offrails:newInterview → plan → app skeleton → planned features, green
/offrails:featureSpec first, then code. With no argument: build what changed in product/
/offrails:scaffoldA full resource in the app's frontend mode
/offrails:generateJobs, mailers, channels, authentication, models, migrations, tasks
/offrails:checkThe Definition of Done: fmt, clippy, tests on SQLite and Postgres
/offrails:doctorAudits the app against every convention in the docs
/offrails:deployDeploy config and a verified image; confirms before anything outward-facing
/offrails:upgradeMoves the app's vendored framework forward and migrates conventions

How you'll use it
You write intent. The agent writes everything else.

1Say what you want, or write it in product/features/*.md. Plain English.
2The agent writes the spec, then the code: migrations, models, views, tests.
3Done means green on SQLite and Postgres, every acceptance criterion tested.

Read the guide →

Dev tools
See inside your app.
Traces, a profiler, a local mailbox, a jobs dashboard and live presence, built in. Your agent reads the same data as JSON, so it can check its own work.

Dev dashboard

Traces

Hot functions

Mailbox

Jobs

Presence

The dashboard costs about 1 µs per request in a release build, and is development only by default.
Take the tour →

The deal
What changes when typing is free.

When typing was the bottleneck…When typing is free…

A library with hundreds of thousands of lines60 Markdown files
A code generator binarygenerators/scaffold.md: a recipe the agent runs
Convention over configurationConvention over deliberation: the agent never debates which crate to use
Optimized for programmer happinessOptimized for agent correctness: compiler-checked everything
Magic, to save keystrokesNo magic. Explicit code is cheap when you don't type it.

The stack in one breath
One crate per job. Substitutions are not taken at the table.

Axum·Tokio·SeaORM SQLite locally, Postgres in production, same code·Askama·Tailwind·lettre·tracing·one binary, one Docker image

FRONTEND_MODE, chosen once in the interview

htmx default
Askama templates, checked at compile time, plus htmx. No Node. For CRUD apps, dashboards, content sites (like this one).

inertia
React or Svelte pages with server-side routing and controllers, through a generated Inertia adapter. The pick when you want a JS UI.

spa
A separate single-page app plus a JSON API, for when the UI must be a standalone app. Types flow from Rust via ts-rs.

api in progress
No UI at all: a backend and a versioned API for mobile apps, partners and scripts.

UI_LIBRARYreact (default) or svelte, for inertia, spa and htmx islands
APInone, rest (OpenAPI + tokens), graphql or both: a public, versioned API, independent of the UI

And in the database: a job queue, a cache and pub/sub. The database is the only infrastructure.

Standing on giants
The best of Rails and Phoenix, together.
None of the good ideas here are new. We took the ones that aged best from two frameworks we love, gave each a Rust shape, and wrote them down for agents.

From Ruby on Rails

Convention over configuration, sharpened into convention over deliberation
Generators: rails new and scaffold, as recipes the agent runs
Active Record → models and migrations
Rails 8 authentication: database-backed sessions, generated and owned
Solid Queue, Cache and Cable: the database is the infrastructure, no Redis
Turbo 8 page-refresh broadcasts → signals over SSE
Action Mailer previews
Kamal, /up and Docker by default
bin/rails tasks → one app binary
Credentials and env discipline

From Elixir and Phoenix

Oban: persistent jobs with states, unique jobs, cron, snooze
Oban Web → the live /admin/jobs dashboard
Swoosh's local mailbox → /dev/mailbox
phx.gen.auth: magic links and the "check your mailbox" dev hint
LiveDashboard → the /dev toolbox
The pending-migrations page, with its "Run migrations" button
Ecto's explicit data layer: changesets, no callbacks
Channels, Presence and PubSub in progress
Distributed nodes and "let it crash" supervision in progress

And also

htmx
Inertia.js
Tailwind
shadcn-style owned components
ts-rs end-to-end types
Svelte
Playwright

Field tests
Real apps, ported by agents.
Agents port well-loved open-source apps to Rust off Rails. Every rough edge they hit goes back into the framework.

from Fizzy In progress
fizzyer
Fizzy's boards and cards, rebuilt in Rust by agents.

from FreeScout In progress
A FreeScout port
A shared-inbox help desk, built by agents on another machine.

from Uptime Kuma Built
uptime-offrails
1530 of 1530 tests green on SQLite and Postgres.

Built with GPT-6 Luna Claude Sonnet 5.5 Meta's Muse Wonder 1 GLM 5.3 Flash via opencode The goal: small, cheap agents that get real work done too.
Read the field tests →

Get started
Install the plugin. Describe the app. Watch.

1 With Claude Code (recommended)
/plugin marketplace add rust-off-rails/rustoffrails
/plugin install offrails@offrails
Then, in an empty directory:
/offrails:new bookshelf: people track the books they've read and review them
The agent interviews you, confirms a plan, then builds. Skills also trigger on plain requests ("make me a new Rust web app…").

2 With Codex, Cursor, or any agent that reads AGENTS.md
Read /path/to/rustoffrails/AGENTS.md and make me a new app called "bookshelf".
Generated apps carry AGENTS.md and a vendored .offrails/, so later sessions need no setup.
3 Then
Describe features in plain language, or write them as specs in product/:
Scaffold Book with title:string, author:string, published_on:date, rating:integer.
Users must be logged in to create books.

The full walkthrough → How you'll use it Read the docs Star on GitHub

Rust off Rails
The opinionated web stack for the AI era.
Inspired by Ruby on Rails and Elixir/Phoenix. Built for agents.
This site was built by an agent following only the framework's Markdown.
Framework v0.7.3 · Changelog

Learn

Get started
Guide
Try it: prompts
FAQ
Philosophy
How it was built
Tour: the dev tools
Field tests

Reference

Parts
Snippets
Generators
The app template

Project

GitHub
Discussions
Security policy
Contributing
License: MIT OR Apache-2.0

Docs

Overview
AGENTS.md
The stack
Generating an app
MCP server
llms.txt

The convention lives in the prose. The agent writes the code.

Rust off Rails is a framework purposefully designed for the AI era, functioning as an opinionated web stack for building full-stack Rust web applications with coding agents. It operates on the foundational principle that the framework itself is defined by Markdown specifications rather than code, with the agent tasked with writing all necessary Rust, SQL, HTML, CSS, TypeScript, and Dockerfile code based on these explicit instructions. The creators emphasize a founding rule: all code is written by AI, with humans providing intent through product specifications, interviews, and conversational feedback. This approach eliminates the need for the agent to improvise on boilerplate, as conventions are pre-decided and enforced by the agent itself. The framework includes batteries for common layers such as authentication, jobs, email, caching, uploads, realtime, and deployment, ensuring the agent never begins from a blank page.

The development process is structured around four stages: Interview, Plan, Generate, and Green. During the interview, the agent poses only product-oriented questions, each with a recommended default, and records the answers in a plan that includes resources, pages, jobs, and assumptions along with acceptance criteria. This plan serves as the durable specification. The agent then generates code sequentially—migrations, models, tests, controllers, and views—in vertical slices. Finally, the app must achieve a green state, with formatting checks, clippy warnings disabled, tests passing on both SQLite and Postgres, and every acceptance criterion traced to a passing test. The definition of done is strict: the app must pass all checks to be considered complete.

The framework enforces a specific stack: Axum for the web framework, Tokio for async runtime, SeaORM for data access with SQLite for local development and Postgres for production, Askama for server-side templates, Tailwind for styling, lettre for email, tracing for observability, and a single binary and Docker image. The frontend mode is chosen once during the interview and can be htmx (the default, using Askama templates and htmx, with no Node.js), Inertia (supporting React or Svelte with server-side routing and controllers via a generated adapter), spa (a separate single-page app with a JSON API, with types flowing from Rust via ts-rs), or a pure API mode with no UI. The database itself provides a job queue, caching, and pub/sub capabilities, making it the sole infrastructure layer.

Eight specialized skills guide the agent's workflow: /offrails:new for creating a new app through the interview and plan process; /offrails:feature for adding features based on product specs; /offrails:scaffold for generating a full resource in the frontend mode; /offrails:generate for creating jobs, mailers, channels, authentication, models, migrations, and tasks; /offrails:check to enforce the definition of done; /offrails:doctor to audit the app against all conventions; /offrails:deploy to deploy config and a verified image, confirming before any outward-facing actions; and /offrails:upgrade to advance the vendored framework and migrate conventions. Dev tools such as traces, a profiler, a local mailbox, a jobs dashboard, and live presence are built into the app, allowing the agent to inspect its own work as JSON, with a negligible per-request overhead in release builds and default off during development.

The framework's effectiveness is demonstrated through field tests, where agents port well-loved open-source applications to Rust off Rails. Examples include Fizzy, a kanban tool rebuilt in Rust, a FreeScout port for a shared-inbox help desk, and Uptime Kuma, which achieved 1530 tests passing on both SQLite and Postgres. These projects illustrate how the framework accommodates real-world complexity and feed back any rough edges into the framework itself.

Rust off Rails is inspired by the best ideas from Ruby on Rails and Elixir/Phoenix, adapted to Rust. It draws from Rails' convention over configuration philosophy, sharpened into convention over deliberation, its generators as agent-run recipes, Active Record's model and migration approach, Rails 8's database-backed sessions, Solid Queue, Cache, and Cable concepts, and Turbo's page-refresh signals translated to SSE. It also incorporates elements from Elixir/Phoenix, such as Oban for persistent jobs, Oban Web's job dashboard, Swoosh's local mailbox, phx.gen.auth for magic links, LiveDashboard for the dev toolbox, and the pending-migrations page. Additionally, it integrates htmx, Inertia.js, Tailwind, shadcn-style owned components, ts-rs end-to-end types, Svelte, and Playwright. The framework is built with multiple AI models, including GPT-6, Claude, Meta's Muse, GLM, and others, with a goal of creating small, cost-effective agents that accomplish real work.

Users interact with the framework by expressing intent in plain English or by writing specifications in product/features/*.md files. The agent then writes the specifications and generates the code, including migrations, models, views, and tests. The completion criteria are met when the application is green on SQLite and Postgres, and every acceptance criterion is covered by a test. The framework is self-contained, with generated apps carrying AGENTS.md and a vendored .offrails/ directory, so subsequent sessions require no additional setup. The site itself was built by an agent following only the framework's Markdown, underscoring its core principle that the convention lives in the prose and the agent writes the code.