CopilotKit open-sourced a generative UI template that renders agent-created HTML and SVG in a sandboxed iframe, with examples for charts, diagrams, algorithms, and 3D components. Use it to build interactive chat outputs without waiting for vendor-specific platform support.

CopilotKit’s launch post says the repo is a template for “rich, interactive AI-generated UI” built with CopilotKit and LangChain’s LangGraph.launch post The examples are concrete: “visualize algorithms,” “create 3D animations,” “render charts,” and “generate interactive diagrams,” all returned as live frontend output rather than screenshots or code snippets.launch post
The linked GitHub repo fills in the implementation details missing from the tweet. It describes a monorepo with a Next.js frontend and a Python-based agent, plus hooks for component generation, frontend tools, and human-in-the-loop flows.repo summary The same repo summary says rendering happens through a widgetRenderer path that places generated HTML into sandboxed iframes, with auto-sizing and theming support handled on the frontend.repo summary
The practical pitch is chat-native UI generation. In CopilotKit’s launch demo, a prompt to “visualize quicksort” turns into an interactive sorting animation, and the same reel ends with a rendered 3D object rather than a textual explanation.demo video A separate Generative UI demo shows the model producing a structured form with dropdowns and fields directly in the conversation.
The charting path looks equally aimed at operational and educational tools. The charts demo shows a bar chart labeled “LLM Cost by Token Type” morphing into a token-flow style diagram, suggesting the stack can swap between visualization types while staying interactive.charts demo For engineers, that makes this less about a one-off Claude clone and more about an open template for agent UIs that need custom visual outputs before platform vendors standardize the feature set.
Introducing Open Generative UI Repo 🌟 We built an open-source version of @claudeai's new feature for your own AI agents! It's a template for building rich, interactive AI-generated UI with CopilotKit and @LangChain LangGraph. Ask the agent to visualize algorithms, create 3D Show more
Claude can now build interactive charts and diagrams, directly in the chat. Available today in beta on all plans, including free. Try it out: claude.ai
We open-sourced it 💜 Check out the Open Generative UI Repo: github.com/CopilotKit/Ope…