Openui Forge

Build generative UI applications with OpenUI, supporting any LLM and backend language.

<div align="center"> <img src="media/banner.png" alt="openui-forge" width="100%"> </div>

OpenUI Forge

Build production generative UI applications with OpenUI. Any LLM provider. Any backend language. One skill.

Version License: MIT skills.sh weekly downloads GitHub stars Skill Validation Website


What is this?

OpenUI Forge is an agent skill that helps you build generative UI applications using OpenUI, a streaming-first framework where LLMs output a compact DSL (OpenUI Lang) instead of JSON or HTML. The result: 67% fewer tokens, progressive rendering as tokens arrive, and graceful handling of hallucinated components.

This skill covers the full development lifecycle: scaffolding new projects, creating components with Zod schemas, integrating any LLM backend (OpenAI, Anthropic, LangChain, Vercel AI), supporting non-JS backends (Python, Go, Rust), and validating the entire stack.


Install

# Full skill (all stacks)
npx skills add OthmanAdi/openui-forge --skill openui-forge -g

# Stack-specific
npx skills add OthmanAdi/openui-forge --skill openui-forge-openai -g
npx skills add OthmanAdi/openui-forge --skill openui-forge-anthropic -g
npx skills add OthmanAdi/openui-forge --skill openui-forge-langchain -g
npx skills add OthmanAdi/openui-forge --skill openui-forge-python -g
npx skills add OthmanAdi/openui-forge --skill openui-forge-go -g
npx skills add OthmanAdi/openui-forge --skill openui-forge-rust -g
npx skills add OthmanAdi/openui-forge --skill openui-forge-vercel -g

# Chinese localization
npx skills add OthmanAdi/openui-forge --skill openui-forge-zh -g

Supported Stacks

StackLanguageLLM ProviderFrontend Adapter
OpenAI SDKTypeScriptOpenAIopenAIReadableStreamAdapter()
Anthropic SDKTypeScriptAnthropic (Claude)openAIReadableStreamAdapter()
LangChain / LangGraphTypeScriptAny (via LangChain)openAIReadableStreamAdapter()
Vercel AI SDKTypeScriptAny (via AI SDK)Native (useChat)
Python (FastAPI)PythonOpenAI / AnthropicopenAIReadableStreamAdapter()
Go (net/http)GoOpenAIopenAIReadableStreamAdapter()
Rust (Axum)RustOpenAIopenAIReadableStreamAdapter()

Commands

CommandDescription
/openuiSmart detection. Analyzes the project and recommends the next action.
/openui:scaffoldInteractive scaffolding. Creates or adds OpenUI to an existing project.
/openui:componentCreate a new component with Zod schema and React renderer.
/openui:integrateWire up the LLM backend for any supported stack.
/openui:promptGenerate or regenerate the system prompt from the component library.
/openui:validateFull validation pipeline with 10 automated checks.

Architecture

Component Library    System Prompt       LLM Backend
(Zod + React)   --> (generated)     --> (any provider)
                                            |
                                            | stream (OpenUI Lang)
                                            v
Live UI          <-- Parser          <-- Adapter
(React)              (react-lang)        (per provider)

Flow: Define components with Zod schemas and React renderers, assemble into a library, generate a system prompt, the LLM outputs OpenUI Lang, the adapter normalizes the stream, and the parser renders React components progressively.

NPM Packages:

PackagePurpose
@openuidev/react-langCore: defineComponent, createLibrary, Renderer, prompt generation
@openuidev/react-headlessState: ChatProvider, streaming adapters, message formats (Zustand)
@openuidev/react-uiUI: FullScreen/Copilot/BottomTray layouts, 30+ built-in components, theming
@openuidev/cliCLI: scaffold apps, generate system prompts

Supported Platforms

  • Claude Code
  • Cursor
  • Gemini CLI
  • Kiro
  • Codex CLI
  • CodeBuddy
  • Continue
  • Factory
  • OpenCode
  • Pi
  • Mastra

Links


Made by OthmanAdi