mdx-a2ui: Safely Convert MDX to A2UI JSON for Enhanced Data Models
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
mdx-a2ui is an experimental project designed to convert MDX content, which combines prose and a closed component catalog, into A2UI JSON. This tool parses JSX without evaluation, ensuring a secure conversion process. It aims to leverage MDX for authoring while benefiting from A2UI's structured data model and validation capabilities.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
mdx-a2ui is an experimental project by cixzhang that offers a unique approach to converting MDX content into A2UI JSON. This tool focuses on parsing MDX, including its JSX components, without ever evaluating the code, thus enhancing security. It bridges the gap between MDX as an authoring format and A2UI as a robust data model.
The intended flow is:
agent writes MDX ? repair (if still streaming) ? convert ? A2UI JSON ? any A2UI renderer
Why Use and Benefits
The project addresses the distinct strengths of MDX and A2UI. MDX provides a superior authoring experience for an agent, allowing prose to remain prose while interactive elements become components. It is significantly denser than the A2UI it produces, which reduces context costs for models on every replay.
Conversely, A2UI excels as a data model, offering a schema, a validator, renderers for several design systems, and clients that are not a web browser. By converting instead of compiling, mdx-a2ui allows users to benefit from both formats securely. An MDX document is code, and evaluate() runs it, which is not safe. This library converts instead, accepting attribute expressions only if they parse as a JSON literal, ensuring no evaluator is in the path to abuse.
Installation
As an experimental project, mdx-a2ui is not yet published to npm. Installation details are not available, and it is not recommended for production use at this stage. The project status indicates that nothing is stable, and all exports carry an experimental_ prefix.
Examples
Given its experimental status and lack of an npm package, specific usage examples are not provided for direct implementation. Developers interested in contributing or exploring the codebase can refer to the GitHub repository for the latest updates.
Links
- GitHub Repository: cixzhang/mdx-a2ui
- License: MIT License
Related repositories
Similar repositories that may be relevant next.

fumadocs: The Beautiful and Flexible React.js Documentation Framework
March 8, 2026
fumadocs is a modern and highly flexible React.js framework designed for building stunning documentation websites. It offers official support for popular environments like Next.js and Vite, making it a versatile choice for developers. With its focus on beauty and adaptability, fumadocs streamlines the process of creating comprehensive and user-friendly documentation.

Mintlify Docs, Official Documentation for Mintlify Projects
November 27, 2025
Mintlify Docs is the official documentation repository for Mintlify projects, providing comprehensive guides and resources. It leverages MDX for rich content and is designed to be easily previewed locally using the Mint CLI. This repository serves as a central hub for understanding and contributing to Mintlify's ecosystem.
Source repository
Open the original repository on GitHub.