contentlayerdev/contentlayer
Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2051
- days_rel: n/a
- days_push: 664
- n_releases_24m: 0
Adoption not part of the score
3536 stars · 193 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Contentlayer is a content SDK that validates and transforms Markdown, MDX, and CMS content into type-safe JSON data you can import directly into your JavaScript/TypeScript application. It offers deep Next.js integration via the next-contentlayer plugin, with a CLI and pluggable content sources such as local files and Notion.
Use cases
- build a type-safe blog with markdown in Next.js
- import MDX content as typed data in my app
- validate frontmatter and generate TypeScript types for content
- use Notion as a CMS for a Next.js site
- speed up static site builds with incremental content processing
- turn local markdown files into queryable JSON documents
When to choose
- you build a Next.js (or similar JS) site with local Markdown/MDX content
- you want type-safe, validated content without learning a query language
- you need fast incremental builds and live reload for content-heavy sites
When to avoid
- you need a framework other than Next.js - Remix, Astro, SvelteKit, and Vite support is only 'considered'
- you need production CMS sources like Contentful or Sanity, which are experimental or planned
- you need a project under heavy active development - the project is in beta/maintenance with known problems
Facets
library · maturity maintenance
build-tool parser serialization type-system cli plugin-system web-development frontend developer-tools documentation cms cli mdx markdown content-sdk nextjs type-safe-content static-content jamstack content-pipeline nodejs typescript web-server
10 sources
- readme: https://github.com/contentlayerdev/contentlayer · fetched 2026-08-28 · c873195a5330
- homepage: https://www.contentlayer.dev · fetched 2026-08-29 · 349199af6851
- site_page: https://contentlayer.dev/docs · fetched 2026-08-29 · 68b0bdbc6d1d
- site_page: https://contentlayer.dev/docs/getting-started · fetched 2026-08-29 · 1514f05751b2
- site_page: https://contentlayer.dev/docs/environments/nextjs · fetched 2026-08-29 · 9eeab03efb41
- site_page: https://contentlayer.dev/docs/environments/remix · fetched 2026-08-29 · 4e5b7e6b7f61
- site_page: https://contentlayer.dev/docs/environments/vite · fetched 2026-08-29 · 49b8a001944d
- site_page: https://contentlayer.dev/docs/environments/astro · fetched 2026-08-29 · 618bb57440eb
- site_page: https://contentlayer.dev/docs/sources/files · fetched 2026-08-29 · fdb9170b2490
- site_page: https://contentlayer.dev/docs/sources/notion · fetched 2026-08-29 · f8f03e6d6860
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| contentlayerdev/contentlayer | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="contentlayerdev/contentlayer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem