← Back to Leaderboard
Othesysdev

thesysdev/openui

GitHub Trending ×1d

A streaming UI language and cross-framework renderer for AI assistants

AI FrameworkQuickstart ↓
Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated today
Latest Release
@openuidev/react-lang@1.2.1
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
CLIAPI
Total Stars
★ 16,734
24h Growth
+191
7d Growth
+1,200
Forks
1,150

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

thesysdev/openui Star History (2025-02-25 - 2026-12-04) ALL-TIME STAR HISTORY (2025-02 – 2026-12) +16.7k in 647d · avg +26/day 17.7k 8.8k 0 2025-02-25: ★ 12025-04-12: ★ 122025-05-24: ★ 372025-07-05: ★ 462025-08-16: ★ 842025-09-27: ★ 992025-11-08: ★ 1502025-12-20: ★ 1862026-01-31: ★ 2152026-03-14: ★ 1,6312026-04-25: ★ 3,6282026-06-06: ★ 6,5762026-07-18: ★ 8,0112026-08-29: ★ 8,3952026-10-10: ★ 10,6222026-12-04: ★ 16,734 ★ 16.7k 2025-02 2026-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

OpenUI is a TypeScript monorepo that separates the model-facing format from frontend rendering. The framework-agnostic @openuidev/lang-core package owns parsing, runtime evaluation, types, and prompt generation. A component library defines the permitted UI vocabulary through Zod schemas. That library drives the system prompt; the backend sends the prompt to the model and streams OpenUI Lang output to a renderer, which resolves it into registered components as output arrives.

React, Vue, Svelte, and Angular have first-party rendering bindings, but chat scaffolding and bundled component libraries are concentrated in React. react-headless separates chat state, streaming adapters, and message conversion from presentation; react-ui adds prebuilt layouts and components. AG-UI streaming through the LangChain/LangGraph integration and A2UI with OpenUI Lang payloads are separate integration paths, not prerequisites for the core renderer.

Key Capabilities & Differentiators

OpenUI Lang lets an assistant stream charts, forms, tables, and layouts instead of waiting for a complete response before rendering structured UI. Teams can use React's bundled components or register their own. The monorepo also includes React Email definitions with HTML export and assistant-ui tool renderers. The core flow does not prescribe a model family, but teams should validate that their chosen model produces usable OpenUI Lang streams for their component set.

In seven scenarios measured with tiktoken using the GPT-5 encoder, OpenUI Lang consumed 4,800 tokens in total, versus 10,180 for Vercel json-render and 9,948 for Thesys C1 JSON: reductions of 52.8% and 51.7%, respectively. The dashboard was 45.4% smaller than the Vercel payload, while the contact form was 67.1% smaller. These are output-token counts for specific payloads, not measurements of model accuracy, end-to-end latency, or total request cost.

Trade-offs & Limitations

Compared with Vercel json-render, OpenUI trades a familiar JSON representation for a more compact language and its associated parser and tooling. That trade is attractive when UI payload size matters, but less so when an existing stack relies on native JSON inspection or processing. Evaluate A2UI separately if interoperability is the main goal: @openuidev/a2ui transports OpenUI Lang component payloads, so verify that the receiving clients can consume them.

Component registration constrains what the model can render, but it does not authorize actions behind forms or buttons. Keep authorization and data validation on the application side. Because the prompt is generated from the library, changes to component contracts warrant testing the prompt and renderer together, including malformed or interrupted streams. React offers the shortest path to a prebuilt chat experience; for Vue, Svelte, or Angular, plan for more work on the surrounding chat UI. MIT licensing permits commercial use, but does not cover model-provider terms.

Hardware & Deployment Guide

For an end-to-end starting point, run npx @openuidev/cli@latest create --name genui-chat-app. In an existing React app, use @openuidev/react-lang for rendering and add @openuidev/react-ui if you want the bundled UI. A backend or edge function that only generates prompts can use @openuidev/lang-core. The root workspace uses pnpm and declares Node.js ^20.19.0 || >=22.12.0; the script-tag bundle provides a no-build embedding option.

You can host the app and rendering stack yourself while sending generation requests to an external model API; running the SDK does not require local inference. Plan backend capacity around concurrent streams and test browser rendering with realistic payloads. In the supplied release series, lang-core 1.2.1 lets JSONSchemaDef.type accept arrays so generated specs with named unions type-check as LibrarySpec; react-lang 1.2.1 picks up that dependency. In react-ui 0.20.3, line and area charts leave gaps for missing or invalid values rather than plotting them as zero.

Component contract: Zod schemas describe the registered components and drive generation of model instructions.
Runtime split: lang-core handles parsing, evaluation, types, and prompt generation; React, Vue, Svelte, and Angular bindings render progressively.
Chat integration: react-headless supplies state and stream adapters; react-ui supplies prebuilt layouts and two component libraries.
Protocol integration: LangChain and LangGraph helpers stream through AG-UI; @openuidev/a2ui carries OpenUI Lang component payloads.
Measured payload size: Across seven scenarios, OpenUI Lang uses 4,800 tokens versus 10,180 for Vercel json-render and 9,948 for Thesys C1 JSON.
Adoption paths: Start with the CLI scaffold, install individual packages, or use the browser bundle for script-tag, CDN, or iframe embeds.
Best For

Teams building assistants that need to stream charts, forms, or other interactive UI from an approved component library, especially React teams that can reuse the prebuilt chat surface.

Skip If

Plain text or fixed tool-result layouts already meet the product need, the pipeline must remain native JSON, or the team needs a turnkey non-React chat interface rather than a rendering SDK.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLIAPI
npx @openuidev/cli@latest create --name genui-chat-app

Comparison vs. Top Chat UI & AI Apps Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
openui ★16.7k+1.2kTypeScriptMITA streaming UI language and cross-framework renderer for AI assistants
assistant-ui13.5k+73TypeScriptMITComposable React chat UI with swappable runtimes for AI backends.
gradio44.2k+81PythonApache-2.0Python-first framework for turning model callbacks into web UIs and APIs
OpenBot14.7k+860TypeScriptMITSelf-hosted AG-UI workspace for AI agents with governed browser and tool actions

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/thesysdev/openui.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

thesysdev/openui Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about openui

How do I add OpenUI to an existing assistant without replacing its chat interface?

Define or reuse a Zod-backed component library, generate model instructions from it, and have your backend stream the resulting OpenUI Lang to the matching frontend renderer. If you already have a React chat interface, react-headless offers chat state and stream adapters without imposing the react-ui layout. For LangChain or LangGraph, @openuidev/langchain provides AG-UI streaming helpers.

Does OpenUI need a GPU, and what should I size for?

The parser and renderer do not perform model inference, so they have no inference GPU or VRAM requirement. With an external model API, size the backend for concurrent streams and test the browser with representative component trees and datasets. If you host inference yourself, size GPU and VRAM separately for the model you choose.

Can I use OpenUI commercially and host it myself?

The repository is MIT-licensed, which permits commercial use and self-hosting. Retain the copyright and permission notices when distributing copies or substantial portions of the software. Review dependency licenses and model-provider terms separately; if you enable observability-cloud, assess the event data sent to Thesys under your own data-handling policy.

When should I choose OpenUI over Vercel json-render or A2UI?

Choose OpenUI if compact streamed output or a ready-made React chat surface matters. Its seven-scenario benchmark totals 4,800 tokens versus 10,180 for Vercel json-render, but that is a payload comparison, not a production latency result. Favor json-render if JSON is a firm integration requirement. If A2UI interoperability is the priority, evaluate @openuidev/a2ui against the clients you need: it carries OpenUI Lang component payloads, so do not assume it is a drop-in replacement for native A2UI payloads.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining thesysdev/openui? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature thesysdev/openui on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare