Skip to content

Commit c0b881a

Browse files
committed
Apply CopilotKit brand styling, CTA banner, and updated README
- Add full brand design system: CSS variables, animated blob background, glassmorphism surfaces, gradient utilities, CopilotKit theme overrides - Load Plus Jakarta Sans font via Google Fonts - Wrap app in animated background + frosted glass container - Add CTA banner with Get Started link to GitHub repo - Update suggestion chips to visualization-focused demos - Rewrite README to describe Open Generative UI
1 parent f231144 commit c0b881a

5 files changed

Lines changed: 643 additions & 32 deletions

File tree

README.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# Open Generative UI
22

3-
A showcase and template for building AI-powered generative UI with [CopilotKit](https://copilotkit.ai) and [LangGraph](https://langchain-ai.github.io/langgraph/). Uses a collaborative todo list to demonstrate agent-driven UI where both the AI agent and the user can manipulate shared application state in real time.
3+
An open-source showcase for building rich, interactive AI-generated UI with [CopilotKit](https://copilotkit.ai) and [LangGraph](https://langchain-ai.github.io/langgraph/). Ask the agent to visualize algorithms, create 3D animations, render charts, or generate interactive diagrams — all rendered as live HTML/SVG inside a sandboxed iframe.
4+
5+
## What It Does
6+
7+
The agent produces **generative UI** — not just text responses, but fully interactive visual components:
8+
9+
- **Algorithm visualizations** — binary search, BFS vs DFS, sorting algorithms
10+
- **3D animations** — interactive WebGL/CSS3D scenes
11+
- **Charts & diagrams** — pie charts, bar charts, network diagrams
12+
- **Interactive widgets** — forms, simulations, math plots
13+
14+
All visuals are rendered in sandboxed iframes with automatic light/dark theming, progressive reveal animations, and responsive sizing.
415

516
## Quick Start
617

@@ -20,11 +31,35 @@ pnpm dev
2031

2132
## Architecture
2233

23-
This is a Turborepo monorepo with two apps:
34+
Turborepo monorepo with two apps:
35+
36+
```
37+
apps/
38+
├── app/ Next.js 16 frontend (CopilotKit v2, React 19, Tailwind 4)
39+
└── agent/ LangGraph Python agent (GPT-5.4, CopilotKit middleware)
40+
```
41+
42+
### How It Works
43+
44+
1. **User sends a prompt** via the CopilotKit chat UI
45+
2. **Agent decides** whether to respond with text, call a tool, or render a visual component
46+
3. **`widgetRenderer`** — a frontend `useComponent` hook — receives the agent's HTML and renders it in a sandboxed iframe
47+
4. **Skeleton loading** shows while the iframe loads, then content fades in smoothly
48+
5. **ResizeObserver** inside the iframe reports content height back to the parent for seamless auto-sizing
2449

25-
- **`apps/app`** — Next.js 16 frontend with CopilotKit v2 for agent state management
26-
- **`apps/agent`** — LangGraph Python agent with todo tools and state schema
50+
### Key CopilotKit Patterns
51+
52+
| Pattern | Hook | Example |
53+
|---------|------|---------|
54+
| Generative UI | `useComponent` | Pie charts, bar charts, widget renderer |
55+
| Frontend tools | `useFrontendTool` | Theme toggle |
56+
| Human-in-the-loop | `useHumanInTheLoop` | Meeting scheduler |
57+
| Default tool render | `useDefaultRenderTool` | Tool execution status |
2758

2859
## Tech Stack
2960

30-
Next.js 16, React 19, TailwindCSS 4, LangGraph, CopilotKit v2, Turborepo
61+
Next.js 16, React 19, Tailwind CSS 4, LangGraph, CopilotKit v2, Turborepo, Recharts
62+
63+
## License
64+
65+
MIT

0 commit comments

Comments
 (0)