Real-time anonymous campus chat platform
Like Chinese Whisper gone wild: one rumor, doubt, roast or confession enters the chatβ¦ by the time it reaches the 50th person it's morphed into five different savage versions. Everyone walks away with their own twisted, unfiltered take β zero names attached.
Perfect for:
- Asking "dumb" questions without judgment
- Roasting campus Wi-Fi / mess / profs safely
- Confessions, memes, group study SOS, pure bakchodi
- Jo bolna hai bolo
- 100% anonymous (random fun usernames, no email/phone)
- Real-time messaging (Socket.IO)
- Categorized rooms: tech, study, confessions, gaming, social, etc.
- No dean, no tracking, no receipts
- Dark theme, mobile-friendly, modern UI
Live demo: https://campus-whisper.onrender.com
- Frontend: React 18 + TypeScript + Vite + Tailwind CSS + shadcn/ui
- Backend: Node.js + Express + Socket.IO + MongoDB (Mongoose) + JWT
- Real-time: WebSockets via Socket.IO
- Auth: Stateless anonymous JWT sessions
campus-whisper/
βββ frontend_campus_whisper/ β React/Vite app
βββ backend_campus_whisper/ β Express + Socket.IO server
βββ OVERVIEW.md β Architecture deep-dive
βββ OVERVIEW_Unhinged.md β Extra spicy notes (optional)
βββ README.md β You are here
Backend
cd backend_campus_whisper
npm install
cp .env.example .env # fill MONGODB_URI & JWT_SECRET
npm run devFrontend
cd frontend_campus_whisper
npm install
cp .env.example .env.local # update VITE_API_URL if backend port β 5000
npm run devDetailed steps β check each folder's own README.
Never commit .env files or credential dumps.
Previously seen risky files (remove from history if present):
backend_campus_whisper/.env(MONGODB_URI, JWT_SECRET)frontend_campus_whisper/.env.localbackend_campus_whisper/temp_credentials.txt
Do this:
- Rotate any leaked secrets immediately
- Clean history (example):
git filter-repo --invert-paths --path .env --path .env.local --path temp_credentials.txt --force git push origin --force --all
- Add to
.gitignore:*.env* temp_credentials.txt - Use secure secrets in production (Render dashboard, Vercel env, GitHub Secrets)
No live credentials are leaking on the demo site (no console dumps, no exposed endpoints), but treat old commits as potentially compromised.
PRs welcome β add rooms, features, bug fixes, or more chaos.
Use conventional commits if you want bonus points π
MIT β fork, deploy, roast responsibly.
Questions / want rate-limiting added / monorepo conversion? Open an issue.