Contentlayer

A content SDK that validates and transforms your content into type-safe JSO...

README

contentlayer


Contentlayer is a content SDK that validates and transforms your content into type-safe JSON data you can easily importinto your application's pages.

Video Thumbnail

⚠️Contentlayer is currently in beta. There might still be breaking changes before the upcoming 1.0 release.

Getting Started


The video above is a brief look at Contentlayer. Explore further with our example projects , which you can clone to try out locally or in via Gitpod or Stackblitz in your browser.

Contentlayer Playground

Tutorial & Documentation


Follow the tutorial to get started building your own project. Or explore the full documentation .

Features


Live reload on content changes
Fast and incremental builds
Simple but powerful schema DSL to design your content model (validates your content and generates types)
Auto-generated TypeScript types based on your content model (e.g. frontmatter or CMS schema)

Supported Content Sources


Local content (Markdown, MDX, JSON, YAML)
Contentful (experimental )
Sanity (considering )
Notion (considering )

Supported Environments


Next.js
Remix (considering )
SvelteKit (considering )
Astro (considering )

Roadmap


See our docs for more information on our roadmap.

Community


Join our Discord community to get help, suggest new features, and stay up to date on all things Contentlayer.

Who is using Contentlayer?


ped.ro
GraphCMS Docs
axeldelafosse.com
arthurvdiniz.me
imadatyatalah.vercel.app
jahir.dev
samuelkraft.com
nirmalyaghosh.com
miryang.dev
osiux.ws
akhilaariyachandra.com
dawchihliou.github.io
sergiobarria.com
adeecc.vercel.app
alpesdream.vercel.app
bayukurnia.com
makersleague.de
euisblue.me
thismodernweb.com
scriptbar-snippets.tryapp.us
nikosantis.dev
phong.vn
dvl.sh
nicholaswarren.com
blog.sandromaglione.com
achintyajha.com
datahub.io
Making Sense of Crypto and Web3
cretu.dev
jarocki.me
iyansr.id
thisyujeong.dev
gipsterya.com
seankerwin.dev
royanger.dev
akashrajpurohit.com
kyoung-jnn.com
MrcatDev
screfy.com
igorkowalczyk.dev
christianpenrod.com
xahidex.com
hellonext.co
heykapil.in
adrianmato.art
livropog.com.br
rofireza.com
jakubh.com
fiqry.dev
soapbox.pub
hafidzamr.dev
anudeepreddy.dev
nikhilmohite.com
shenlu.me

Are you using Contentlayer? Please add your page (and repo) to the end of the list via a PR. 🙏