Astro and Keystatic, set up for editors
Keystatic gives editors a clean interface while content stays as Markdown, Markdoc or JSON in your repository. No separate database and no extra vendor holding your content.
How we set it up
The method depends on where your site is built. Here is what we use for Keystatic on each platform.
Framer
Keystatic writes files into a code repository, and Framer sites are not built from a repository. Framer’s native CMS covers the same need for Framer sites, so we use that instead and keep the editing inside Framer.
Framer development Not a fitWebflow
Webflow stores content in its own CMS, not in Git, so Keystatic has nothing to write to. On Webflow we design the CMS collections properly and give editors Webflow’s own editor, which does the same job.
Webflow development Official integrationAstro
Keystatic has an official Astro package that adds the admin UI at /keystatic. Entries are saved as Markdoc, Markdown or JSON files and read with Astro’s content collections. Locally it writes to disk; in production GitHub mode lets editors log in and commit changes.
Astro development Official integrationNext.js
Keystatic’s Next.js package mounts the admin UI and API routes in the App Router. Content lives in the repo as files and is read with Keystatic’s reader API. With GitHub mode, edits open on branches, so a developer can review them in a pull request.
Next.js developmentWhat teams use it for
Docs and blogs in the repo
Writers edit in a UI while developers keep content versioned next to the code.
Marketing pages with structure
Hero, feature and FAQ blocks defined as fields, so editors cannot break the layout.
Small teams without a CMS bill
Content stays in your own repository instead of another subscription.
What to watch out for
GitHub mode creates a GitHub App with write access to the repo. Limit it to the content repository and review who can log in.
Every edit is a commit. That is great for history, but large media files bloat the repo, so we store images in a folder with size limits or on a media host.
Each publish triggers a rebuild. With many editors that can mean many deploys; we batch edits on branches where it matters.
Questions about Keystatic
Is Keystatic a headless CMS?
Can non-developers use it?
Keystatic or Sanity?
Does it work with Astro content collections?
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.
OpenStoryblok
A headless CMS built around a visual editor and reusable content blocks.
OpenGitHub
Where the code for Astro and Next.js sites lives, is reviewed and gets deployed from.
OpenAstro development
Astro builds with an editing setup your team can own.
OpenHeadless CMS
Glossary definition.
Open