0gravity.ch Free Consultation

Headless CMS: What Is It and Do I Need One?

| 0gravity
CMS Headless Web Development

You’ve heard the term “headless CMS” and wondered what it means? Don’t worry — the name sounds more technical than it is. In this article, we explain in simple language what a headless CMS is, why everyone’s talking about it, and whether it makes sense for your business.

What Is a CMS in the First Place?

Let’s start from the beginning. CMS stands for Content Management System — a system that lets you manage content on your website without needing to code. The most well-known CMS is WordPress. You log in, see a dashboard, and can edit texts, images, and pages. Simple. Familiar. Proven.

For over 20 years, this has worked on the same principle: the CMS stores your content and simultaneously generates the website your visitors see. Database, logic, and design are tightly coupled. This is called a monolithic or traditional CMS.

The Problem with Traditional CMS

As long as everything works, a traditional CMS is wonderful. But there are increasingly situations where the concept hits its limits:

Performance Limitations

Every time a visitor loads a page, WordPress must query the database, assemble the page, and send it to the browser. That takes time — typically 500–3,000 milliseconds. Caching plugins can improve this, but it remains a compromise.

For comparison: a static page that’s pre-generated is delivered in 20–100 milliseconds. That’s a factor of 10–50. Why this matters for your revenue.

Security Risks

WordPress is the most-used CMS in the world — and therefore also the most-attacked. Plugin vulnerabilities, outdated PHP versions, and weak passwords make WordPress websites popular targets. Most hacked websites worldwide run on WordPress — not because WordPress is bad, but because it’s so widespread.

Design Limitations

Traditional CMS like WordPress couple content and design tightly. If you want to fundamentally change the design, you often need to switch the entire theme — and hope all your content still fits. This leads to compromises and restrictions.

So Now: What Is a Headless CMS?

A headless CMS separates two things that are glued together in WordPress: the content and the presentation.

Think of a restaurant:

  • Traditional CMS = A kitchen that only delivers to one specific dining room. The kitchen determines how the food is served.
  • Headless CMS = A kitchen that prepares dishes and makes them available through a serving hatch. Different waiters can bring the food to different rooms — or even deliver it outside.

Technically speaking: the headless CMS stores and manages your content. It has an editing interface where you can write texts, upload images, and structure pages — just like WordPress. But it has no built-in “frontend” — no predetermined way the website looks.

Instead, it makes content available via an API (a technical interface). A separate frontend — for example, an Astro.js website — fetches the content through this API and displays it.

Advantages of a Headless CMS

1. Maximum Performance

Because the frontend runs separately from the CMS, you can use the fastest available technology. In our case: Astro.js, which generates static HTML and achieves Lighthouse scores of 95–100. The CMS only delivers the data — the frontend decides how fast it’s displayed.

2. Higher Security

When your CMS isn’t directly accessible on the internet (but only via an API), the attack surface shrinks dramatically. No PHP vulnerabilities, no publicly accessible login page, no plugin risks. Your content is managed securely, and the public website is purely static — there’s nothing to hack.

3. Future-Proofing

With a headless CMS, you can replace the frontend at any time without losing content. If a better framework than Astro appears in five years, you migrate the frontend — your content in the CMS remains unchanged.

4. Omnichannel Capability

The same content can be delivered to different channels: website, mobile app, digital signage, newsletter — all from one central source. For most SMEs, this isn’t relevant today, but it opens doors for the future.

5. Better Developer Experience

Developers can work with modern tools and frameworks instead of wrestling with WordPress theme development and PHP. That means: more efficient development, cleaner code, and ultimately a better result for you.

Disadvantages of a Headless CMS

To be fair, we must also mention the disadvantages:

1. No Visual Editing Out of the Box

With WordPress, you immediately see how your change looks on the website (WYSIWYG — What You See Is What You Get). With a headless CMS, you edit content in a structured editor. It’s less visual but more consistent. Many modern headless CMS now offer live previews that minimize this disadvantage.

2. More Technical Complexity in Setup

Setting up a headless CMS requires more technical know-how than a WordPress installation. You need someone to build the frontend separately and configure the API connection. This isn’t a DIY project.

3. Two Systems Instead of One

You have two things to maintain: the CMS and the frontend. With WordPress, everything is in one system. With a headless setup, it’s two. This isn’t a big problem if your agency manages both parts — but it’s additional complexity.

Storyblok

Swiss-region company (based in Linz, Austria). Visual editor that’s nearly as intuitive as WordPress. Ideal for SMEs that want to manage content themselves.

Sanity

Extremely flexible, with an editor that can be completely customized to your needs. Ideal for more complex projects with specific content requirements.

Strapi

Open source, self-hosted. Full control over your data. Ideal for businesses with strict data protection requirements or their own IT team.

Contentful

Market leader in the enterprise space. Proven, scalable, but more expensive. Ideal for large companies with complex content workflows.

Decap CMS (formerly Netlify CMS)

Lightweight, Git-based CMS. No separate server needed — content is stored directly in your code repository. Ideal for smaller websites with few content changes.

Do You Need a Headless CMS?

The honest answer: It depends. Here’s a decision guide:

You need a headless CMS if:

  • Performance is your top priority
  • You update your website regularly and want to manage content yourself
  • You value security and want to avoid WordPress risks
  • You’re looking for a future-proof solution not tied to a specific frontend
  • You serve multiple channels with the same content

You don’t need a headless CMS if:

  • Your website is rarely updated (less than once per month)
  • You don’t manage content yourself — your agency handles it
  • Your budget is tightly limited (a simple file-based setup is cheaper)
  • You have a very simple website (3–5 static pages)

The Middle Ground: File-Based Content

At 0gravity, we often work with a middle-ground solution: content is stored as Markdown files — structured, versioned, and fast. For clients who rarely make changes, this is the fastest and most affordable solution. For clients who regularly publish content, we integrate a lightweight headless CMS like Decap or Storyblok.

What Does Switching to a Headless CMS Cost?

OptionOne-time CostOngoing Cost
File-based (Markdown)Included in website priceCHF 0/month
Decap CMS (Open Source)CHF 500–1,500 setupCHF 0/month
Storyblok / Sanity (Cloud)CHF 1,000–3,000 setupCHF 0–100/month
Contentful (Enterprise)CHF 3,000–10,000 setupCHF 300–3,000/month

Costs depend heavily on the complexity of your content structure. A transparent overview of our website packages can be found on our pricing page.

Conclusion: Headless Isn’t Hype — It’s the Logical Evolution

The headless concept solves real problems: performance, security, flexibility. It’s not the right choice for every project — but for businesses that want a professional, fast, and future-proof website, it’s a serious option.

If you’re unsure whether a headless CMS makes sense for you, talk to us. We’ll advise you honestly and recommend the solution that fits your requirements and budget — whether that’s a headless CMS, a file-based setup, or something entirely different.


Frequently Asked Questions (FAQ)

Is a headless CMS harder to use than WordPress?

For editors: minimally. Modern headless CMS like Storyblok have intuitive interfaces that hardly differ from WordPress. The biggest difference: you don’t see changes directly on the website (except with live preview), but the structure is more consistent.

Can I migrate my WordPress content to a headless CMS?

Yes. There are established migration paths from WordPress to all major headless CMS. Texts, images, and metadata can be transferred automatically. The page structure and design need to be rebuilt — which happens during a redesign anyway.

What happens if the headless CMS goes offline?

With a static setup (like Astro): nothing. Your website is pre-generated and sits as HTML on the server. Even if the CMS is offline for hours, your website remains accessible. New content can only be published once the CMS is back — but the existing site is unaffected.

Does a headless CMS work with Astro.js?

Yes, perfectly. Astro has built-in integrations for all major headless CMS. Content is fetched when the website is built and converted into static HTML — the best of both worlds. Learn more about our technology choice in Why we build with Astro.js.

Do I need technical skills to use a headless CMS?

As an editor: no. The editing interface is similar to WordPress. For setup and frontend integration, you need a developer or agency. But that’s the case with any professional website.

0g
0gravity

Swiss web agency building ultra-fast, AI-optimized websites. We build websites that bring customers — not just look good.

Ready for a faster website?

Free website check: We test your current website and show you what's possible.

Or directly: hello@0gravity.ch

Book a call