OpenGenerativeUI
OpenGenerativeUI copied to clipboard
feat: add interactive notebook app for OpenGenerativeUI demos
Summary
- Adds a standalone Next.js app (
apps/notebook) that explains OpenGenerativeUI concepts in a Jupyter notebook-like format - Three cell types: markdown (react-markdown), code (Shiki syntax highlighting), and interactive playground (Sandpack live editor + preview)
- 6 chapters covering: Introduction, Agent State, Generative UI, CopilotKit Hooks, Frontend Tools, and Widget Renderer
- Uses the same brand design system (Plus Jakarta Sans, lilac/mint palette, glassmorphism) as the main app
- Runs on port 3001 via
pnpm dev:notebook
Test plan
- [ ] Run
pnpm dev:notebookand verify it starts on port 3001 - [ ] Navigate through all 6 chapters via sidebar
- [ ] Verify code cells show syntax highlighting with copy button
- [ ] Edit code in playground cells and confirm live preview updates
- [ ] Test dark mode toggle works across all cell types
- [ ] Test mobile responsive layout (sidebar collapses to hamburger)
- [ ] Run
pnpm build --filter='@repo/notebook'to verify production build
🤖 Generated with Claude Code