NewWe're introducing OpenUI Lang v0.5
NewIntroducing OpenUI Lang v0.5

OpenUI

The Open Standard for Generative UI

Try Playground
NewWe're introducing OpenUI Lang v0.5
NewIntroducing OpenUI Lang v0.5

OpenUI

The Open Standard for Generative UI

Try DemoStar us on Github
OpenUI mobile hero preview
OpenUI desktop hero preview

An open source toolkit to make your
AI apps respond with your UI.

1

You define your library

Register components with defineComponent and createLibrary.

import { z } from "zod"
import { Carousel, CarouselCard } from "components/Carousel"
import { defineComponent, createLibrary } from "@openuidev/react-lang"
const CarouselCard = defineComponent({
name: "CarouselCard",
props: z.object({
title: z.string(),
description: z.string().optional(),
imageUrl: z.string().url(),
ctaLabel: z.string(),
}),
component: ({ props }) => <CarouselCard {...props} />,
})
const Carousel = defineComponent({
name: "Carousel",
props: z.object({
cards: z.array(CarouselCard.ref),
}),
component: ({ props }) => <Carousel {...props} />,
})
export const library = createLibrary({
root: "Carousel",
components: [Carousel, CarouselCard],
})

Free Wifi

Hotel Plaza Athenee

Haute couture suites; courtyard dining; Dior spa; near Champs-Élysées.

Book

2

OpenUI generates system prompt

3

LLM responds in OpenUI Lang

4

Renderer parses and renders UI

Register components with defineComponent and createLibrary.

import { z } from "zod"
import { Carousel, CarouselCard } from "components/Carousel"
import { defineComponent, createLibrary } from "@openuidev/react-lang"
const CarouselCard = defineComponent({
name: "CarouselCard",
props: z.object({
title: z.string(),
description: z.string().optional(),
imageUrl: z.string().url(),
ctaLabel: z.string(),
}),
component: ({ props }) => <CarouselCard {...props} />,
})
const Carousel = defineComponent({
name: "Carousel",
props: z.object({
cards: z.array(CarouselCard.ref),
}),
component: ({ props }) => <Carousel {...props} />,
})
export const library = createLibrary({
root: "Carousel",
components: [Carousel, CarouselCard],
})

Free Wifi

Hotel Plaza Athenee

Haute couture suites; courtyard dining; Dior spa; near Champs-Élysées.

Book

Endless possibilities. Built in realtime.

Conversational Apps illustration

Conversational Apps

Dashboards & Web-apps illustration

Dashboards & Web-apps

Mobile Apps illustration

Mobile Apps

Bottom trays illustration

Bottom trays

Conversational Apps illustration

Conversational Apps

Dashboards & Web-apps illustration

Dashboards & Web-apps

Mobile Apps illustration

Mobile Apps

Bottom trays illustration

Bottom trays

Conversational Apps illustration

Conversational Apps

Dashboards & Web-apps illustration

Dashboards & Web-apps

Mobile Apps illustration

Mobile Apps

Bottom trays illustration

Bottom trays

Conversational Apps illustration

Conversational Apps

Dashboards & Web-apps illustration

Dashboards & Web-apps

Mobile Apps illustration

Mobile Apps

Bottom trays illustration

Bottom trays

Works effortlessly
with your favorite stack.

All LLMs
OpenAI
Anthropic
Gemini
Mistral
xAI
DeepSeek
Any UI Library
OpenUI Design system
ShadCN
Material Design system
DaisyUI
Base UI
Any Framework
Vercel AI SDK
LangChain
CrewAI
OpenAI Agents SDK
Anthropic Agents SDK
Performance Optimized
3x faster rendering than json-render
Token efficient
Up to 67.1% lesser tokens than json-render
Live data
Query your tools and MCP servers at runtime
Works across platforms
React, React Native, Vue, etc
Native Streaming
UI renders in real time
Interactive
Reactive state, inputs, and tool-connected actions
Safe by Default
No arbitrary code execution
Performance Optimized3x faster rendering than json-render
Token efficientUp to 67.1% lesser tokens than json-render
Live dataQuery your tools and MCP servers at runtime
Works across platformsReact, React Native, Vue, etc
Native StreamingUI renders in real time
InteractiveReactive state, inputs, and tool-connected actions
Safe by DefaultNo arbitrary code execution