-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
33 lines (22 loc) · 1.24 KB
/
llms.txt
File metadata and controls
33 lines (22 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# mdocUI
> Generative UI library for LLMs using Markdoc {% %} tag syntax inline with markdown prose.
## What it does
mdocUI lets LLMs write natural markdown AND drop interactive UI components (charts, buttons, forms, tables, cards) in the same stream. The parser separates prose from component tags as tokens arrive. No custom DSL, no JSON blocks, no JSX.
## Packages
- @mdocui/core: Streaming parser, component registry, Zod validation, system prompt generator
- @mdocui/react: React renderer, 24 theme-neutral components, useRenderer hook
- @mdocui/cli: Scaffold projects, generate system prompts, preview
## How to use
1. Install: pnpm add @mdocui/core @mdocui/react
2. Generate system prompt: generatePrompt(registry, { preamble, groups, rules, examples })
3. Pass system prompt to any LLM (Anthropic, OpenAI, Google, etc.)
4. Render streamed output: <Renderer nodes={nodes} components={defaultComponents} />
## Syntax
Self-closing: {% tagname attr="value" /%}
With body: {% tagname %} content {% /tagname %}
## Links
- GitHub: https://github.com/mdocui/mdocui
- npm: https://www.npmjs.com/org/mdocui
- Documentation: https://mdocui.github.io
- Examples: https://github.com/mdocui/examples
- Skill file: https://github.com/mdocui/mdocui/blob/main/SKILL.md