How akshay4754/talent-iq works
Talent-IQ is a coding-interview platform combining interview rooms, solo practice, code evaluation, and real-time collaboration. The main workflow is to browse or select a problem, create or join a session, collaborate by video/chat and shared editing, then run code and review results. The map also preserves authentication, session management, AI review, and background-job capabilities documented by the README. Some frontend and backend modules were not sampled; their connections are shown only where the index or README supports them.
Main entry points: SessionPage.jsx Session workspace · server.js REST API server · sessionController.js Session lifecycle · App.jsx App routing
Components 32
Client experience
- App routing
frontend/src/App.jsx - Dashboard
frontend/src/pages/DashboardPage.jsx
Interview sessions
- Session workspace
frontend/src/pages/SessionPage.jsx - Session queries
frontend/src/hooks/useSessions.js - Session API client
frontend/src/api/sessions.js - Shared editing
frontend/src/hooks/useYjsCollaboration.js - Stream client hook
frontend/src/hooks/useStreamClient.js - Video and chat UI
frontend/src/components/VideoCallUI.jsx
Coding and practice
- Problem catalog
frontend/src/pages/ProblemsPage.jsx - Problem data
frontend/src/data/problems.js - Practice page
frontend/src/pages/ProblemPage.jsx - Code editor
frontend/src/components/CodeEditorPanel.jsx - Code execution
frontend/src/lib/piston.js - Evaluation output
frontend/src/components/OutputPanel.jsx
Backend services
- REST API server
backend/src/server.js - Session routes
backend/src/routes/sessionRoutes.js - Session lifecycle
backend/src/controllers/sessionController.js - Session records
backend/src/models/Session.js - User records
backend/src/models/User.js - Route protection
backend/src/middleware/protectRoute.js - AI review
backend/src/controllers/aiController.js - Code API
backend/src/controllers/codeController.js - Problem proxy
backend/src/routes/leetcodeProxy.js - Background jobs
backend/src/lib/inngest.js - Email notifications
backend/src/lib/email.js
External platforms
- Stream integration
backend/src/lib/stream.js - Clerk identity
- Stream platform
- MongoDB
- Piston execution service
- Inngest
Other components
- Candidate
Connections 40
- Candidate → App routing: uses
- App routing → Dashboard: routes to
frontend/src/App.jsx - App routing → Problem catalog: routes to
frontend/src/App.jsx - App routing → Practice page: routes to
frontend/src/App.jsx - App routing → Session workspace: routes to
frontend/src/App.jsx - Problem catalog → Problem data: uses
- Practice page → Problem data: loads
frontend/src/pages/ProblemPage.jsx - Practice page → Code execution: runs code
frontend/src/pages/ProblemPage.jsx - Practice page → Code editor: renders
frontend/src/pages/ProblemPage.jsx - Practice page → Evaluation output: renders
frontend/src/pages/ProblemPage.jsx - Session workspace → Session queries: uses
frontend/src/pages/SessionPage.jsx - Session queries → Session API client: calls
frontend/src/hooks/useSessions.js - Session workspace → Code execution: runs code
frontend/src/pages/SessionPage.jsx - Session workspace → Code editor: renders
frontend/src/pages/SessionPage.jsx - Session workspace → Evaluation output: renders
frontend/src/pages/SessionPage.jsx - Session workspace → Stream client hook: initializes
frontend/src/pages/SessionPage.jsx - Session workspace → Shared editing: uses
frontend/src/pages/SessionPage.jsx - Stream client hook → Session API client: requests token
frontend/src/hooks/useStreamClient.js - Stream client hook → Stream platform: joins call and chat
frontend/src/hooks/useStreamClient.js - Session workspace → Video and chat UI: renders
frontend/src/pages/SessionPage.jsx - Code execution → Piston execution service: executes remotely
- Session API client → REST API server: calls REST API
- REST API server → Session routes: mounts
backend/src/server.js - Session routes → Route protection: protects routes
backend/src/routes/sessionRoutes.js - Session routes → Session lifecycle: dispatches
backend/src/routes/sessionRoutes.js - Session lifecycle → Session records: reads and writes
backend/src/controllers/sessionController.js - Session lifecycle → User records: reads
backend/src/controllers/sessionController.js - Session lifecycle → Stream integration: manages call and channel
backend/src/controllers/sessionController.js - Route protection → Clerk identity: authenticates
backend/src/middleware/protectRoute.js - Route protection → User records: looks up user
backend/src/middleware/protectRoute.js - Route protection → Stream integration: syncs user
backend/src/middleware/protectRoute.js - Session records → MongoDB: persists
- REST API server → AI review: mounts AI routes
backend/src/server.js - REST API server → Code API: mounts code routes
backend/src/server.js - REST API server → Problem proxy: mounts proxy
backend/src/server.js - REST API server → Background jobs: serves jobs
backend/src/server.js - Background jobs → Inngest: registers functions
- Background jobs → Email notifications: uses
backend/src/lib/inngest.js - Session lifecycle → Email notifications: sends invitations
backend/src/controllers/sessionController.js - Session lifecycle → Stream platform: provisions session
backend/src/controllers/sessionController.js