DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to scaffold a streaming generative UI chat app with Openui

Create a ready-to-run app that streams OpenUI Lang output and renders it as live UI.

Who it is forA developer who wants a working generative UI chat app to start from, without wiring streaming and rendering by hand.

The problemWiring model output, streaming, and a UI renderer from scratch takes time before any working prototype exists.

The outcomeA scaffolded app with OpenUI Lang support, library-driven prompts, and streaming UI updates that you can run and then extend.

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. Open a terminal in the folder where you want the project.
  2. Run npx @openuidev/cli@latest create --name genui-chat-app
  3. Change into the new genui-chat-app folder and follow the install and start steps the CLI prints.
  4. Open the app and send a prompt to confirm UI renders as the response streams.
  5. Open the Playground at https://www.openui.com/playground to compare generated output with your app.

Prompt for your agent

Using the thesysdev/openui repo, scaffold a new app named genui-chat-app in <target folder> by running `npx @openuidev/cli@latest create --name genui-chat-app`. Report the start command the CLI prints and confirm that a test prompt in the running app produces streamed UI rather than plain text.

Caveat. The scaffold needs a model provider set up on your side, and the README does not describe which provider settings the generated app expects.

Share: X LinkedIn Hacker News Email Copy link

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 [email protected] and we will look at it promptly. Full disclaimer page