Overview

How Tenon connects to a framework, and which guide to follow.

Tenon runs inside your app, so your framework serves the CMS next to your pages. This section shows the setup for each framework.

What every setup does

Every setup does three things:

  1. It sends every request under /_tenon/* to the CMS: the HTTP API, media files and sign-in. /sitemap.xml and /robots.txt go there too.
  2. It serves the admin page at /admin, or at the path you set in admin.path.
  3. It gives your pages the CMS instance from tenon.config.ts.

Astro has an integration and Nuxt a module that do all three. TanStack Start and other Vite apps add tenonAdmin() to the Vite config and write a few route files. Without Vite, you write the routes and mount the admin yourself.

The Astro integration, the Nuxt module and tenonAdmin() also run due jobs every minute, on most hosts. See The clock.

Pick your framework

Astro

The tenoncms/astro integration and a typed Astro.locals.tenon.

Nuxt

The tenoncms/nuxt module, useTenon() and auto-imported components.

TanStack Start

tenonAdmin(), four route files and server functions.

Standalone

Only the API and the admin, for frontends that read over HTTP.

Other frameworks

Any server that speaks Request and Response.

What works where

FrameworkSetupNodeVercelCloudflareComponents
Astrotenoncms/astro integrationyesyesyestenoncms/astro/components
Nuxttenoncms/nuxt moduleyesyes–tenoncms/vue, auto-imported as Tenon*
TanStack StarttenonAdmin() and route filesyesyes–tenoncms/react
StandalonetenonAdmin() and server.tsyesyes–None. Frontends read over HTTP
  • npm create tenoncms offers each framework for the targets marked "yes".
  • Other frameworks run where their server runs. They use the components of tenoncms/vue or tenoncms/react.
  • On Cloudflare, the CMS runs in a Durable Object. Only Astro supports that for now. See Cloudflare.
  • Each library has the same components, except Seo: Vue has none, and Nuxt has useTenonSeo(). See Components.