Zero-config MDX processor with standalone CLI mode and MDX-LD support. For Next.js integration, please use next-mdxld instead. Currently in active development.
Current and Planned Features:
- 🚀 Zero-config MDX processing (in development)
- 📦 Layout and component exports (in development)
- 🎨 Default Tailwind Typography styling (in development)
- 🌐 Remote component imports (esm.sh) (in development)
- 🤖 AI-powered content generation (planned)
pnpm add mdxe
# Process single file
mdxe myfile.mdx
# Process directory
mdxe ./content
# Watch mode
mdxe --watch
export const layout = './layouts/BlogPost'
export const components = {
Button: './components/Button',
}
# My Content
Configure via package.json:
{
"mdxe": {
"layouts": "./layouts",
"components": "./components"
}
}
Or mdxe.config.js:
export default {
layouts: './layouts',
components: './components',
}
Generate components, pages, and complete sites using AI:
import { generateMDX } from 'mdxe/ai'
const stream = await generateMDX({
type: 'https://mdx.org.ai/Component',
component: 'Button',
content: 'Primary action button',
})
// Note: ShadCN and other UI component library integrations are planned for future releases.
See AI Generation for complete documentation.
# Remove everything that could cause issues
rm -rf dist node_modules
pnpm unlink --global
# Fresh install
pnpm install
# Build
pnpm build
# Link globally
pnpm link --global
# Test
mdxe --version
MIT © AI Primitives