Counterpoint: live debates with AI fact checking
A live video and audio debate platform I designed, built and run end to end. Debaters pick a topic, get matched, and argue in timed mic turns while Gemini, grounded with Google Search, fact-checks claims as they're made.
- Real-time: peer-to-peer WebRTC video and audio, Socket.IO for matching, mic turns and chat, plus a self-hosted coturn relay for strict networks
- Backend: Node.js 22 and Express in modules for auth, lobby, debate rules, fact-checking, moderation and profiles; PostgreSQL 16 with migrations that run on startup
- Accounts & safety: email verification, Google sign-in, scrypt password hashing, offensive-name filtering
- Cloud & delivery: Cloud Run, Cloud SQL, Vertex AI and Secret Manager on Google Cloud. GitHub Actions runs tests against a real Postgres, deploys on every push without stored keys (Workload Identity Federation), then checks the live site, fact-checking and the video relay from a real Chrome browser
