Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Contentlayer2

Turns Markdown and MDX content into typed data for Next.js.

Markdown, editors and contentNPM

GitHubWebsite

1. License

License from npm.

github.com/timlrx/contentlayer2

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Contentlayer2 does

Turns Markdown and MDX content into typed data for Next.js.

Contentlayer2 popularity

22 / 100
Gid Score, #4250 overall
64.1K
downloads a week, npm
425
GitHub stars
3
agent projects use it
Contentlayer2: downloads per weeknpm, next-contentlayer2 64,146
Contentlayer2: GitHub starstimlrx/contentlayer2 425

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Contentlayer2 is used

  • Contentlayer2 joined the catalog on its public numbers (64,146 downloads a week on npm and 425 GitHub stars), not on our project count: it is a dependency in 7 public GitHub projects of our scan, 3 of them set up for AI coding agents.
  • Projects that use it most often also use Next.js (100.0%), Prettier (100.0%), rehype-autolink-headings (100.0%).

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 85.7% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 71.4% of its projects

More about Contentlayer2

More in Markdown, editors and content

Alternatives

Contentlayer2 This page

MITGid 2264.1K/wk

Compare Contentlayer2 with another tool

Get started

Install it.

npm install next-contentlayer2

No step-by-step start for Contentlayer2 yet: we have not written its hand-checked card.