Headless CMS
ELI5 — The Vibe Check
A headless CMS stores your content and gives it to you via API — but doesn't control how it looks. The 'head' (frontend/presentation layer) is detached, so you can build any frontend you want and fetch content via API. Contentful, Sanity, and Strapi are popular ones. Perfect for JAMstack sites.
Real Talk
A headless CMS is a content management system that decouples the content repository (backend) from the presentation layer (frontend). Content is stored and managed in the CMS and delivered via REST or GraphQL APIs to any frontend — websites, mobile apps, digital signage, etc. Enables omnichannel publishing and framework-agnostic frontends.
Show Me The Code
// Fetch content from a headless CMS (Sanity)
import { createClient } from '@sanity/client';
const client = createClient({ projectId: 'abc123', dataset: 'production', useCdn: true });
const posts = await client.fetch(`
*[_type == "post" && published == true] | order(publishedAt desc) {
title, slug, excerpt, publishedAt
}
`);
When You'll Hear This
"The marketing team edits content in the headless CMS and it auto-deploys to the site." / "A headless CMS gives content editors a nice UI while we use any frontend framework."
Related Terms
API Gateway
An API Gateway is the front door for all your APIs.
GraphQL
GraphQL is like ordering food where YOU specify exactly what you want on your plate.
JAMstack
JAMstack stands for JavaScript, APIs, Markup.
Netlify
Netlify is like Vercel's cooler older sibling that was doing the automatic-deploy-from-GitHub thing before it was cool.
Static Hosting
Static hosting is when you serve pre-built HTML, CSS, and JavaScript files directly — no server-side logic, no database queries per request.
Vercel
Vercel is the magic platform that takes your frontend code and puts it on the internet in like 30 seconds.