DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add streamed OpenUI rendering to a React app with Openui

Install the React runtime and prebuilt chat UI to render model output in an existing app.

Short answer: In your React project folder, run npm install @openuidev/react-lang @openuidev/react-ui; then 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. All steps.

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

  1. In your React project folder, run npm install @openuidev/react-lang @openuidev/react-ui
  2. Define or reuse a component library so the model knows which components it may generate.
  3. Generate a system prompt from that library and send it with your model request.
  4. Render the streamed OpenUI Lang output in your React chat view using the react-lang renderer.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer