declarative / framework

OpenUI

A streaming-first Generative UI framework built around a compact language, React runtime, component libraries, prompt generation, and chat surfaces.

Maturityactive
Source authorityprimary
LicenseMIT

What it solves

OpenUI combines OpenUI Lang, a streaming parser and renderer, component definitions, prompt generation, prebuilt libraries and chat interfaces. Its compact language is designed to reduce the tokens required to express a generated interface.

Where it sits

OpenUI is a Generative UI framework. It can consume agent output carried by an interaction layer such as AG-UI, but does not replace the broader run lifecycle, state and tool event contract.

Trade-off

The integrated path is productive for React teams, but adopting its language and runtime is a stronger framework commitment than adopting a transport-only protocol. Benchmark token claims against your own component catalog and model behavior.

Security boundary

Keep the allowed component library narrow, validate Zod contracts, restrict actions and URLs, and never treat generated UI syntax as executable application code.

Minimal example

model stream → OpenUI Lang parser → registered component tree → React runtime

Begin with one display-only card and a strict component schema before introducing interactive actions.