DebateAI is a platform where users can engage in live debates—either with real people or AI agents—through text or video. Create or join debate rooms, choose your side, and sharpen your critical thinking in a fun and competitive environment.
DebateAI is designed to make debating more accessible and engaging by allowing users to face off against real opponents or AI agents. The platform supports both text-based and video debates, real-time interactions, and performance tracking making it ideal for learners, enthusiasts, or anyone looking to enhance their argumentation skills.
- Real-time debate rooms (text and video)
- Play against AI agents or real users
- Track performance and match history
- Topic-based room selection
- Public or private room creation
- AI judging
- Go 1.21+
- Vite + React
- Open Router API key
- Supabase
git clone https://github.com/Naman-B-Parlecha/sample-debate-ai.git
cd sample-debate-ai
cd frontend
npm install
npm run dev
cd backend
go mod download
go run cmd/server/main.go
Create a .env
file in the backend/
directory and add the following:
SUPABASE_URL=
SUPABASE_KEY=
JWT_SECRET=
SERVER_PORT=8080
HF_API_KEY=
OPEN_ROUTER_API=
- Go to Supabase and create a new project.
- Head to the Project Settings → DATA API tab.
- Copy the following values:
SUPABASE_URL
SUPABASE_KEY
JWT_SECRET
(found under "JWT Settings")
- Go to Hugging Face.
- Generate a new access token.
- Use that as your
HF_API_KEY
.
- Visit OpenRouter.
- Sign in and generate a new API key.
- Use that as your
OPEN_ROUTER_API
.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (git checkout -b feat/tour-feature)
- Commit your changes (git commit -m 'fix: Your patch name')
- Push to the branch (git push origin feat/your-feature)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.