unified is the JavaScript core that parses, transforms, and serializes content with a plugin pipeline behind remark, rehype, and retext.
Overview
unified is the central package in the unified collective, a family of open JavaScript tools that treat content as abstract syntax trees. Plugins inspect or modify trees while parsers and compilers move between plain text and structured data.
The `processor` API chains plugins for parse, run, and stringify phases, or runs them together via `process`. Ecosystem projects such as remark for Markdown, rehype for HTML, and retext for natural language build on this interface, and they can be composed in one pipeline.
The package is ESM-only on modern Node, with usage examples for Deno and browsers through esm.sh. Large downstream adopters include MDX, Gatsby, Docusaurus, Prettier, and Node.js documentation tooling. Hundreds of sibling packages provide utilities for visiting, transforming, and serializing specific node types.
Maintainers fund the collective through sponsorships while publishing guides on traversal, node lookup, and integrating markdown features such as GFM tables through plugins.
Key features
- Plugin-based content processor
- Parse transform stringify pipeline
- Foundation for remark and rehype
- Composable ecosystem of AST utilities
- ESM-first Node 16 plus support
- Extensive documentation and recipes
- Used across major static site stacks
- Open collective maintenance model
Use cases
- Building custom Markdown to HTML pipelines
- Linting or transforming documentation ASTs
- Powering site generators with plugins
- Creating domain-specific content compilers
- Integrating syntax tools in Node services