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:
- It sends every request under
/_tenon/*to the CMS: the HTTP API, media files and sign-in./sitemap.xmland/robots.txtgo there too. - It serves the admin page at
/admin, or at the path you set inadmin.path. - 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
What works where
| Framework | Setup | Node | Vercel | Cloudflare | Components |
|---|---|---|---|---|---|
| Astro | tenoncms/astro integration | yes | yes | yes | tenoncms/astro/components |
| Nuxt | tenoncms/nuxt module | yes | yes | – | tenoncms/vue, auto-imported as Tenon* |
| TanStack Start | tenonAdmin() and route files | yes | yes | – | tenoncms/react |
| Standalone | tenonAdmin() and server.ts | yes | yes | – | None. Frontends read over HTTP |
npm create tenoncmsoffers each framework for the targets marked "yes".- Other frameworks run where their server runs. They use the components of
tenoncms/vueortenoncms/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 hasuseTenonSeo(). See Components.
Related resources
- Quick Start: create a project with
npm create tenoncms. - Add to an Existing Site: add Tenon to an app you already have, step by step.
- How Tenon works: the local API, the HTTP API and how Vite fits in.
- Deployment: run the site on Node, Vercel or Cloudflare.