A high-performance streaming Markdown/MDX engine built with Rust, designed for modern web frameworks.
- Rust-powered performance - Native speed with NAPI bindings for Node.js
- Streaming architecture - Process large files efficiently
- WASM support - Run in browsers and edge runtimes
- Astro integration - First-class support for Starlight projects
- MDX compatible - Full JSX component support
| Package | Description |
|---|---|
xmdx |
Core JavaScript API with Node.js and browser support |
astro-xmdx |
Astro integration with presets and plugins |
@xmdx/napi |
Native Node.js bindings (NAPI-RS) |
xmdx-wasm |
WebAssembly build for browsers |
npm install xmdximport { compile } from 'xmdx';
const html = await compile('# Hello, world!');npm install astro-xmdximport { defineConfig } from 'astro/config';
import xmdx from 'astro-xmdx';
export default defineConfig({
integrations: [xmdx()],
});examples/starlight: Starlight docs site usingastro-xmdxwithstarlightPreset().
| Platform | Architecture |
|---|---|
| macOS | x64, ARM64 |
| Windows | x64 |
| Linux (glibc) | x64, ARM64 |
| Linux (musl) | x64, ARM64 |
| Browser/Edge | WebAssembly |
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm testMIT