MDMA turns Markdown into interactive documents using fenced component blocks. LLMs that follow the spec can emit forms, tables, and approval steps your app renders with a predictable schema.
Overview
MDMA (Markdown Document with Mounted Applications) extends ordinary Markdown so a file can act like a small interactive application. Interactive pieces live in fenced mdma code blocks with typed definitions for forms, buttons, tables, approval gates, webhooks, and related UI patterns.
When a language model is guided with the MDMA authoring prompts, replies can include those structured components instead of plain prose. End users fill fields, approve steps, or review tabular data inline, while the host application renders and processes events against known schemas rather than parsing free-form text.
The ecosystem ships as npm packages: a remark parser builds an AST, a headless runtime manages bindings and actions (including audit logging with PII redaction), validators check documents, and renderers cover React, Vue, vanilla DOM, and React Native with shared theming tokens. A prompt pack supplies model-tuned system prompts for generating valid MDMA markdown, and a CLI supports interactive prompt building and validation.
Developers wire parsing, the document store, custom data sources, and a renderer into their own frontend. Optional default styles target mdma CSS classes, or teams can supply custom themes. A dedicated authoring model is published separately for Hugging Face users who want generation tuned to the DSL.
Key features
- Fenced mdma blocks for typed interactive components
- Remark-based Markdown-to-AST parsing
- Reactive document store with action dispatch
- React, Vue, vanilla, and React Native renderers
- Model-specific LLM author prompt variants
- Static document validation package
- Custom data sources for tables and forms
- CLI for prompts and document checks
Use cases
- Actionable AI chat with inline forms
- Patient or intake flows in conversational UIs
- Bug reporting with structured LLM output
- Operational incident tables backed by APIs
- Approval gates inside generated documents