Integration overview
How it connects to OpenUI
Svelte component definitions and Zod schemas become one component library. The package generates the model prompt and its Renderer resolves streamed statements into Svelte components.
The integration path
- 1
Describe the interface
Generate a component prompt from the same OpenUI library that will render the response.
- 2
Stream structured output
Let Svelte 5 own its part of the stack while OpenUI Lang travels as incremental text or mapped agent events.
- 3
Render and interact
Parse the stream with the matching OpenUI runtime, render real components, and return validated actions to the application.
Start here
Install or scaffold
npm install @openuidev/svelte-langWhat stays consistent
One schema for prompting and rendering
Progressive rendering while output streams
Typed components instead of arbitrary markup
Host application retains its runtime behavior