AI Compare
​
​
ToolsArticlesServices
Best for
    All tools

    Sales

    AI tools for finding leads, qualifying them, preparing quotes, following up and keeping the CRM up to date.

    Marketing

    AI tools for content, social media, images, video, SEO and campaigns.

    Customer service

    AI tools for answering customer emails, chats and calls, handling requests and escalating the hard cases.

    Operations

    AI tools for running the daily work: workflows, scheduling, projects, purchasing and delivery.

    Finance

    AI tools for invoices, bookkeeping, reconciliation, spreadsheets and financial reporting.

    Management & Admin

    AI tools for owners, managers and office staff: planning, reports, documents, meetings, scheduling and everyday admin.

    HR

    AI tools for hiring, screening candidates, onboarding, training and answering employee questions.

    Legal & Compliance

    AI tools for reviewing contracts, tracking deadlines and preparing compliance work for a qualified person to check.

    IT & Development

    AI tools for developers and IT teams: coding, AI models, agents, infrastructure and integrations.

Find AI tools for your team
AllAssistantsWriting & DocsImagesVideoAudioAI AgentsAutomationCode
← Back to tools

•

2024-03-17

openui logo

openui

Not rated yet

22.5K GitHub stars

Type:

Tool

Platforms:

Github

Task:

Chat with AIWrite codeRun AI agentsEngineer promptsDesign user interfaces

Best for:

IT & Development
Visit websiteView on GitHub

Pricing


Pricing information has not been added yet.

Overview

OpenUI is an open-source framework and language for generative user interfaces. Its core, OpenUI Lang, gives language models a compact streaming format for describing structured UI so applications can render components progressively instead of treating model output as plain text or verbose JSON.

The project provides a full-stack path from component definitions and generated model instructions to streaming parsing and rendering. It includes official React support, built-in component libraries for elements such as charts, forms, tables, and layouts, chat-oriented starter interfaces, and integrations for agent frameworks and other frontend ecosystems.

OpenUI is intended for teams building assistants, copilots, and applications where the model should generate interactive interfaces as part of its response. By constraining generation to an allowed component library and using a token-efficient UI language, it aims to make generative UI more predictable, portable, and economical.

README

OpenUI - The Open Standard for Generative UI

OpenUI - The Open Standard for Generative UI

Build License: MIT Discord

thesysdev%2Fopenui | Trendshift

OpenUI is a full-stack, renderer-agnostic Generative UI framework built around a compact, streaming-first language. It offers official React support with built-in component libraries and ready-to-use chat interfaces, plus community-supported integrations for other frameworks. OpenUI Lang uses up to 67% fewer tokens than JSON.

Docs · Playground · Discord · Contributing

Important: OpenUI has no official cryptocurrency, token, or coin. Any asset using the OpenUI name is unaffiliated with this project and is not endorsed by its maintainers.


What is OpenUI

OpenUI Demo

At the center of OpenUI is OpenUI Lang: a compact, streaming-first language for model-generated UI. Instead of treating model output as only text, OpenUI lets you define components, generate prompt instructions from that component library, and render structured UI as the model streams.

Core capabilities:

  • OpenUI Lang - A compact language for structured UI generation designed for streaming output.
  • Built-in component libraries - Charts, forms, tables, layouts, and more, ready to use or extend.
  • Prompt generation from your component library - Generate model instructions directly from the components you allow.
  • Streaming renderer - Parse and render model output progressively in React as tokens arrive.
  • Chat and app surfaces - Use the same foundation for assistants, copilots, and broader interactive product flows.

Quick Start

npx @openuidev/cli@latest create --name genui-chat-app
cd genui-chat-app
echo "OPENAI_API_KEY=sk-your-key-here" > .env
npm run dev

This is the fastest way to start with OpenUI. The scaffolded app gives you an end-to-end starting point with streaming, built-in UI, and OpenUI Lang support.

What this gives you:

  • OpenUI Lang support - Start with structured UI generation built into the app flow.
  • Library-driven prompts - Generate instructions from your allowed component set.
  • Streaming support - Update the UI progressively as output arrives.
  • Working app foundation - Start from a ready-to-run example instead of wiring everything manually.

How it works

Your components define what the model can generate.

flowchart LR
    A["Component Library"] --> B["System Prompt"]
    B --> C["LLM"]
    C --> D["OpenUI Lang Stream"]
    D --> E["Renderer"]
    E --> F["Live UI"]
  1. Define or reuse a component library.
  2. Generate a system prompt from that library.
  3. Send that prompt to your model.
  4. Stream OpenUI Lang output back to the client.
  5. Render the output progressively with Renderer.

Try it yourself in the Playground: generate UI live with the default component library.

Packages

PackageBest forDescription
@openuidev/lang-coreFramework-agnostic parsing and prompt generationCore parser, prompt-generation, runtime-evaluation, and type layer with no React, Vue, or Svelte dependency
@openuidev/langchainLangChain and LangGraph agentsAgent transformer and server helpers that stream OpenUI through AG-UI
@openuidev/react-langReact rendering runtimesDefine component libraries, generate prompts, and render streamed OpenUI Lang in React
@openuidev/react-headlessBring-your-own React chat UIHeadless chat state, streaming adapters, and message format converters
@openuidev/react-uiFastest path to a full React chat experiencePrebuilt chat layouts, standalone UI primitives, and two built-in component libraries
@openuidev/react-emailEmail generation and HTML exportReact Email component definitions plus prompt options for model-generated emails
@openuidev/vue-langVue integrationsVue 3 bindings for defining model-renderable components and rendering streamed OpenUI Lang
@openuidev/svelte-langSvelte integrationsSvelte 5 bindings for defining model-renderable components and rendering streamed OpenUI Lang
@openuidev/browser-bundleCDN, iframe, and no-build embedsPrebuilt browser bundle that ships the renderer, UI library, React, and styles as script + stylesheet assets
@openuidev/cliProject scaffolding and prompt generationCLI for creating new apps and generating system prompts or JSON schema from a library definition
@openuidev/openclaw-os-pluginOpenClaw workspacesOpenClaw OS plugin for serving OpenUI-powered OpenClaw workspaces

Common starting points:

# React app with OpenUI rendering and prebuilt components
npm install @openuidev/react-lang @openuidev/react-ui

# Framework-agnostic backend or Edge prompt generation
npm install @openuidev/lang-core

# LangChain/LangGraph agent and server integration
npm install @openuidev/langchain @langchain/langgraph

# Vue or Svelte runtime
npm install @openuidev/vue-lang
npm install @openuidev/svelte-lang

Why OpenUI Lang

OpenUI Lang is designed for model-generated UI that needs to be both structured and streamable.

  • Streaming output - Emit UI incrementally as tokens arrive.
  • Token efficiency - Up to 67% fewer tokens than equivalent JSON (see benchmarks).
  • Controlled rendering - Restrict output to the components you define and register.
  • Typed component contracts - Define component props and structure up front with Zod schemas.

Token efficiency benchmarks

Measured with tiktoken (GPT-5 encoder). OpenUI Lang vs two JSON-based streaming formats across seven UI scenarios:

ScenarioVercel JSON-RenderThesys C1 JSONOpenUI Langvs Vercelvs C1
simple-table340357148-56.5%-58.5%
chart-with-data520516231-55.6%-55.2%
contact-form893849294-67.1%-65.4%
dashboard224722611226-45.4%-45.8%
pricing-page248723791195-52.0%-49.8%
settings-panel12441205540-56.6%-55.2%
e-commerce-product244923811166-52.4%-51.0%
TOTAL1018099484800-52.8%-51.7%

Full methodology and reproduction steps in benchmarks/.

Documentation

Detailed documentation is available at openui.com.

Repository structure

openui/
├── packages/
│   ├── react-lang/       # Core runtime (parser, renderer, prompt generation)
│   ├── react-headless/   # Headless chat state & streaming adapters
│   ├── react-ui/         # Prebuilt chat layouts & component libraries
│   ├── react-email/      # React Email component library for generated emails
│   ├── lang-core/        # Framework-agnostic parser, prompt, and runtime layer
│   ├── langchain/        # LangChain/LangGraph streaming integration
│   ├── vue-lang/         # Vue runtime bindings for OpenUI Lang
│   ├── svelte-lang/      # Svelte runtime bindings for OpenUI Lang
│   ├── browser-bundle/   # Script-tag bundle for CDN / iframe / no-build embeds
│   └── openui-cli/       # CLI for scaffolding & prompt generation
├── skills/
│   └── openui/           # Claude Code skill for AI-assisted development
├── examples/
│   └── openui-chat/      # Full working example app (Next.js)
├── docs/                 # Documentation site (openui.com)
└── benchmarks/           # Token efficiency benchmarks

Good places to start:

  • openui.com for the full docs
  • examples/openui-chat for a working app
  • CONTRIBUTING.md if you want to contribute

Community

  • Discord - Ask questions, share what you're building
  • GitHub Issues - Report bugs or request features

How OpenUI compares

FeatureOpenUIjson-render (Vercel)A2UI (Google)CopilotKit OpenGenUI
Tokens1x3x3x4x
Latency (60 tok/s)4.9s14.2s14.2s~20s
StreamingYesYesYesPartial
Consistent outputYesYesYesNo
ComponentsLibrary + customLibrary + customCustom onlyNone
Multi-platformWeb, mobile, emailWeb, mobile, PDF, email, videoWeb, iOS, AndroidWeb
Built-in data fetchingYesNoNoNo
Chat UI includedYesNoNoYes

For more details, refer to the official OpenUI Lang comparison documentation.

Adopters

A list of organizations and projects using OpenUI is maintained in ADOPTERS.md. If you're using OpenUI, please consider adding your organization; it helps the project gain momentum and helps other adopters find peers using OpenUI in similar contexts.

Contributing

Contributions are welcome. See CONTRIBUTING.md for contribution guidelines and ways to get involved.

Agent Skill

OpenUI ships an Agent Skill so AI coding assistants (Claude Code, Codex, Cursor, Copilot, etc.) can help you scaffold, build, and debug Generative UI apps using OpenUI Lang.

The skill is maintained in the thesysdev/skills repository.

Install

# With the skills CLI (works across all agents)
npx skills add thesysdev/skills --skill openui

The skill covers component library design, OpenUI Lang syntax, system prompt generation, the Renderer, SDK packages, and debugging malformed LLM output.

License

This project is available under the terms described in LICENSE.

Releases

Release information has not been added yet.

Complete your AI stack

Add a general assistant, research, coding, monitoring, and team productivity to your automations.

ChatGPT logo
ChatGPT
General assistant

General-purpose AI assistant for research, writing, coding, data analysis, image creation, and everyday productivity

View tool
Perplexity logo
Perplexity
Research

AI-powered search and research assistant

View tool
Cursor logo
Cursor
Build integrations

AI coding editor and autonomous software development platform

View tool
Best alternatives

Compare similar tools in the same category.

CodeRabbit logo

CodeRabbit

AI-powered code review assistant for pull requests.

OpenClaw logo

OpenClaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

Cursor logo

Cursor

AI coding editor and autonomous software development platform

DeepSeek logo

DeepSeek

AI assistant for reasoning, coding, research, and agent tasks

ECC logo

ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

View all in this category
Help
Pick an answer below
Hi! I can point you to the right tool or guide. What are you looking for?
Browse all articles