Decoupled.io is a Next.js headless CMS built on Drupal. You fetch content in Server Components with a typed client generated from your schema, editors build pages in a visual editor that uses your own components, and we host the Drupal backend.
- Open source backend: Drupal is GPL-licensed, and the Next.js starter is public on GitHub.
- Next.js 16 and React 19 starter: ships with the typed client, Tailwind, ISR and the visual editor wired up.
- Priced openly: free plan, then $20/month (Starter) or $60/month (Pro). See pricing.
Create a free space | Read the Next.js docs
Why teams pick it for Next.js
Next.js handles rendering. A headless CMS has to supply structured content, an editing interface and an API your code can trust. This one does that in four ways.
A typed client with no hand-written GraphQL
decoupled-client generates TypeScript interfaces from your Drupal schema, so your editor autocompletes every field. Text fields are typed as { value: string }, so you don't render [object Object] by accident, and a wrong field name fails the build instead of production. Re-run npx decoupled-cli schema sync after any content model change. Details are in the typed client docs.
Server Components fetch content directly
In the App Router, call the client inside a Server Component. No useEffect or client-side loading state is needed for content that renders on the server.
Every Next.js rendering mode
Use generateStaticParams for static pages, next: { revalidate } for time-based ISR, or on-demand revalidation. Drupal calls your revalidation endpoint when content changes, using a shared secret. See webhooks and the deployment guide.
A visual editor built from your components
Drupal Canvas is Drupal's open-source visual editor. Its component library is read from your Next.js app, and the preview is rendered by your app. Editors compose pages by dragging components, and developers keep control of the rendering. See the Canvas editor.
Quick start
1. Install the typed client
npm install decoupled-client
2. Generate types from your Drupal schema
npx decoupled-cli@latest schema sync
This introspects your space and writes schema/client.ts with TypeScript interfaces for every content type, pre-built queries and a createTypedClient() factory.
3. Fetch content in a Server Component
// app/blog/[slug]/page.tsx
import { createClient } from 'decoupled-client'
import { createTypedClient } from '@/schema/client'
import type { NodeArticle } from '@/schema/client'
const base = createClient({
baseUrl: process.env.DRUPAL_BASE_URL!,
clientId: process.env.DRUPAL_CLIENT_ID!,
clientSecret: process.env.DRUPAL_CLIENT_SECRET!,
fetch: (url, init) => globalThis.fetch(url, {
...init,
next: { revalidate: 60 },
}),
})
const client = createTypedClient(base)
export default async function ArticlePage({
params,
}: {
params: Promise<{ slug: string }>
}) {
const { slug } = await params
const article = await client.getEntryByPath(`/blog/${slug}`) as NodeArticle
return (
<article>
<h1>{article.title}</h1>
<p>{article.body?.summary}</p>
{article.image && (
<img src={article.image.url} alt={article.image.alt} />
)}
<div dangerouslySetInnerHTML={{ __html: article.body?.value ?? '' }} />
</article>
)
}
article.body is typed as TextSummary with .value and .summary. Mistakes show up at build time.
What you get, in numbers
| Item | Detail |
|---|---|
| Starter stack | Next.js 16, React 19, TypeScript, Tailwind |
| Starter components | 17, shared with the Astro starter |
| APIs | GraphQL and JSON:API on every plan |
| Auth | OAuth 2.0 client credentials |
| MCP tools | 25+ documented in the MCP reference |
| Space provisioning | roughly 2 minutes |
| Free plan | One space, 24-hour auto-archive |
| Paid plans | Starter $20/mo, Pro $60/mo |
Common questions
Do I have to use GraphQL? No. The typed client builds queries for you, client.raw() lets you write your own, and JSON:API is also enabled.
Which Next.js router does it use? The starter and these examples use the App Router.
Where do I deploy the frontend? Vercel, Netlify, Cloudflare Workers or a Node server. The dashboard can also deploy Drupal and a Next.js frontend in parallel on Netlify. See deployment.
How does preview work? Canvas opens your frontend in a preview frame and shows unsaved drafts. Visitors see the published page until an editor clicks Publish. Draft preview works in Chromium-based browsers.
Can AI agents manage the content model? Yes. Connect an MCP client such as Claude or Cursor and ask it to create content types, import content or generate the integration. The download_starter tool returns the Next.js starter's clone URL and setup steps.
How it fits together
Decoupled.io (Drupal backend)
- Content modeling, editorial UI, media library
- Schema introspection generates your typed client
Next.js (frontend)
- Server Components fetch data via the typed client
- Deployed to Vercel, Netlify or any Node.js host
Webhooks
- Content changes trigger on-demand revalidation
- Static pages update without a full rebuild
Limits to know about
- Curated modules. Drupal runs with a fixed module set; you can't install arbitrary contributed modules.
- Cold starts on Free and Starter. Idle spaces wake in about 5 to 8 seconds. Pro spaces are always on.
- Drupal knowledge helps. Content modeling uses Drupal concepts such as paragraphs and taxonomies.
Get started
- Create a free space and pick the Next.js starter.
- Follow the getting started guide to configure API access.
- Use the typed client to fetch content with autocomplete.
- Compare plans when you're ready to keep a space.