OpenGenerativeUI  by CopilotKit

Generative UI framework for interactive AI applications

Created 5 days ago

New!

539 stars

Top 59.0% on SourcePulse

GitHubView on GitHub
Project Summary

OpenGenerativeUI is an open-source framework enabling AI agents to generate and render rich, interactive user interfaces beyond simple text. It allows for dynamic visualizations like algorithm animations, 3D scenes, charts, and interactive widgets directly within web applications, targeting developers who need sophisticated visual AI capabilities.

How It Works

This project employs a Turborepo monorepo structure, integrating a Next.js 16 frontend (CopilotKit v2, React 19) with a LangGraph Python agent backend (GPT-5.4, CopilotKit middleware). User prompts are processed by the agent, which can output text or generate visual components. A frontend useComponent hook, functioning as a widgetRenderer, receives HTML/SVG and displays it within a secure, sandboxed iframe. This enables AI-driven visuals with automatic theming, progressive reveals, and responsive sizing via iframe communication.

Quick Start & Requirements

  • Install: pnpm install
  • Prerequisites: Node.js/pnpm, OpenAI API key (OPENAI_API_KEY=your-key in apps/agent/.env).
  • Run: pnpm dev
  • Access: Local App: http://localhost:3000, Agent: http://localhost:8123.

Highlighted Details

  • Generates diverse UI outputs: algorithm visualizations, 3D animations, interactive charts (Chart.js, Recharts), network diagrams (Mermaid), and custom HTML widgets.
  • Renders visuals in sandboxed iframes with automatic light/dark theming and progressive reveal animations.
  • Utilizes CopilotKit hooks (useComponent, useFrontendTool, useHumanInTheLoop) for generative UI, UI interactions, and complex workflows.
  • Includes a decision matrix mapping queries to appropriate visual types and rendering technologies (SVG, Three.js, D3.js, etc.).

Maintenance & Community

No specific details on maintainers, community channels (e.g., Discord, Slack), or project roadmap were provided in the README.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: The MIT license is permissive, generally allowing for commercial use and integration into closed-source projects without significant restrictions.

Limitations & Caveats

The project depends on external APIs (OpenAI) and a specific tech stack (Next.js, LangGraph, pnpm), introducing potential setup complexity. The README does not detail unsupported platforms, known bugs, or performance benchmarks.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
3
Issues (30d)
8
Star History
554 stars in the last 5 days

Explore Similar Projects

Feedback? Help us improve.