Accounts built in
Organizations, members with roles and email invitations. Routes live under /{account_slug}, and every generated query is scoped to the account.
Accounts guide
An Inertia.js starter kit for Rust: React 19 and shadcn/ui pages, served by a Loco server with auth, accounts, live updates and generators built in. One binary, SQLite, and nothing to keep in sync between them.
async fn index(
current: CurrentAccount,
State(ctx): State<AppContext>,
inertia: Inertia,
) -> Result<Response> {
let projects: Vec<ProjectProps> = projects::Model::list(&ctx.db, current.account.id)
.await?
.iter()
.map(projects::Model::to_props)
.collect();
render(inertia, "projects/index", json!({ "projects": projects })).await
}
// src/models/projects.rs
#[derive(Serialize, TS)]
pub struct ProjectProps {
pub id: i64,
pub name: String,
}import { Link } from "@inertiajs/react"
import { useCurrentAccount } from "@/hooks/use-current-account"
import { projects as routes } from "@/routes"
import type { ProjectProps } from "@/types/generated/ProjectProps"
export default function Projects({ projects }: { projects: ProjectProps[] }) {
const { slug: accountSlug } = useCurrentAccount()
return (
<ul>
{projects.map((project) => (
<li key={project.id}>
<Link href={routes.show({ accountSlug, id: project.id })}>
{project.name}
</Link>
</li>
))}
</ul>
)
}ProjectProps is a Rust struct; its TypeScript type is generated. Rename a field and the build tells you where.
Controllers render pages, not JSON. Inertia sends the page's props on navigation and React renders them.
A controller passes props to render(inertia, "projects/index", …). Their TypeScript types are generated from the Rust structs, and routes from one route table.
Forms post, the controller validates and redirects with a flash or an error bag. Errors show up on the right fields, no client-side state to manage.
Coming from Rails? The kit follows the Inertia Rails React Starter Kit, and Rails → Loco maps each rails command to its equivalent here.


Click Use this template on GitHub, or clone it. You need Rust (rustup) and Node 22.
git clone https://github.com/cole-robertson/inertia-rust-starter-kit.git myapp
cd myapp
bin/rename my_app "My App" # optional, but do it before the first bin/setup (see below)
bin/setup # npm ci, cargo build, migrate, seed, then bin/devOpen http://localhost:5150 and sign in as one@example.com / Secret1*3*5*. Then build your app: rename it, scaffold a resource, add jobs and mail, deploy.
Both kits as production Docker images on the same workstation, 4 pinned CPUs each, SQLite, SSR off, Rails with YJIT and Puma 4×3. Medians of 5 runs, 2026-10-04. The full benchmark.
For one small binary that boots in milliseconds, uses a fraction of the memory and serves more requests per core, with the compiler checking the server code and typed routes shared with React. Loco brings Rails' shape to Rust: generators, migrations, jobs, mailers, tasks. The trade is slower builds and no autoloading; see the benchmark for both sides.
It started as a port of the Inertia Rails React Starter Kit, and it still matches its routes, pages and messages, checked by a test that compares both kits' responses. Organizations are added on top. Every intended difference is listed in Parity with the Rails kit.
Not out of the box. The kit ships SQLite (WAL mode) for the app and its job queue, and the benchmark, the deploy targets and some code (src/db.rs) assume it. Loco and SeaORM support Postgres, so a switch is possible, but you'd be doing it yourself.
You'll read and write some. The generators write most of the server code, the pages are plain React and TypeScript, and AGENTS.md plus the kit's skills give a coding agent the exact steps for each task. Rails experience carries over: Rails → Loco.
It's v0.1. It has tests (Rust request and protocol tests, Playwright in client- and server-rendered modes), a security review and CI on every change, and the live demo runs it. But it's new, it has few users yet, and SQLite means one app server per database. Read the changelog and judge for yourself.
Most business software keeps data per organization, and accounts are cheap to keep but expensive to add to an app that already has data. If your app has no teams, the accounts guide shows how to flatten it.