Create an Agent conversation system sequence diagram.
Open-source streaming UI runtime
Turn model output into live interfaces.
StreamViz recovers partial model-generated HTML, isolates it safely, and renders interactive visualizations inside your React conversation—before generation finishes.$
npm install streamviz-react
Copy install command
React 19 ready
Secure iframe boundary
Partial HTML recovery
One stream. Three visible stages.
Watch a function call become an interactive artifact without hiding the model-to-interface boundary.diagramAgent conversation streaming sequence
01 · MODEL STREAM
POST /v1/chat/completions
text/event-stream · OpenAI-compatible SSEraw response — json
02 · PARSED PAYLOAD
titleAgent conversation streaming sequence
loading_messageMapping participants…
widget_code · 0 KB — html
03 · ASTRYX CHAT
surfaceAssistant message · live artifact
Prompt, tool state, and rendered output stay in one conversation flow.Why StreamViz
The missing runtime between tokens and UI.
Render during generation
Recover useful structure from incomplete HTML and update the same artifact as new tokens arrive.Secure by default
Sanitize generated markup and execute each artifact inside a restrictive iframe sandbox.Host-controlled
Keep themes, exports, clipboard, prompts, and notifications inside your application boundary.React integration
One component. Every streamed chunk.
Pass the accumulated HTML as it arrives, then set final when the stream ends. StreamViz recovers and renders every useful state in between.Read the React API →app.tsx — tsximport { StreamVisualization } from 'streamviz-react/react'return (<StreamVisualizationcode={streamedHtml}final={isComplete}/>)