There is a second place where agents improvise, and it is the one users actually see. Ask for a dashboard and the model writes HTML and CSS from nothing: a table it invented, greys it picked by mood, markup burning a third of the output tokens. Every run is a new dialect, and every review starts from zero. OpenUI is a bet that the screen deserves a contract of its own: less a design system, more a language.
OpenUI, MIT-licensed by Thesys and past eleven thousand stars on GitHub, is an open standard for generative UI built around OpenUI Lang: a compact, streaming-first language for model-generated interfaces. The loop is short: you define a component library, the kit generates the system prompt from it, the model streams components instead of markup, and a renderer draws them progressively as tokens arrive. Components are typed contracts — Zod schemas in, valid UI out — and the model can only compose what you allow it to compose.
The economics are the pitch. In the repo’s benchmark, seven UI scenarios total 4,800 tokens in OpenUI Lang against 10,180 and 9,948 for the two JSON-based formats it compares with; roughly half, in the scenario that matters most to a chat product paying per component. The same table puts streaming latency at 4.9 seconds against 14.2 at sixty tokens per second. Those numbers are the project’s own, methodology included in benchmarks/, and the honest reading is that the format wins by not repeating what JSON repeats: no keys on every node, no structural ceremony.
Under the hood it is a small stack rather than a single library: a framework-agnostic core with first-party runtimes for React, Vue, Svelte and Angular; prebuilt chat surfaces and component libraries on the React side; a browser bundle for no-build embeds; React Email for generated mail; LangChain and AG-UI integrations; an A2UI client; and a CLI that scaffolds a working app in one command. There is even an Agent Skill, so the coding agent you already use can help you build the thing your other agent renders.
npx @openuidev/cli@latest create --name genui-chat-app
npx skills add thesysdev/skills --skill openui
Which is where the standard argument starts to matter. The agent stack is slowly filling with written contracts: MCP for tools, AGENTS.md for instructions, OpenSpec for intent. OpenUI proposes the missing one — the screen. Pair them and the model has two written targets before it writes a line: the spec says what must be true, the component library says what the interface may be built from, and the output can be reviewed against both. The pairing is conceptual, not wired: nothing in either project knows about the other, and you are the integration.
flowchart LR S[Spec: what must be true] --> A[Agent] C[Component library] --> P[System prompt from components] P --> A A --> L[OpenUI Lang stream] L --> R[Renderer] R --> U[Live UI]
The limits deserve the same honesty. «Standard» is the ambition, not the status: this is a company-led MIT repo, early in adoption, and its field already has rivals — Vercel’s json-render, Google’s A2UI, CopilotKit’s OpenGenUI — with a comparison table written by one of the contestants. Controlled rendering is a ceiling as much as a guarantee: a thin component library is a thin product, no matter how well the model obeys. The React path is the mature one; Vue, Svelte and Angular runtimes are younger. And none of it rescues a team without specs: a beautiful screen built on a wrong plan is still wrong, just faster.
Still, the direction is the interesting part. A shared format is valuable not because one company wins, but because the model stops redrawing the interface from scratch on every run: the screen becomes a contract it can read, and a vocabulary it can be reviewed against. With a spec on one side and a component language on the other, drift is visible at both ends — behaviour and form. That is two contracts more than most teams have today.
Fuentes
- thesysdev/openui (repo)
- www.openui.com (web)

Deja una respuesta