Home

MDXE Documentation

npm versionLicense: MIT

Welcome to MDXe, a powerful CLI and SDK for zero-config MDX processing.

# Install globally (recommended)
npm install -g mdxe
 
# Or use with npx
npx mdxe build docs/*.mdx --out dist/
 
# Process MDX files in watch mode
mdxe watch content/ --out public/

Features

  • 🚀 Command-line interface for quick MDX processing
  • ⚡️ Zero-config file watching and hot reload
  • 📦 Global installation or npx usage
  • 🎨 Default Tailwind Typography styling
  • 🔄 Automatic metadata generation
  • 📝 Next.js integration (optional)
  • 🌐 Remote component imports (esm.sh)

Next.js Integration

MDXE also works as a Next.js plugin:

// next.config.js
import { withMDXE } from 'mdxe/next'
export default withMDXE({
  // your next.js config
})

Quick Links