remark

A plugin-powered markdown processor that parses, transforms, and serializes markdown on top of unified.

Library
npm
v15.0.1
9,025 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
66 /100 Good
Development Activity 48
Maintenance 56
Community 60
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
90 /100 Excellent
Architecture 88
Code Quality 92
Innovation 90
Learning Curve 80

remark is a markdown processor built on the unified collective. It parses markdown into a structured mdast syntax tree, lets a pipeline of plugins inspect and transform that tree, and serializes it back to markdown. The core remark package is a thin, frozen preset that wires remark-parse and remark-stringify onto a unified processor, so you get a ready-to-use markdown-in, markdown-out pipeline.

Because everything flows through the shared unist/mdast tree, remark powers everything from linting and formatting to content migrations and static-site generation. Its plugin ecosystem is one of the largest in the JavaScript world, covering GitHub Flavored Markdown, frontmatter, MDX, syntax tooling, and more.

What You Get

  • A ready-to-use markdown processor exposing the single remark() factory that returns a frozen unified processor.
  • Access to the mdast (markdown AST) representation for programmatic inspection and transformation of documents.
  • A vast plugin ecosystem for GFM, frontmatter, MDX, linting, formatting, and custom transforms.
  • First-class TypeScript types and ESM support with 100% type coverage enforced in CI.

Common Use Cases

  • Programmatically formatting and normalizing markdown files across a repository or docs site.
  • Linting markdown for style and consistency as part of a CI pipeline or editor integration.
  • Transforming markdown content during static-site or content-pipeline builds.
  • Converting between markdown flavors or extracting structured data from markdown documents.

Under The Hood

Architecture

remark’s core package (packages/remark/index.js) is deliberately tiny: it imports remark-parse and remark-stringify, chains them onto a unified() processor with .use(...).use(...), and calls .freeze() to lock the preset. All real work happens in the unified ecosystem — remark-parse turns markdown text into an mdast tree via micromark, plugins registered by consumers walk and mutate that tree, and remark-stringify serializes the tree back to markdown. This tree-in-the-middle design is what lets an entire plugin ecosystem interoperate on a single shared data structure (mdast/unist).

Tech Stack

The library is pure ESM JavaScript with hand-written TypeScript declarations (index.d.ts). Its runtime dependencies are unified, remark-parse, remark-stringify, and @types/mdast. The monorepo is a pnpm/npm workspace containing remark, remark-parse, remark-stringify, and remark-cli. Tooling includes TypeScript for type-checking and declaration builds, xo + prettier for linting/formatting, and c8 for coverage.

Code Quality

Quality standards are unusually high: the project enforces typeCoverage.atLeast: 100 in strict mode, runs xo and prettier, and gates on c8 --100 coverage. Tests live in a 355-line test.js using Node’s built-in node:test runner and assert/strict, exercising the public API surface, settings handling, and the CLI end to end. The public surface of the core package is a single named export, keeping the maintenance burden minimal.

API Design The developer experience is excellent for its scope: remark() returns a standard unified processor, so the API is remark().use(plugin).process(file) with sync (processSync) and async variants. Naming is consistent with the wider unified/remark ecosystem, documentation is extensive (a thorough readme plus getting-started, plugins, and products guides), and getting started requires almost no boilerplate. The main conceptual cost is learning the unified processor model and the mdast tree, which the docs address directly.

Used by 66 apps in this directory

TypeScript
99%
Other

byterover-cli

AI Agents · AI Code Assistants · AI Memory

4,948

A portable memory layer for AI coding agents — curate structured project knowledge into a version-controlled context tree that syncs across tools, machines, and teammates.

View details
49
Repo Health
83
Technical
70
Dependency
Built with
TypeScript 99%
Updated 4 months ago
TypeScript
99%
AGPL 3.0

Cherry Studio

AI Assistants

52,928

All-in-one AI desktop client with 300+ assistants and multi-model support

View details
89
Repo Health
84
Technical
70
Dependency
Built with
TypeScript 99%
Updated 6 days ago
TypeScript
99%
AGPL 3.0

Cherry Studio

AI Assistants

52,928

All-in-one AI desktop client with 300+ assistants and multi-model support

View details
89
Repo Health
84
Technical
70
Dependency
Built with
TypeScript 99%
Updated 6 days ago
TypeScript
59%
Apache 2.0

claude-mem

AI Agents · AI Development · AI Memory

102,620

Give your AI coding agents persistent memory — claude-mem captures everything that happens during sessions, compresses it with AI, and surfaces the right context in every future session automatically.

View details
86
Repo Health
82
Technical
77
Dependency
Built with
TypeScript 59%
JavaScript 32%
Updated 6 days ago
TypeScript
98%
Apache 2.0

Cline

AI Code Assistants

70,793

An open-source AI coding agent that lives in your editor and terminal — reads and edits your codebase, runs commands, browses the web, and requires human approval for every action by default.

View details
91
Repo Health
74
Technical
65
Dependency
Built with
TypeScript 98%
Updated 6 days ago
TypeScript
99%
Apache 2.0

Codebuff

AI Code Assistants

13,713

An open-source AI coding assistant that coordinates specialized agents to edit your codebase from natural language — including Freebuff, a free, ad-supported version powered entirely by open-source models like DeepSeek and Kimi.

View details
86
Repo Health
71
Technical
67
Dependency
Built with
TypeScript 99%
Updated 6 days ago
TypeScript
82%
MIT

evidence

Analytics · Data Engineering

7,052

Turn SQL queries and markdown files into polished, interactive data apps and business intelligence reports — no drag-and-drop, no GUI, just code.

View details
91
Repo Health
79
Technical
64
Dependency
Built with
TypeScript 82%
Svelte 17%
Updated 1 weeks ago
TypeScript
91%
Other

FastGPT

AI Agents · AI Development

29,900

Build, debug, and deploy knowledge-based AI agents with a visual workflow editor, RAG retrieval, and support for any OpenAI-compatible LLM.

View details
93
Repo Health
84
Technical
66
Dependency
Built with
TypeScript 91%
Updated 6 days ago
TypeScript
91%
Other

FastGPT

AI Agents · AI Development

29,900

Build, debug, and deploy knowledge-based AI agents with a visual workflow editor, RAG retrieval, and support for any OpenAI-compatible LLM.

View details
93
Repo Health
84
Technical
66
Dependency
Built with
TypeScript 91%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers