# MDX: 7.4 out of 10

A strong pick. 6th of 9 in [Markdown libraries](https://elestia.ai/opensource/markdown/index.md).

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.

## Scores

- **Overall: 7.4** (likely 6.4 to 8.4)
  - Claude Opus 5.5 (7.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): 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 many: 4.7** (likely 3.6 to 6.0)
  - Claude Opus 5.5 (4.5): 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.
  - GPT-6.2 Sol (4.8): 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 lot: 7.9** (likely 6.9 to 8.9)
  - Claude Opus 5.5 (7.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): 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 time: 6.4** (likely 4.9 to 7.6)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.3): 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 widely: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.0): 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.
- **Vouched for: 8.2** (likely 7.1 to 9.2)
  - Claude Opus 5.5 (8.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): 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.
- **Safe: 6.1** (likely 5.0 to 7.3)
  - Claude Opus 5.5 (6.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): 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.

## 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

- Downloads, 4 weeks: 64M
- In a year: ×4.7
- GitHub stars: 20k
- Commits, 12 months: 21
- Last npm release: Aug 2025
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/mdx-js/mdx
- npm: https://www.npmjs.com/package/@mdx-js/mdx

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
