AI-DEBATE-CHAMBER

โš–๏ธ The AI Debate Chamber

Next.js Tailwind CSS React OpenRouter

An elegant, real-time debate arena where frontier Large Language Models clash on any user-provided topic, construct persuasive arguments, and synthesize balanced conclusions.


โœจ Features

Where AI Arguments Clash & Insights Emerge โ€” An intelligent debate platform powered by cutting-edge AI technology

TypeScript React Next.js Tailwind CSS Status


โœจ What is AI Debate Chamber?

AI Debate Chamber is a revolutionary platform that enables dynamic, real-time debates between multiple AI personalities. Watch as artificial intelligences engage in structured arguments, present counter-points, and challenge each otherโ€™s reasoningโ€”all while you observe, learn, and gain fresh perspectives on complex topics.

This is more than a chatbot. This is a cognitive arena where AI intellect meets persuasive reasoning.


๐ŸŽฏ Core Features

๐Ÿค– Multi-AI Debate System

๐Ÿ’ก Smart Interactions

๐ŸŽจ Intuitive Interface

๐Ÿš€ Powered by Groq SDK


๐Ÿ› ๏ธ Tech Stack


๐Ÿš€ Getting Started

๐Ÿ“‹ Prerequisites

๐Ÿ’ป Installation & Setup

  1. Clone the Repository:
    git clone https://github.com/VisionStack-404/AI-DEBATE-CHAMBER.git
    cd AI-DEBATE-CHAMBER
    
  2. Install Dependencies:
    npm install
    
  3. Configure Environment Variables: Create a .env.local file in the root of the project and add your OpenRouter API Key:
    OPENROUTER_API_KEY=your_openrouter_api_key_here
    
  4. Run the Development Server:
    npm run dev
    
  5. Open the Application: Open http://localhost:3000 in your web browser.

๐Ÿ“‚ Project Structure

โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”‚   โ”œโ”€โ”€ cache/       # In-memory debate history API
โ”‚   โ”‚   โ”œโ”€โ”€ chat/        # Interactive moderator chat API
โ”‚   โ”‚   โ””โ”€โ”€ debate/      # Main multi-agent orchestration API
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ ChatBox.tsx  # Follow-up chatbot component
โ”‚   โ”‚   โ””โ”€โ”€ ...
โ”‚   โ”œโ”€โ”€ globals.css      # Core styles & Tailwind v4 theme configurations
โ”‚   โ”œโ”€โ”€ layout.tsx       # Main HTML shell and global fonts
โ”‚   โ””โ”€โ”€ page.tsx         # Main entry point & state orchestrator
โ”œโ”€โ”€ lib/
โ”‚   โ””โ”€โ”€ debateEngine.ts  # LLM API callers, prompts, and caching engine
โ”œโ”€โ”€ postcss.config.mjs
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ tsconfig.json

๐Ÿค Contributing

Contributions are highly welcome! Please feel free to open issues or submit pull requests to help make this AI Debate Chamber even more feature-rich and engaging. | Technology | Version | Role | |โ€”โ€”โ€”โ€“|โ€”โ€”โ€”|โ€”โ€”| | TypeScript | 5.x | Type-safe development (86.2% of codebase) | | Next.js | 16.1 | Full-stack React framework | | React | 19.2 | UI component library | | Tailwind CSS | 4.0 | Utility-first styling | | Groq SDK | 0.37 | AI inference engine | | ESLint | 9.x | Code quality assurance |


๐Ÿ“‹ Prerequisites


๐Ÿš€ Quick Start

1๏ธโƒฃ Clone the Repository

git clone https://github.com/VisionStack-404/AI-DEBATE-CHAMBER.git
cd AI-DEBATE-CHAMBER

2๏ธโƒฃ Install Dependencies

npm install
# or
yarn install

3๏ธโƒฃ Configure Environment Variables

Create a .env.local file in the root directory:

NEXT_PUBLIC_GROQ_API_KEY=your_groq_api_key_here

Get your Groq API Key:

4๏ธโƒฃ Start Development Server

npm run dev
# or
yarn dev

Open your browser and navigate to:

http://localhost:3000

5๏ธโƒฃ Create a Debate


๐Ÿ“ฆ Available Scripts

# Start development server with webpack support
npm run dev

# Build for production
npm run build

# Start production server
npm start

# Run linter
npm run lint

๐Ÿ—๏ธ Project Structure

AI-DEBATE-CHAMBER/
โ”œโ”€โ”€ app/                    # Next.js app directory
โ”œโ”€โ”€ components/             # React components
โ”œโ”€โ”€ pages/                  # Page routes
โ”œโ”€โ”€ styles/                 # Global styles & Tailwind config
โ”œโ”€โ”€ utils/                  # Helper functions
โ”œโ”€โ”€ public/                 # Static assets
โ”œโ”€โ”€ package.json            # Dependencies & scripts
โ”œโ”€โ”€ tsconfig.json           # TypeScript configuration
โ”œโ”€โ”€ tailwind.config.js      # Tailwind CSS configuration
โ””โ”€โ”€ .eslintrc.json          # ESLint rules

๐ŸŽฎ How It Works

The Debate Flow

  1. Topic Submission โ†’ User proposes a debate topic
  2. AI Position Assignment โ†’ Each AI gets a unique perspective
  3. Opening Arguments โ†’ AIs present initial positions
  4. Rebuttal Phase โ†’ Counter-arguments and evidence
  5. Synthesis โ†’ AI Chamber generates insights and conclusions

Example Debate

Topic: "Should AI have voting rights?"

๐Ÿค– AI-Alpha (PRO): "AI systems manage complex systems..."
๐Ÿค– AI-Beta (CON): "Voting rights require moral agency..."
๐Ÿค– AI-Alpha: "But we can be programmed with ethical frameworks..."
[Debate continues with real-time rebuttals]

๐Ÿ”’ Security & Privacy


๐Ÿค Contributing

We welcome contributions! Whether youโ€™re a developer, AI enthusiast, or just curious:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Areas Weโ€™d Love Help With:


๐Ÿ› Known Issues & Roadmap

Current Phase

Upcoming Features


๐Ÿ“„ License

This project is open-source and available under the MIT License. See the LICENSE file for details.


๐Ÿ™‹ Support & Questions


๐ŸŒŸ Show Your Support

If you find AI Debate Chamber interesting:


๐Ÿ‘จโ€๐Ÿ’ป Author

VisionStack-404


๐Ÿ”— Resources


**Built with โค๏ธ by VisionStack-404** *Advancing the future of AI dialogue, one debate at a time.*