Payload CMS inside your own codebase
Payload keeps your CMS in the same repository as your site: content models are TypeScript, the admin panel runs in your app, and there is no per-seat license. We set it up so editors get a clean admin and developers get typed content.
How we set it up
Payload is built for code-built sites. Here is how we use it on each platform, and where we would pick something else.
Framer
Framer has its own CMS, and we would not put Payload behind a Framer site by default. If Payload must stay the source of truth, we sync content into Framer CMS collections through an API, and keep the models simple.
Framer development Via APIWebflow
Webflow has a native CMS, so Payload means two systems to keep in step. When it is needed, a Payload hook pushes changes into Webflow collections through the Webflow CMS API. Rich text and relationships need careful mapping.
Webflow development Via APIAstro
Payload runs as its own app with REST and GraphQL APIs. Astro fetches content at build time for static pages, or on the server for live content, and a webhook from Payload triggers a rebuild when editors publish.
Astro development NativeNext.js
Payload installs into the Next.js app folder, so the site, the admin panel and the API deploy as one project. Server components read content through Payload’s Local API without a network call, and live preview shows a draft on the real page before it is published.
Next.js developmentWhat teams use it for
Site and product in one repo
Marketing pages, docs and in-app content managed in the same codebase your engineers already ship.
Custom content models
Pricing tables, integrations, case studies and changelogs as typed collections, with validation on every field.
AI-managed content
An agent writes drafts through the API or the repository; an editor reviews them in the admin and publishes.
What to watch out for
The admin panel and API live in your app, so access control is code. We write rules per collection and field, and keep API keys on the server.
You run the database (Postgres, MongoDB or SQLite). Backups, migrations and hosting are part of the setup, not an afterthought.
Live queries on every request add load to the database. We cache published pages and revalidate on publish.
Questions about Payload
Do we need Next.js to use Payload?
Why Payload instead of Sanity?
Which databases does Payload support?
Can AI agents edit content in Payload?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Related integrations and services
Sanity
A headless CMS with a customizable editing studio, real-time collaboration and structured content.
OpenKeystatic
An open-source CMS that stores content as files in your Git repo, with an editing UI on top.
OpenVercel
Hosting from the makers of Next.js, with preview deployments for every branch and pull request.
OpenAI-managed website
Payload is one of the platforms behind an AI-managed website.
OpenHeadless CMS
Glossary definition.
Open