The basics
What Sanity actually is
A headless CMS: your content lives in a hosted database as structured JSON, and any front end can fetch it.
A traditional CMS like WordPress stores your content and renders your pages. Sanity only does the first half. It is a headless CMS: content is stored as structured data, and you choose how and where it is displayed — a website, an app, an email, or an AI agent.
Three moving parts
- The Content Lake — Sanity’s hosted, real-time database. Every document is JSON, versioned, and queryable over an API.
- Sanity Studio — the editing interface. It is an open-source React app you configure in code, so it adapts to your content instead of the other way round.
- APIs — query content with GROQ (or GraphQL), write it back with mutations, and listen to changes in real time.
This site is a small example: an Astro front end that fetches its explainer sections from a Sanity dataset, with a Studio in the studio/ folder for editing them.