@lynx-example/openui
v0.1.3
Published
An example shows how to render streaming OpenUI responses in Lynx
Downloads
1,526
Readme
OpenUI for Lynx
This example renders an OpenUI response in a
ReactLynx application with @lynx-js/genui.
The demo simulates an LLM streaming OpenUI Lang text into OpenUiRenderer,
then handles the structured action emitted by the generated buttons. Use the
Replay button to restart the stream.
Getting Started
Install dependencies from the repository root:
corepack pnpm installStart this example:
corepack pnpm --filter @lynx-example/openui run devScan the QR code in the terminal with LynxExplorer, or open the web preview.
The OpenUI response used by the mock agent is in
src/demoResponse.ts. Edit it to try another OpenUI
Lang response.
