Elestia Open Source Ratings
7.4

MDX

A strong pick. 6th of 9 markdown libraries.

MDX is the standard compiler for Markdown with JSX components: it turns .mdx files into JavaScript components, and Next.js, Astro, Docusaurus and Storybook all build on it. It is a strong, mature pick when you need components inside content. Its last release was in August 2025, and it is the wrong tool for plain Markdown or untrusted content.

Best for: Teams building docs sites, blogs or design-system docs that need React or other JSX components inside Markdown content they write themselves.

WebsiteGitHubnpm

Scores

Overall7.4

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

For components inside Markdown, MDX is the clear default, and the major frameworks support it officially. It ranks below the general parsers because its job is narrower, its release pace has nearly stopped, and its strict syntax and code-execution model make it a poor fit for plain or untrusted Markdown. Pick Markdoc when you want content kept separate from code, and marked or markdown-it for plain rendering.

GPT-6.2 Sol: 7.8, likely 6.7 to 8.8

Choose MDX for trusted, component-rich documentation where direct JSX imports and framework support save work. For a new project focused on plain HTML output or Markdown tree transforms, markdown-it or remark is the better fit, and react-markdown is the better fit for rendering user-supplied Markdown in React. The long release gap and Astro's switch to a different default compiler add uncertainty to the two-year outlook.

Needed by many4.7

How many developers need a tool for this job?

Claude Opus 5.5: 4.5, likely 3.5 to 6.0

MDX serves developers who want components inside Markdown, mostly in JSX-based docs sites, blogs and design-system docs. That is a large group, but much narrower than everyone who just needs to render Markdown. Its output is a component for JSX runtimes, which limits it to those stacks.

  • nextjs.org/docs/app/guides/mdx: Next.js presents MDX as the way to embed React components in Markdown content.
  • peers downloadsLast4Weeks: General Markdown parsers such as marked and markdown-it are installed far more widely.

GPT-6.2 Sol: 4.8, likely 3.6 to 6.0

MDX serves teams that need interactive components inside documentation, blogs, or design-system guides. It supports several JSX runtimes, but ordinary HTML rendering and tree editing have fewer setup requirements with markdown-it or remark. Framework surveys show how many developers could use MDX, and leave the share who actually need it uncertain.

Helps a lot7.9

How well does it do the job for those who need it?

Claude Opus 5.5: 7.5, likely 6.5 to 8.5

It is the most complete tool for compiling Markdown plus JSX. It has bundler integrations for webpack, Vite/Rollup, esbuild and Node, a pluggable unified pipeline, source maps, types and strong docs. Limits: the syntax is strict and breaks loosely written Markdown, Prettier support is weak, and runtime or remote compilation needs third-party wrappers.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.3

MDX 3.1.1 has a typed compiler, three stages for tree transforms, and documented diagnostics that help teams debug content. Framework examples give coding agents a starting point, though agent accuracy is unmeasured and authors report friction with editor tooling and formatting. Astro measured faster site builds after moving to its Rust-based processor, so performance on large content sets depends on the pipeline.

Holds up over time6.4

Will it still be a good choice in two years?

Claude Opus 5.5: 6.5, likely 5.0 to 7.5

The project is mature, with only 9 open issues, and major frameworks still build on it, so it is unlikely to go away. But it had no release in the past 15 months and only 21 commits in the last year. Users have also noted that the work rests on very few maintainers. It is part of the sponsored unified collective, which reduces the risk somewhat.

  • github commitsLastYear / releasesLastYear: 21 commits and 0 releases in the last year.
  • github openIssues: Only 9 open issues against 688 closed, so the backlog is well kept.
  • bluesky top posts: A user asks whether the whole project is maintained by one person.
  • scorecard Maintained: The Maintained check scores 3 of 10.

GPT-6.2 Sol: 6.3, likely 4.8 to 7.7

The repository recorded 21 commits in the past year, and 3.1.1 has been the latest release since August 2025. Sponsorship through unified and continued use by framework teams support its prospects, while the number of people able to publish remains unclear. The Docusaurus upgrade exposed expensive content changes, mostly from MDX 2, and Astro 7 now defaults to a different compiler for the same format.

Used widely6.8

How many use it, and is that growing?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It has 64M downloads in 4 weeks against 13.7M a year earlier, a ratio of about 4.7, slightly above the 4.1 median. Many of those installs come through Docusaurus, Storybook, Astro and Next.js rather than direct choices. Its 106k dependent repos put it below marked, markdown-it and remark but well above react-markdown and Markdoc, which points to many tens of thousands of real projects.

  • npm downloadsLast4Weeks vs downloadsSame4WeeksYearAgo: 64.3M vs 13.7M, a ratio of about 4.7 against the 4.1 median.
  • dependents repos: 106,065 dependent repos and 1,313 dependent packages.
  • github stars: About 19.9k stars.

GPT-6.2 Sol: 7.0, likely 5.9 to 8.1

Ecosyste.ms found 106,065 dependent repositories, ahead of react-markdown and far behind Marked. Four-week downloads rose 4.68× year over year, above the 4.1× catalog median but slower than Marked and react-markdown. Framework integrations drive transitive installs, and the roughly 19,900 stars cover the compiler and its adapters, so the number of teams that chose the compiler directly remains uncertain.

  • dependents: 106,065 repositories and 1,313 npm packages found.
  • npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 64.3 million versus 13.7 million downloads, giving 4.68× growth.
  • peers: Marked has 468,889 dependent repos and react-markdown has 48,191.
  • github.stars, bluesky.posts: 19,869 stars and four recent Bluesky posts linking to the repository.
  • github.com/mdx-js/mdx: The repository groups the compiler with framework and bundler adapters.
  • github.com/meta/docusaurus/blob/main/packages/docusaurus-mdx-loader/package.json: Docusaurus pulls in the compiler through its loader.
Vouched for8.2

Who stands behind it being good?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Next.js documents it as the official MDX path, and Docusaurus, Astro, Storybook and many docs platforms build on it. Those backers have a lot to lose, and their support is current. Independent write-ups and survey data are thinner, which keeps the score below 9.

GPT-6.2 Sol: 8.3, likely 7.2 to 9.4

Docusaurus depends on the compiler, Storybook lists MDX 3 in its docs tooling, and Next.js documents a build path through the MDX loader. The public React docs also list the compiler, on the older v2 line. These are independent commitments to the package, though direct satisfaction data and independent benchmarks that isolate 3.1.1 are scarce.

Safe6.1

How safe is it to depend on?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

It has no advisories, an MIT licence and a security policy. But it pulls in 25 direct dependencies from the unified ecosystem, and its OpenSSF Scorecard is a weak 4.4, with no branch protection and broad token permissions. By design, MDX compiles content to code, so running untrusted MDX is code execution.

GPT-6.2 Sol: 5.7, likely 4.4 to 7.0

OSV lists zero advisories for this package, and its MIT license is permissive. The package has 25 direct dependencies, and the 4.4 OpenSSF Scorecard flags weaknesses in branch protection and workflow token permissions while leaving release signing and packaging unverified. Rendering full MDX executes JavaScript, so the risk depends heavily on who can supply content.

  • advisories.total, npm.license, npm.dependencies: Zero recorded advisories, MIT license, and 25 direct dependencies.
  • scorecard: 4.4 overall, with zero scores for branch protection, token permissions, and fuzzing.
  • mdxjs.com/packages/mdx: Documents that the evaluate API executes JavaScript.
  • github.com/orgs/mdx-js/discussions/2613: Maintainers explain the trust requirement for MDX authors.

Good

  • It is the de facto format for components in Markdown, with official support in Next.js (@next/mdx), Astro, Docusaurus and Storybook.
  • Files compile to plain JavaScript at build time, so pages do not parse Markdown in the browser.
  • It plugs into the full unified ecosystem (remark, rehype and recma plugins) for syntax highlighting, tables of contents, GFM and more.
  • It ships TypeScript types, has thorough docs at mdxjs.com, and has no known advisories.

Bad

  • No release since 3.1.1 in August 2025, and only 21 commits in the last year, mostly by a very small core team.
  • Its syntax is stricter than Markdown: a stray { or < breaks the build, and the v2/v3 migrations broke existing content.
  • Compiling untrusted MDX means running untrusted code, so it is unsuitable for user-generated content without extra tooling.
  • Editor tooling has gaps: Prettier support for MDX 3 is incomplete, and the Rust compiler in Next.js is still experimental.

The numbers

npm downloads, 4 weeks
64M ×4.7 in a year
GitHub stars
20k
Commits, 12 months
21
npm version
3.1.1 Aug 2025
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
4.4 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (mdx-js/mdx), npm (@mdx-js/mdx), OSV and the OpenSSF Scorecard.

Markdown libraries

  1. 8.3Marked
  2. 7.9markdown-it
  3. 7.7react-markdown
  4. 7.7Streamdown
  5. 7.6remark
  6. 7.4MDX
  7. 7.1micromark
  8. 7.0Markdoc
  9. 4.1Showdown
Compare all 9 on six scores