FREEFirst project with us? Your landing page design is on the house.See the offer

Glossary · Astro and headless

What is Content collections?

By Abdul QuadirUpdated Nov 2026
Content collectionsnoun · Astro and headless

Content collections are Astro's built-in way to manage sets of structured content, such as blog posts or case studies. They add validation and type safety to your content.

Content collections are Astro's built-in way to manage sets of structured content, such as blog posts or case studies. They add validation and type safety to your content.

Content collections, explained

You define a collection and a loader, which tells Astro where the content comes from. The built-in loaders read folders of Markdown, MDX and other data files, and custom loaders can pull from outside sources.

A schema describes what each entry should contain. If a post is missing its date, or a field has the wrong type, you find out during development instead of on the live site.

Pages then query the content with functions such as getCollection. Your editor can autocomplete the fields, which makes mistakes less likely.

Do not confuse them with Webflow CMS collections, which are a visual content tool. Astro's are for developers. If non-technical editors need a friendly interface, a headless CMS like Sanity is usually a better fit.

In our work

How Kookies uses it

On Astro builds we choose between content collections, data files and a headless CMS based on who edits the content and how often.

FAQs

Content collections
questions.

Abdul Quadir
Still have a question?Ask us directly. We reply within a day.
Book a callPick a timehello@kookies.io

No. They can read local files, and they can also load data from a CMS through a loader.

An optional definition of each entry's fields, used to check the data and generate types.

Only if they are comfortable with files and Git. Otherwise, connect a headless CMS.

Your turn

Let's kook
what you krave.

Hi Kookies, I need a built on . I'd love to launch . Reach me at
or book a callSent. We reply within one working day.