A modern, interactive viewer for exploring CopilotKit agent demos with a clean, responsive UI and dark/light theme support.
The Demo Viewer provides a centralized interface for browsing, viewing, and exploring the source code of various CopilotKit agent demos. It features:
- Clean, modern UI with dark/light theme support
- Interactive demo previews
- Source code exploration with syntax highlighting
- Organized demo listing with tags and descriptions
- LLM provider selection
To run the Demo Viewer locally for development, follow these steps:
In a new terminal, navigate to the project root and start the Demo Viewer:
pnpm install
pnpm run dev
The Demo Viewer should now be running at http://localhost:3000.
On a fresh clone of this repo, you'll find that we've created a mock agent that represents all of the events needed to create an ACP compliant agent. To extend this to support your own integration, you'll need to:
- Edit
src/examples/your-custom-http-agent.ts
to implement your own agent. - Alternatively, edit
src/examples/your-custom-agent.ts
to implement a non http based integration. - Read
src/app/api/sse/agentic_chat/route.ts
to understand what events need to be emitted on the agent side.
src/examples
- Example agentssrc/app
- Next.js app router filessrc/components
- Reusable UI componentssrc/demos
- Demo configuration and utilitiessrc/hooks
- Custom React hookssrc/types
- TypeScript type definitionspublic
- Static assets
- Next.js
- React
- TypeScript
- Tailwind CSS
- CopilotKit