How harshwss23/incogniito works
IncognIITo is an IIT Kanpur-restricted anonymous social-matching platform. Students verify by email OTP, authenticate, find a queued match, then interact through live video signaling and realtime chat; sessions can be rated and users can pursue persistent connections. Profiles, reporting/blocking, and admin moderation form parallel safety and community workflows. The graph combines sampled wiring with README-documented capabilities; unsampled modules are represented by their exact tree paths, without asserting unverified internal calls.
Main entry points: server.ts HTTP and socket server · AppRoutes.tsx App routes · database.ts PostgreSQL · matchController.ts Match API
Components 28
Web client
- App shell
src/app/App.tsx - App routes
src/app/routes/AppRoutes.tsx - Registration
src/app/components/RegistrationScreen.tsx - Login screens
src/app/components/DedicatedLoginScreen.tsx - Auth API client
src/services/auth.ts - Profile UI
src/app/components/UserProfile.tsx - Home and dashboard
src/app/components/Homepage.tsx - Matchmaking UI
src/app/components/MatchingBuffer.tsx - Live interaction
src/app/components/LiveInteractionRoom.tsx - Realtime chat UI
src/app/components/FuturisticChatInterface.tsx - Post-session actions
src/app/components/PostSessionModal.tsx
Identity and profiles
- Auth routes
backend/src/routes/authRoutes.ts - OTP workflow
backend/src/services/otpService.ts - Email delivery
backend/src/services/emailService.ts - Profile API
backend/src/routes/userRoutes.ts
Matching and live sessions
- Match API
backend/src/controllers/matchController.ts - Match queue
backend/src/services/queueService.ts - Pairing logic
backend/src/services/matchingService.ts - Socket events
backend/src/socket/socket.ts
Connections and safety
- Connection requests UI
src/app/components/ChatRequestsDashboard.tsx - Connection requests API
backend/src/routes/requestRoutes.ts - Admin dashboard
src/app/components/AdminDashboard.tsx - Admin API
backend/src/controllers/adminController.ts
Backend platform
- HTTP and socket server
backend/src/server.ts - PostgreSQL
backend/src/config/database.ts - Redis configuration
backend/src/config/redis.ts - Avatar storage
backend/src/config/cloudinary.ts
Other components
- IITK student
Connections 40
- IITK student → App shell: uses
README.md - App shell → App routes: renders
src/app/App.tsx - App routes → Registration: routes to
src/app/routes/AppRoutes.tsx - App routes → Login screens: routes to
src/app/routes/AppRoutes.tsx - Registration → Auth routes: requests OTP
README.md - Login screens → Auth API client: authenticates via
README.md - Auth API client → Auth routes: calls
src/services/auth.ts - Auth routes → OTP workflow: uses OTP
README.md - OTP workflow → Email delivery: sends email
backend/src/services/otpService.ts - Auth routes → PostgreSQL: persists identity
README.md - App routes → Home and dashboard: routes to
src/app/routes/AppRoutes.tsx - App routes → Profile UI: routes to
src/app/routes/AppRoutes.tsx - Profile UI → Profile API: updates profile
README.md - Profile API → PostgreSQL: reads and writes
backend/src/routes/userRoutes.ts - Profile API → Avatar storage: uploads avatar
README.md - Home and dashboard → Matchmaking UI: starts matching
README.md - Matchmaking UI → Match API: joins queue
README.md - Match API → Match queue: manages queue
backend/src/controllers/matchController.ts - Match API → PostgreSQL: checks sessions
backend/src/controllers/matchController.ts - HTTP and socket server → Pairing logic: initializes
backend/src/server.ts - HTTP and socket server → Match queue: uses
backend/src/server.ts - HTTP and socket server → Redis configuration: configures queue
README.md - Match queue → Redis configuration: stores queue state
README.md - Match API → Live interaction: returns paired users
README.md - Live interaction → Socket events: signals session
README.md - Realtime chat UI → Socket events: sends chat events
README.md - HTTP and socket server → Socket events: registers handlers
backend/src/server.ts - Socket events → PostgreSQL: persists messages
README.md - Live interaction → Post-session actions: ends session
README.md - Post-session actions → Match API: rates session
src/app/components/PostSessionModal.tsx - App routes → Connection requests UI: routes to
src/app/routes/AppRoutes.tsx - Connection requests UI → Connection requests API: manages requests
README.md - Connection requests API → PostgreSQL: reads and writes
backend/src/routes/requestRoutes.ts - IITK student → Admin dashboard: moderates
README.md - Admin dashboard → Admin API: reviews reports
README.md - Admin API → PostgreSQL: reads and writes
backend/src/controllers/adminController.ts - HTTP and socket server → Auth routes: mounts routes
backend/src/server.ts - HTTP and socket server → Profile API: mounts routes
backend/src/server.ts - HTTP and socket server → Connection requests API: mounts routes
backend/src/server.ts - HTTP and socket server → Admin API: mounts routes
backend/src/server.ts