Does ChatGPT recommend your website?Run the free GEO check
Book a call
Astro · 6 min read

What is Sanity CMS: a plain guide for website teams

Sanity CMS is a headless content management system. Editors write in Sanity Studio, the content lives in Sanity's hosted Content Lake, and the website reads it through an API. It fits when a developer builds the front end, for example in Astro. What decides it: who builds the pages, how structured the content is and how many seats you need.

Pavlo Zhydkykh, Co-founder and product designer at OrangeOrange

Co-founder and product designer at OrangeOrange.

About the author
A Sanity schema file next to the Studio form it creates, with the fields title, slug, author and body

What Sanity is

Sanity is a headless CMS. It stores content and hands it to your site through an API, but it does not build the pages.

A headless CMS is a back end only: a place to write, store and organise content. The pages come from a separate front end, built by a developer. The Astro docs put it in one line: Sanity focuses on structured content. In plain words, content is kept as fields, not as finished pages.

Sanity has three parts. Sanity Studio is where editors work. The Content Lake is where the content lives. GROQ is how the site asks for it. Sanity is the name of both the product and the firm behind it, and the docs live at sanity.io. The next sections take the parts one at a time.

Studio, Content Lake and GROQ

Each part does one job, and a team touches each one in a different way.

Sanity Studio

Sanity Studio is the editing app. It is open source and runs in the browser. Developers describe the content model in JavaScript or TypeScript, and the Studio builds the forms from it. Several people can edit at once and see each other's changes live. You can host the Studio on a sanity.studio address, on your own host, or inside your site on its own route.

The Content Lake.

The Content Lake is the hosted database behind every project. Sanity keeps content in it as JSON documents. Documents can point to each other, so one author can sit on many posts. Images and files go through an assets API. Drafts and published versions are kept apart.

GROQ

GROQ is the query language. A query picks the documents, follows references and returns only the fields the page needs. The query *[_type == "post"] | order(publishedAt desc) returns every post, newest first. GraphQL works too. Drafts come back only to requests that carry a token.

Schemas: content shaped by the team

In Sanity, the team decides what content looks like, field by field, in code.

A schema lists the types of documents and fields that editors can fill in. There are types for plain text, slugs, images, references and rich text. Rich text is saved as Portable Text, so it can render in any front end. A field can also hide or show based on the value of another field.

A content model usually takes shape in this order:

  1. List the types of content: pages, posts, case studies, team members.
  2. Write down the fields each type needs, and which ones are required.
  3. Decide which types point to others, like a post to its author.
  4. Write the schema in JavaScript or TypeScript and deploy the Studio.
  5. Write the GROQ queries the front end uses to build each page.

The model can change later, and Sanity documents how to move schema and content. But it is code work. A new field means a schema change and often a front end change too.

How Sanity differs from Webflow CMS and WordPress

Sanity keeps content apart from design. Webflow CMS and WordPress keep them in one product.

Wikipedia calls the second kind a coupled CMS. The editing tools, the content, the design and the templates sit in one app. WordPress pages come from a theme. Webflow pages come from the canvas, where a designer ties CMS fields to a layout. In Sanity, the layout lives in a separate front end, so a developer builds each page template.

How Sanity differs from Webflow CMS and WordPress
SanityWebflow CMSWordPress
Where content livesIn the Content Lake, hosted by Sanity.In Webflow, next to the site.In your own MySQL or MariaDB database.
Who builds the pagesA developer, in a front end such as Astro.A designer, on the Webflow canvas.A theme, plus the block editor.
Content modelSchemas written in JavaScript or TypeScript.Collections and fields set up in Webflow.Posts and pages, extended with plugins.
How the site reads contentGROQ or GraphQL over an API.Webflow renders it, or the CMS API.PHP templates in the theme.
Editing togetherReal-time editing and live presence.Edit mode on the live page layout.The block editor, known as Gutenberg.
HostingContent on Sanity, site on any host.Webflow hosts the whole site.Any web server that runs PHP.
Free startFree plan with 20 seats and 10,000 documents.Free Starter plan with a limited CMS.Free software, hosting paid apart.

Sanity vs WordPress is the most common form of this question. WordPress is free software that you install on a web server. Themes set the design and plugins add features, so a site can run from a theme with no developer. Sanity is a hosted service with no themes. The content model and the front end are built for your site, and the content stays as clean fields that any page or app can read.

The trade is simple. With Sanity, editors get a clean form, and developers get full control of the front end. With Webflow, a designer can change a layout without code. One example of the second kind: OrangeOrange built a resource hub on the Navina Webflow site with 6 CMS collections. About 12 people edit it with no developer.

What a team gets and what it pays

Sanity has a free plan, then a per-seat Growth plan, then Enterprise.

On the day of writing, the Sanity pricing page lists the Free plan at $0. It covers up to 20 seats, 2 roles, 2 public datasets and 10,000 documents. It also includes 250,000 API requests and 1 million CDN requests a month. Studio hosting, live preview, visual editing and real-time editing come with it.

For editors, the Studio is a set of forms, not a page. Visual editing and the Presentation tool close that gap. Editors see a live preview next to the form and click a part of the page to edit it. Both come on every plan, and so do unlimited content types and languages.

Growth costs $15 per seat a month, for up to 50 seats. It adds 5 roles, private datasets and 25,000 documents. It also adds comments, tasks, scheduled drafts and AI Assist. Extra usage is billed as you go. Enterprise is priced per deal, with single sign-on and an uptime SLA.

Two details matter early. On Free, datasets are public, so anyone with the project ID and dataset name can read the published content. Private data needs Growth or above. And Sanity is only the content side: the front end, its hosting and the developer's time are paid apart. Prices change, so check the pricing page on the day you decide.

Sanity with Astro

Astro builds the pages, and Sanity holds the content they show.

The Astro CMS guide says Astro takes care of how content is shown, so it pairs with a headless CMS. The official integration installs with npx astro add @sanity/astro @astrojs/react. It adds the Sanity client to the project and can put the Studio on a route of the same site.

On a static Astro site, pages are built from Sanity content at build time. An edit shows up on the next build. Sanity's GROQ-powered webhooks send an HTTP request when content changes. Point one at your host's build URL, and each publish starts a new build. Visitors get plain HTML pages, and editors stay in the Studio.

OrangeOrange builds Astro sites with Sanity as the CMS, for teams that want code they own.

When Sanity fits, and when it does not

Sanity fits when developers own the front end and the content has a clear shape.

  • A developer or a studio builds and runs the front end, in Astro or another framework.
  • Content repeats with the same fields: products, docs, case studies, team members.
  • Several editors work at the same time and need to see each other's changes.
  • The same content feeds more than one place, such as a site and an app.

It fits less well when marketers want to make new page layouts on their own, every week. A visual builder suits that team better. Read Webflow vs Framer to compare two of them, or see the glossary for the term. If the stack is still open, the website development page covers Webflow, Framer and Astro builds.

Key takeaways

4 key takeaways about Sanity CMS

Pavlo ZhydkykhBy , co-founder and product designer (LinkedIn). Checked .

  1. Headless CMS

    Sanity stores content and serves it through an API. The pages come from a separate front end, such as Astro.

  2. Three parts

    Editors work in Sanity Studio, content lives in the Content Lake, and the site asks for it with GROQ.

  3. Free to start.

    The Free plan covers 20 seats and 10,000 documents. Growth is priced per seat, so check the pricing page on the day you decide.

  4. Developer needed

    Schemas and page templates are code. Sanity fits when a developer owns the front end and the content has a clear shape.

Pros and cons

Sanity and Webflow CMS pros and cons

FAQ

Questions about Sanity CMS, with short answers.

Yes, Sanity has a Free plan at $0 with up to 20 seats, 2 roles, 2 public datasets and 10,000 documents. The Growth plan is priced per seat and adds private datasets, more roles, comments and tasks. Prices change, so check the Sanity pricing page on the day you decide.

WordPress is a coupled CMS: you install it on a web server, and a theme turns the content into pages. Sanity is a hosted headless CMS: it stores content and serves it through an API, and a separate front end, such as Astro, builds the pages. A WordPress site can run from a theme alone, while a Sanity site needs a developer for the front end.

To set it up, yes. A developer writes the schemas in JavaScript or TypeScript and builds the front end that shows the content. After launch, editors work in Sanity Studio without code.

Reviews

What OrangeOrange clients say, in their own words.

  • “OrangeOrange is really communicative, easy to collaborate with, and consistently delivers on time (often early).”

    Upwork client Webflow build for a mental health website
  • “OrangeOrange were able to get quality work out quickly and on time, despite changing timelines, budgets, and priorities.”

    Quinn Osha, CEO, TopmarqQuinn Osha CEO, Topmarq
  • “Everything was delivered on time or even ahead of time.”

    Remi Labelle, COO, Accolade ProRemi Labelle COO, Accolade Pro
  • “They didn’t miss any meetings or deadlines, and I can warmly recommend them for any future Webflow work.”

    Upwork client Webflow templates for PPC landing page tests

In their words

What Sanity, Astro and Wikipedia say about Sanity and headless CMSs.

“Sanity Studio is an open-source, real-time collaborative content workbench where developers define content models using JavaScript objects.”

Sanity, Studio

“Sanity stores your data, and some system data, in JSON documents.”

Sanity, Store and query structured content.

“A schema describes the types of documents and fields editors may author in a Sanity Studio workspace.”

Sanity, Schema

“Sanity is a headless content management system that focuses on structured content.”

Astro, Sanity & Astro.

“A headless content management system, or headless CMS, is a back end-only web content management system that acts primarily as a content repository.”

Wikipedia, Headless content management system.

Sources

Sources this note cites, and further reading.

SourcePublisher
Headless content management system.Wikipedia
Sanity & Astro.Astro
StudioSanity
Hosting and deployment - Sanity Studio.Sanity
Store and query structured content.Sanity
GROQ introductionSanity
SchemaSanity
PricingSanity
Use a CMS with Astro.Astro
The official Sanity integration for Astro plugin.Sanity

More notes

Keep reading.

Start a project

Let’s start a project

Tell OrangeOrange where your website stalls. A senior designer replies within one working day with a practical plan.

Contact OrangeOrange