Where AI Arguments Clash & Insights Emerge π A premium real-time arena where frontier AI minds collide. π€βοΈ
AI Debate Chamber is a revolutionary platform that brings the power of multiple frontier Large Language Models together in structured, dynamic debates. Experience how different AI personalities engage in real-time arguments, present compelling counter-points, and synthesize balanced conclusions on any topic imaginable.
This is more than a chatbotβitβs a cognitive arena where artificial intelligence meets persuasive reasoning, designed for users seeking diverse perspectives on complex topics.
Experience debates powered by cutting-edge LLMs working in harmony:
PRO Argument: Llama 3.3 70B
Highly logical, articulate reasoning model that constructs compelling supportive arguments
CON Argument: Claude 3 Haiku
Fast, analytical model providing critical, well-reasoned counter-arguments
Moderator Synthesis: Gemini 2.5 Flash
Impartial, balanced model that synthesizes insights and identifies common ground
| Category | Technology |
|---|---|
| Frontend Framework | Next.js 16.1, React 19.2 |
| Language | TypeScript 5.0 |
| Styling | Tailwind CSS v4.0 |
| API SDKs | Groq SDK, OpenRouter |
| LLM Models | Llama 3.3, Claude 3, Gemini 2.5 |
| Dev Tools | ESLint, PostCSS, Webpack |
Before you begin, ensure you have:
git clone https://github.com/VisionStack-404/AI-DEBATE-CHAMBER.git
cd AI-DEBATE-CHAMBER
npm install
# or if you prefer yarn
yarn install
Create a .env.local file in the project root:
touch .env.local
Add your API keys to .env.local:
# OpenRouter API Key (for Llama 3.3 and Gemini 2.5)
OPENROUTER_API_KEY=your_openrouter_api_key_here
# Groq API Key (for Claude 3 Haiku - client-side usage)
NEXT_PUBLIC_GROQ_API_KEY=your_groq_api_key_here
# Optional: Development Environment Flag
NEXT_PUBLIC_API_ENV=development
β οΈ Security Notes:
.env.local to version control (already protected by .gitignore)NEXT_PUBLIC_ prefix only for client-side accessible variablesnpm run dev
Open http://localhost:3000 in your browser to see the application running.
# Build the application
npm run build
# Start the production server
npm start
AI-DEBATE-CHAMBER/
βββ app/ # Next.js App Router Directory
β βββ api/ # API routes for LLM integration
β β βββ debate/ # Main debate generation endpoint
β β βββ chat/ # Chatbot interaction endpoint
β βββ layout.tsx # Root layout wrapper
β βββ page.tsx # Home/main debate page
β βββ globals.css # Global styles
βββ components/ # Reusable React Components
β βββ DebateArena/ # Debate display and management
β βββ ChatBot/ # Interactive chatbot interface
β βββ ArgumentCard/ # Individual argument component
β βββ UI/ # Shared UI elements
βββ lib/ # Utility Functions & Helpers
β βββ api/ # API client functions
β βββ types/ # TypeScript interfaces
β βββ utils/ # Helper utilities
βββ styles/ # Global CSS & Tailwind Config
βββ public/ # Static assets (images, fonts)
βββ .env.local # Environment variables (local only)
βββ .env.example # Example environment template
βββ .gitignore # Git ignore rules
βββ next.config.ts # Next.js configuration
βββ tailwind.config.ts # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ package.json # Dependencies and scripts
βββ README.md # This file
| Model | Provider | Gateway | Purpose |
|---|---|---|---|
| Llama 3.3 70B | Meta | OpenRouter | PRO Arguments |
| Claude 3 Haiku | Anthropic | Groq | CON Arguments |
| Gemini 2.5 Flash | OpenRouter | Moderation & Synthesis |
POST /api/debate
Content-Type: application/json
{
"topic": "Should AI be regulated?",
"language": "en"
}
POST /api/chat
Content-Type: application/json
{
"debateId": "debate_123",
"question": "Can you elaborate on...",
"conversationHistory": []
}
# Development
npm run dev # Start dev server with hot module reloading
# Production
npm run build # Build optimized production bundle
npm start # Start production server
# Code Quality
npm run lint # Run ESLint for code style checking
Vercel is optimized for Next.js applications:
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod
Or connect your GitHub repository to Vercel for automatic deployments.
npm run build.nextFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]
β Environment Variables
.env.local (never in code).gitignore to prevent accidental commitsβ API Security
β Performance
β Monitoring
We welcome contributions from the community! Hereβs how to get involved:
git clone https://github.com/YOUR_USERNAME/AI-DEBATE-CHAMBER.git
git checkout -b feature/amazing-feature
git commit -m 'Add amazing feature'
git push origin feature/amazing-feature
Solution:
.env.local exists in project rootnpm run devSolution:
Solution:
rm -rf .nextrm -rf node_modules && npm installnpm run buildSolution:
npm update typescripttsconfig.json configurationSolution:
This project is licensed under the MIT License. See the LICENSE file for details.