npm create tansy@latest

A content backend that lives inside your Next.js app

Tansy is a self-hosted CMS you install as a package. Collections, fields and access rules are defined at runtime from its own dashboard, and your content stays in your own database.

Sign in as demo@example.com with explore-tansy-shop. Change anything: the demo resets every hour.

One app, not two

The dashboard is at /dashboard and the API at /api, in the same Next.js app as your pages. Your own routes keep working beside them.

Schema at runtime

Collections, fields, blocks and URL patterns are defined on the dashboard and take effect at once. No migration, no redeploy, no generated types to commit.

Authorization as data

Roles carry permissions, and per-collection rules decide which rows a caller may touch. The same rules cover the API, the dashboard, realtime, files and your pages.

Everything is a plugin

Blog, LMS, shop, payments, forms, newsletter, analytics and AI are packages on the public extension API — the same one your plugin uses.

Many languages

A language per record with fallbacks, an address per language, hreflang, right-to-left pages, XLIFF import and export, and the dashboard itself translated.

Yours to host

SQLite or any Postgres, files on disk or any storage provider, encrypted backups you hold the key to. Nothing is hosted for you.

Features are lines in one config file

A plugin can add collections, field types, blocks, permissions, dashboard pages, API routes, jobs and record hooks. Removing its line removes the feature, and tansy migrate applies whatever schema it brought with it.

  • Hook files for routes, jobs and record hooks, with no build step.
  • Themes render the whole site from your content, headless or in the same app.
  • REST, realtime, webhooks, OpenAPI, MCP and a typed SDK for everything outside it.
Read the extension API
import { defineCms } from "tansy/config";
import { blog } from "@tansy/blog";
import { magazine } from "@tansy/theme-magazine";

export default defineCms({
  theme: magazine(),
  plugins: [
    blog({ siteUrl: "https://example.com", comments: "moderated" }),
  ],
});

Run it in one command

Start a new project, add it to an app you already have, or run the container. The first start prints a one-time link to create your superadmin.

New projectnpm create tansy@latest
Existing appnpm install tansy && npx tansy init
Dockerdocker run -p 8090:8090 -v tansy-data:/data tansy
Start here