Blazing fast Markdown compiler

High-performance Markdown / MDX compiler built with Rust.
Up to 25x faster than unified.

$npm install @unifast/node

Benchmark

Markdown to HTML compilation time (ms). Lower is better.

120 lines
0.18ms
4.78ms
27x
560 lines
0.41ms
11.22ms
27x
2,000 lines
1.2ms
31.51ms
26x
unifastunified + remark + rehype

The APIs you need. Built in.

import { compile } from "@unifast/node";

const result = compile("# Hello\n\nThis is **unifast**.");

console.log(result.output);
// <h1 id="hello">Hello</h1>
// <p>This is <strong>unifast</strong>.</p>

Features

🦀Rust-Powered

Core compiler written in Rust with zero-copy parsing and arena allocation.

🔋Batteries Included

20+ built-in plugins: GFM, math, emoji, syntax highlighting, frontmatter, and more.

🌈Dual Highlight Engines

Tree-sitter and syntect built in. Up to 8x faster than rehype-highlight.

⚛️MDX Support

First-class MDX compilation with JSX and expression support.

Sponsors