{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "thesysdev-openui--add-openui-rendering-to-react-app",
 "repo": "thesysdev/openui",
 "repo_url": "https://github.com/thesysdev/openui",
 "repo_slug": "thesysdev-openui",
 "title": "Add streamed OpenUI rendering to a React app",
 "page_title": "How to add streamed OpenUI rendering to a React app with Openui",
 "summary": "Install the React runtime and prebuilt chat UI to render model output in an existing app.",
 "who": "A React developer with an existing app who wants an assistant or copilot panel that shows structured UI from a model.",
 "problem": "An existing React app has no way to turn streamed model output into charts, forms, or tables without custom rendering code.",
 "outcome": "Your React app renders OpenUI Lang output progressively using prebuilt chat layouts and component libraries.",
 "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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "60 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/thesysdev-openui/add-openui-rendering-to-react-app/",
 "md": "https://dedupedai.com/use-cases/thesysdev-openui/add-openui-rendering-to-react-app/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/thesysdev-openui--add-openui-rendering-to-react-app.json",
 "api_version": "v1"
}
