OpenUI defines OpenUI Lang for structured, streamable model output and ships parsers, prompts, and renderers for React, Vue, Svelte, and Angular.
Overview
OpenUI centers on OpenUI Lang, a compact format for model-generated user interface that streams incrementally instead of relying on large JSON payloads. Developers declare allowed components, generate system prompts from that library, stream model output to clients, and render progressively with framework-specific runtimes.
Packages cover language parsing and prompt generation, React chat layouts and headless adapters, Vue, Svelte, and Angular bindings, LangChain integration, browser bundles for embeds, email generation, assistant-ui tooling, and server utilities. Component props can be constrained with schema tooling such as Zod.
Built-in libraries supply charts, forms, tables, and layout primitives, and documentation describes token-efficiency benchmarks versus JSON-based UI formats. Tooling includes a CLI to scaffold projects and export prompts or schemas from a component definition.
Optional OpenUI Gateway and observability packages target production repair of invalid streamed output. The stack is meant to attach to existing agent codebases using common LLM and agent frameworks without replacing the whole application.
Key features
- OpenUI Lang streaming format
- Library-driven prompt generation
- React, Vue, Svelte, Angular renderers
- Prebuilt chat UI components
- LangChain and AG-UI streaming helpers
- Headless chat state adapters
- CLI project scaffolding
- Browser bundle for script embeds
Use cases
- Assistant UIs with charts and forms
- Copilot-style product surfaces
- Agent tools that return structured UI
- Email layout generation from models
- CDN or iframe embedded renderers