All posts

Where does a headless CMS keep your content?

Where does a headless CMS keep your content, and can you take it with you? It depends on the tool, which is why it is worth asking before you start. With Headla the answer is short: your content lives in your own PostgreSQL database, on a server you choose, as ordinary tables you can read without us.

That matters because the choice lasts for years: articles, product pages and help pages pile up, and the tool you picked on a busy Tuesday becomes the home of everything your team has written.

What does "your own database" mean?

Headla stores everything in PostgreSQL, a well-known database that has been around for decades and that almost every hosting company knows how to run. You give Headla a PostgreSQL database, and Headla keeps your content there.

You decide where that database runs: on a server in your office, with a hosting company you already trust, or in the cloud region that suits your customers and your rules. There is no Headla account you must create, and your content does not have to pass through any outside service to be stored or served.

How does Headla turn your content into tables?

In Headla you describe your content as collections and fields. A collection is a kind of thing, such as "articles" or "products". Fields are the pieces of information each one has, such as a title, a price or a publication date.

Each collection you create becomes a real table in your database, with a column for each field. Make a collection called "articles" with a title and a body, and your database gets a table called "articles" with those columns. Each article you write is a row in that table.

Why do ordinary tables matter?

It sounds like a small detail, but it changes a lot:

  • You can see your data. Anyone who knows their way around a database can open it and find your content exactly where they would expect it.
  • Your other tools can read it. Reporting tools, spreadsheets and other programs that understand PostgreSQL can work with your content directly, with whatever permissions you give them.
  • Backups are normal backups. Whatever you already do to back up a PostgreSQL database covers your content too.

What happens to your content if you leave?

Nothing happens to it. We would like you to stay with Headla because it is good, not because it is hard to leave.

Because your content is in ordinary tables in your own database, you never need to ask us for an export. If one day you decide Headla is not right for you, you stop running it. Your database, and everything in it, is still there, still yours, still readable.

That is also why no Headla setting locks your content into a format only Headla understands.

Who decides which content a person may see?

The database does. When you decide that a role may only see certain rows, for example that authors see only their own drafts, Headla turns that rule into a row security policy inside PostgreSQL. The database then refuses those rows itself, whichever part of the program asked for them.

So the rule does not depend on every part of Headla remembering to check it. The database checks it, every time. We explain why we care so much about this kind of safety in why we build Headla in Rust.

Can you rename collections and fields later?

Content models change: a field called "summary" turns out to need the name "teaser". We are working on safe renaming in Headla, so that changing a name later is an ordinary, careful step rather than a risky one. It is planned, not finished, and we will write about it when it lands.

What does owning your data ask of you?

One small responsibility: someone needs to run the database. Many teams already run PostgreSQL for other things; others pick a hosting company that offers it. Either way it is a common, well-understood job, and what you learn is not tied to Headla.

Frequently asked questions

Which database does Headla use?

PostgreSQL, for all of your content. Redis is optional: Headla uses it as a cache when you have it.

Do I need a Headla account or cloud service?

No. You run Headla with your own PostgreSQL database, wherever you choose, and your content never has to pass through an outside service.

How do I export my content from Headla?

You do not need to. Your content is already in ordinary tables in your own database, so any tool that understands PostgreSQL can read it, with or without Headla.

Can I rename a field after I have content in it?

Safe renaming is planned but not finished yet. We will write about it here when it is ready.

When can you try Headla?

Headla is not released yet; this post describes how it is being built. When the first release is ready, it will be free for everyone, with every feature; read what fair source means for you.

To hear when that happens, join the waiting list. We will send you one email when Headla is ready. Questions are welcome at contact@headla.com.

Headless CMS. Unleashed.