Loading...
Loading...
Build generative UI apps with OpenUI and OpenUI Lang — the token-efficient open standard for LLM-generated interfaces. Use when mentioning OpenUI, @openuidev, generative UI, streaming UI from LLMs, component libraries for AI, or replacing json-render/A2UI. Covers scaffolding, defineComponent, system prompts, the Renderer, and debugging OpenUI Lang output.
npx skill4agent add thesysdev/openui openuidefineComponentlibrary.prompt()<Renderer />Component Library → System Prompt → LLM → OpenUI Lang Stream → Parser → Renderer → Live UIidentifier = Expressionrootroot = Stack([header, stats])
header = TextContent("Q4 Dashboard", "large-heavy")
stats = Grid([s1, s2])
s1 = StatCard("Revenue", "$1.2M", "up")
s2 = StatCard("Users", "450k", "flat")https://www.openui.com/llms-full.txthttps://www.openui.com/llms.txt| Topic | URL |
|---|---|
| Quickstart & scaffolding | https://www.openui.com/docs/openui-lang/quickstart |
| Defining components | https://www.openui.com/docs/openui-lang/defining-components |
| System prompts | https://www.openui.com/docs/openui-lang/system-prompts |
| Renderer | https://www.openui.com/docs/openui-lang/renderer |
| Language specification | https://www.openui.com/docs/openui-lang/specification |
| Interactivity | https://www.openui.com/docs/openui-lang/interactivity |
| Built-in component library | https://www.openui.com/docs/openui-lang/standard-library |
| Package | Purpose | When to use |
|---|---|---|
| Core: defineComponent, createLibrary, Renderer, parser | Every OpenUI project |
| Chat state: ChatProvider, hooks, streaming adapters (OpenAI, AG-UI) | Custom chat UI |
| Prebuilt layouts (Copilot, FullScreen, BottomTray) + built-in libraries | Fast path to working chat |
npx @openuidev/cli@latest create --name my-genui-app
cd my-genui-app
echo "OPENAI_API_KEY=sk-your-key-here" > .env
npm run devlibrary.prompt()<Renderer />