# Introducing Content Collections: Type-Safe Markdown in Astro 2.0

DevFeed: [Introducing Content Collections: Type-Safe Markdown in Astro 2.0](<https://devfeed.tech/articles/introducing-content-collections-type-safe-markdown-in-astro-2-0-3321.md>)

Original publisher: [Read original article](<https://astro.build/blog/introducing-content-collections/>)

Author: Ben Holmes

Published: 2023-01-25T00:00:00Z

Content type: article

Language: en

Sources: [The Astro Blog](<https://devfeed.tech/sources/the-astro-blog.md>)

Topics: [Astro](<https://devfeed.tech/topics/astro.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [MDX](<https://devfeed.tech/topics/mdx.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [bug](<https://devfeed.tech/topics/bug.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [astro](<https://devfeed.tech/tags/astro.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bug](<https://devfeed.tech/tags/bug.md>), [content](<https://devfeed.tech/tags/content.md>), [developer](<https://devfeed.tech/tags/developer.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

Astro 2.0 introduces the Content Collections API, a type-safe way to organize, validate, query, and render local Markdown and MDX content. Collections use TypeScript-generated types and optional schemas to validate frontmatter, while improved error reporting makes content problems easier to diagnose.

## Source excerpt

New in Astro 2.0: Content Collections deliver a better developer experience for working with local content like Markdown and MDX. Powered by TypeScript, your local content is now automatically typed and validated for you against a schema so that you never miss or misspell another frontmatter property name again.