keystatic
Use when working with Keystatic CMS — git-based content management with TypeScript schema, Astro/Next.js integration, and Keystatic Cloud sync. Also use when choosing between Keystatic, Sanity, and Payload for content management.
| Model | Source |
|---|---|
| sonnet | pack: cms |
Full Reference
┏━ 🔧 keystatic ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Git-based CMS — Markdown/YAML/JSON, no DB ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Keystatic
Section titled “Keystatic”Keystatic (from Thinkmill) is a git-based CMS that makes Markdown, JSON, and YAML files editable via a browser UI — no database, no separate backend. Content lives in your repo.
Quick Reference
Section titled “Quick Reference”| Item | Value |
|---|---|
| Core package | @keystatic/core |
| Astro integration | @keystatic/astro |
| Next.js integration | @keystatic/next |
| Admin UI (Astro) | http://localhost:4321/keystatic |
| Admin UI (Next.js) | http://localhost:3000/keystatic |
| Storage modes | local, github, cloud |
| Cloud pricing | Free (3 users), Pro $10/mo + $5/user |
| Reader import | @keystatic/core/reader |
| Docs | https://keystatic.com/docs |
CMS Selection Guide
Section titled “CMS Selection Guide”| Need | Best Choice |
|---|---|
| Git-based, no DB, small team | Keystatic |
| Real-time collab, multi-locale, enterprise | Sanity |
| Full-stack app + CMS, self-hosted, complex auth | Payload |
| Non-technical editors, marketing team | Sanity or Payload |
| Open source, static site, content in repo | Keystatic |
Reference Index
Section titled “Reference Index”| I want to… | File |
|---|---|
| Install, configure storage, run dev server | reference/setup.md |
| Define collections, singletons, and field types | reference/schema.md |
| Add Keystatic to an Astro project | reference/astro-integration.md |
| Add Keystatic to a Next.js project | reference/nextjs-integration.md |
| Switch between local / GitHub / Cloud storage | reference/storage-modes.md |
| Author rich content with MDX and Markdoc fields | reference/mdx-authoring.md |
Usage: Read the reference file matching your task. Each file has working code examples and inline caveats.