# kentcdodds/mdx-bundler

🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!

Repository: https://github.com/kentcdodds/mdx-bundler
Canonical: https://ross.abutalabs.com/products/mdx-bundler
Language: JavaScript
License: MIT
License Family: permissive
Topics: mdx, mdx-bundler, esbuild
Last push: 2026-05-13T06:51:47+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 40, longevity 100
- inputs: {"age_days": 2027, "days_push": 112, "days_rel": 546, "gap_med": 25, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1903, forks 82 (observed 2026-08-28T04:05:51.728604+00:00)

## What it is
mdx-bundler is a JavaScript library that compiles and bundles MDX strings together with their imported TS/JS dependencies using MDX v3 and esbuild, returning a renderable component. It works with sources from anywhere—local files, GitHub, or a CMS—as long as you provide the file contents.

## Use cases
- compile mdx strings into react components
- bundle mdx files with their imports
- render markdown with embedded jsx components
- compile mdx content stored in a cms
- support typescript imports inside mdx files
- build a blog that renders mdx posts with interactive components

## When to avoid
- you only need simple markdown-to-html rendering without jsx
- you need a full static site generator or mdx runtime in the browser without a build step

## Facets
- artifact type: library
- maturity: stable
- function: build-tool, compiler, serialization, markdown
- domain: web-development, frontend, documentation, developer-tools
- platform: -
- tags: mdx, esbuild, bundler, jsx, markdown, content-compilation, nodejs, javascript

## Member repositories
- kentcdodds/mdx-bundler (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.728604+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:11:52.856535+00:00, confidence not recorded.
  - readme: https://github.com/kentcdodds/mdx-bundler (fetched 2026-08-28T04:05:51.728604+00:00, sha 545ddc0b12aa)
  - registry_npm: https://registry.npmjs.org/mdx-bundler (fetched 2026-08-29T10:51:13.029081+00:00, sha e6913c0d6ee7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
