FOUNDATION

Foundation docs

Foundation is a CMS for agencies and their clients. Every site runs as its own Cloudflare Worker, with its own database and media library. Editors work in the admin at hq.<your domain>, and apps, scripts and AI agents read and write content through the Content API.

Using the CMSA tour of the admin for the people who write and look after a site.Content APIRead and write a site's content from your own app, a script, an automation or an AI agent.Posting forms from your own front endHow to send a form submission to Foundation from any page, and what you'll get back.

How Foundation works

Content comes to you as data Every entry arrives as a complete, typed record. The CMS doesn't send any HTML or layout, so how the site looks is entirely down to your front end.

Use the generated helper Fetch content through the generated helper instead of writing your own fetch calls or SQL. Its types are rebuilt every time the schema changes. If a field you need isn't there, add it to the model in the CMS. Don't edit the types in your repo, because they'll be overwritten.

You get the whole record There's no way to ask for a subset of fields, and that's deliberate. Nothing lists fields when you fetch, so a field someone adds in the CMS today shows up in your payload straight away.

Each site runs on its own Worker It has its own database and its own media bucket, and nothing shared sits in front of it. If the CMS itself goes down, visitors to the site won't notice.

Questions? Ask us.