A modern AI Debate Platform transforming the command-line experience into a real-time web application.
- Node.js (v25 recommended via
.nvmrc) - pnpm
- Docker and Docker Compose
- API Keys (OpenAI, Anthropic, Gemini, etc.)
-
Environment Variables: Create a
.envfile inbackend/.envwith your API keys:OPENAI_API_KEY=sk-... GEMINI_API_KEY=... ANTHROPIC_API_KEY=...
-
Frontend Dependencies:
cd frontend pnpm install
To start both the backend (Docker) and frontend (Next.js) concurrently:
cd frontend
pnpm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- Configuration: Set up debates with specific topics and AI models.
- Live Debate: Watch the debate unfold in real-time with visual avatars and streaming transcript.
- Results: Analyze past debates, winners, and reasoning scores.
- Backend: Python FastAPI with Server-Sent Events (SSE) for streaming. Runs in Docker.
- Frontend: Next.js 16 (App Router), Tailwind CSS, Framer Motion, Recharts.
- Data: JSON-based storage for logs and results (in
backend/debate_results).
To run backend unit tests:
# Inside backend container or with python env
cd backend
pytest