mdxe
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

mdxe - Zero-Config Executable MDX

npm version License: MIT

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.

Features

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)

Installation

pnpm add mdxe

Usage

CLI Mode (In Development)

# Process single file
mdxe myfile.mdx

# Process directory
mdxe ./content

# Watch mode
mdxe --watch

MDX Exports (In Development)

export const layout = './layouts/BlogPost'
export const components = {
  Button: './components/Button',
}

# My Content

Configuration

Configure via package.json:

{
  "mdxe": {
    "layouts": "./layouts",
    "components": "./components"
  }
}

Or mdxe.config.js:

export default {
  layouts: './layouts',
  components: './components',
}

AI Generation (Planned)

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.

Development

# 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

License

MIT © AI Primitives

Package Sidebar

Install

npm i mdxe

Homepage

mdx.org.ai

Weekly Downloads

3

Version

1.2.0

License

MIT

Unpacked Size

63.3 kB

Total Files

40

Last publish

Collaborators

  • nathanclevenger