Who it is forA React developer with an existing app who wants an assistant or copilot panel that shows structured UI from a model.
The problemAn existing React app has no way to turn streamed model output into charts, forms, or tables without custom rendering code.
The outcomeYour React app renders OpenUI Lang output progressively using prebuilt chat layouts and component libraries.
What you need first
- Node.js with npm and npx, since the README install and scaffold commands use them
- An LLM provider you can call from your backend, because OpenUI sends a generated system prompt to your model
- A component library to use or define; the README provides built-in libraries in @openuidev/react-ui
Steps
- In your React project folder, run
npm install @openuidev/react-lang @openuidev/react-ui - Define or reuse a component library so the model knows which components it may generate.
- Generate a system prompt from that library and send it with your model request.
- Render the streamed OpenUI Lang output in your React chat view using the react-lang renderer.
- Send a test message and check that charts, forms, or tables appear as the response arrives.
Prompt for your agent
In the thesysdev/openui repo, use the @openuidev/react-lang and @openuidev/react-ui packages to add a streamed chat panel to the React project at <target project path>. Expected output is a running chat view that renders OpenUI Lang output; verify by sending one test prompt and confirming a component renders rather than raw text.
Caveat. The README lists these packages but does not show a full integration example, so you will need to read the package docs at Openui.com for wiring details.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for thesysdev/openui and "Add streamed OpenUI rendering to a React app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer