Structure everything visually. Build types, fields and relationships as one connected system in the Dashboard, and keep your content architecture clear as it grows.
The Dashboard
This is what modelling a type looks like — no file to open.
Field types, from text to references
Schemas modeled with Cairn
Faster than hand-written migrations
Command to generate typed code
Visual editor
Every model starts in the Dashboard. There's no config file to open and no migration to write by hand — the diagram is the schema.
Typed code, on demand
Nothing here is a hidden auto-push the moment you save. Run `cairn typegen` — by hand, in CI, or as a predev script — and it pulls your schema straight from the Dashboard into real TypeScript types in your repo.
$ cairn typegen
✓ Pulled 12 models from the Dashboard
✓ Wrote cairn/types.generated.ts
$ git diff --stat
cairn/types.generated.ts | 4 +-One model, every angle
The article type, modeled once in the Dashboard — generated types, a typed client, or the REST API directly. All three stay in sync automatically, because all three come from the same schema.
// cairn/types.generated.ts
// Generated by `cairn typegen` — do not edit by hand
export interface Article {
title: string
slug: string
author: Author
body: RichText
publishedAt: string
}import { cairn } from '@/cairn/lib/client'
const article = await cairn.articles.findOne({
where: { slug: 'hello-world' },
select: ['title', 'author', 'body'],
})$ curl https://api.cairn.dev/v1/articles/hello-world \
-H "Authorization: Bearer $CAIRN_TOKEN"
{ "title": "Hello World", "author": { "name": "..." } }Why teams switch
Model one-to-one, one-to-many and many-to-many relationships without denormalizing your content.
Cairn checks every schema edit against existing content, so you see what would break before you ship it.
Every model change is tracked, diffable and revertible — schema history lives alongside content history.
“Moving our schema into Cairn's Dashboard is the first time our designers and engineers have looked at the same source of truth without translating it for each other first.”
Platform team, early access partner
Works with your stack
Spin up a project and define your first content model in minutes.