
▲ 0 r/reactjs
mdocUI — open-source generative UI for LLMs using Markdoc {% %} tags (streaming-first, 24 React components)
I built mdocUI to solve a problem I kept hitting: LLMs can write markdown, but rendering interactive components (charts, forms, tables) mid-stream is fragile with JSON or JSX.
mdocUI uses Markdoc {% %} tags inline with markdown. The streaming parser processes tokens character-by-character — no buffering, no regex.
What you get:
- 24 theme-neutral React components (charts, tables, forms, cards, tabs)
- Single onAction callback for all interactivity
- classNames prop for Tailwind/custom styling
- Swap any component with your own (shadcn, Radix, etc.)
- useRenderer hook for streaming state
Demo: https://mdocui.vercel.app GitHub: https://github.com/mdocui/mdocui
Alpha (0.6.x) — feedback welcome. What components would you want built-in?
u/Plastic_Charge4340 — 9 hours ago