Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A lightweight MDX documentation builder for React and Next.js with auto-generated navigation and Prism syntax highlighting.
Aria-Docs is an open-source documentation-building library for React and Next.js that renders MDX content into structured documentation sites with minimal configuration.
Aria-Docs is a documentation-building library for React and Next.js that turns a folder of MDX files into a navigable documentation site. It takes a content directory plus a _meta.json file as input and outputs a React-based UI with auto-generated sidebar navigation. The project is maintained by Nisab Mohd under the MIT license and currently has 412 stars on GitHub. It is designed for speed and simplicity, supporting React 19 and Next.js 15 server components.
_meta.json files, eliminating manual menu setup.rehypePrism plugin colors code blocks for supported languages.remarkGfm, rehypeSlug, rehypeAutolinkHeadings, rehypeCodeTitles, and rehypePrism are exported from @ariadocs/react/plugins._meta.json.createDocs function and React Server Components.@ariadocs/react with pnpm add @ariadocs/react, point it at a contents/docs directory, and get a working docs layout.remarkGfm for tables and strikethrough, and rehypeCodeTitles to label code blocks.rehypeSlug and rehypeAutolinkHeadings so every heading automatically gets an anchor link.pnpm --filter web dev to run the documentation site included in the repository.The core is the createDocs function, which receives a content directory, an array of remark plugins, and an array of rehype plugins. It processes every MDX file in that directory through the plugin pipeline and returns a docs object ready to render in React. The quick start example uses remarkGfm plus rehypeSlug, rehypeAutolinkHeadings, rehypeCodeTitles, and rehypePrism, producing the final HTML and navigation structure.
Yes, Aria-Docs is open source under the MIT license, so it can be freely used in personal and commercial projects.
It is designed for React and Next.js with explicit support for React Server Components and Next.js 15. Repository topics also reference TanStack Start and React Router as compatible environments.
Yes, it includes the rehypePrism plugin based on Prism.js, and you can add code block titles with rehypeCodeTitles.
Install the package with pnpm add @ariadocs/react, then import createDocs and the plugin helpers from @ariadocs/react/plugins.
The project is maintained by Nisab Mohd, and it welcomes community contributions, as indicated by the contributions-welcome topic on GitHub.
