How yugeshramesh/skillsync-ai works
SkillSync is a peer-learning app for students to find study partners, connect, chat, schedule sessions, and track learning progress. The main workflow runs from account/profile setup through matching and connection, then chat and session activity that updates progress. The graph separates the React client, HTTP backend, learning-domain operations, and persistence/realtime layers. The README is only a Vite template and documents no product capabilities; several routes and screens are represented from the tree and source index, while unshown internal wiring is omitted or marked unverified.
Main entry points: server.js HTTP and socket server · App.jsx Route application · sessionController.js Session lifecycle · api.js HTTP API client
Components 34
React client
- Route application
src/App.jsx - Sign-in and registration
src/pages/Auth.jsx - Profile editing
src/pages/Profile.jsx - Learning dashboard
src/pages/Dashboard.jsx - Match discovery
src/pages/TopMatches.jsx - Match detail
src/pages/Match.jsx - Connections and progress
src/pages/Connected.jsx - Chat experience
src/components/chat/ChatWindow.jsx - Authenticated app shell
src/components/layout/AppShell.jsx - HTTP API client
src/services/api.js - Socket client
src/services/socket.js
Backend HTTP
- HTTP and socket server
backend/server.js - Authentication routes
backend/routes/auth.js - Profile routes
backend/routes/profile.js - Match routes
backend/routes/match.js - Chat routes
backend/routes/chat.js - AI routes
backend/routes/ai.js - Session routes
backend/routes/sessions.js - Connection routes
backend/routes/connections.js
Learning domain
- Authentication operations
backend/controllers/authController.js - Profile operations
backend/controllers/profileController.js - Matching operations
backend/controllers/matchController.js - Chat operations
backend/controllers/chatController.js - AI chat operations
backend/controllers/aiController.js - Session lifecycle
backend/controllers/sessionController.js - Connection progress
backend/controllers/connectionController.js
Data and realtime
- User records
backend/models/User.js - Session records
backend/models/Session.js - Connection records
backend/models/Connection.js - Message records
backend/models/Message.js - Database connection
backend/config/db.js - Socket event dispatch
backend/sockets/socketManager.js - Socket.IO setup
backend/sockets/index.js
Other components
- Student
Connections 48
- Student → Route application: uses
- Route application → Sign-in and registration: routes to
src/App.jsx - Route application → Learning dashboard: routes to
src/App.jsx - Route application → Profile editing: routes to
src/App.jsx - Route application → Match discovery: routes to
src/App.jsx - Route application → Match detail: routes to
src/App.jsx - Route application → Chat experience: routes to
src/App.jsx - Route application → Connections and progress: routes to
src/App.jsx - Sign-in and registration → HTTP API client: calls
src/pages/Auth.jsx - Profile editing → HTTP API client: calls
src/pages/Profile.jsx - Learning dashboard → HTTP API client: calls
src/pages/Dashboard.jsx - Connections and progress → HTTP API client: calls
src/pages/Connected.jsx - Chat experience → HTTP API client: calls
src/components/chat/ChatWindow.jsx - Chat experience → Socket client: uses
src/components/chat/ChatWindow.jsx - Authenticated app shell → Socket client: connects
src/components/layout/AppShell.jsx - HTTP API client → HTTP and socket server: requests API
- Socket client → Socket.IO setup: connects
- HTTP and socket server → Database connection: connects
backend/server.js - HTTP and socket server → Socket.IO setup: initializes
backend/server.js - HTTP and socket server → Authentication routes: mounts
backend/server.js - HTTP and socket server → Profile routes: mounts
backend/server.js - HTTP and socket server → Match routes: mounts
backend/server.js - HTTP and socket server → Chat routes: mounts
backend/server.js - HTTP and socket server → AI routes: mounts
backend/server.js - HTTP and socket server → Session routes: mounts
backend/server.js - HTTP and socket server → Connection routes: mounts
backend/server.js - Authentication routes → Authentication operations: dispatches
backend/routes/auth.js - Profile routes → Profile operations: dispatches
backend/routes/profile.js - Match routes → Matching operations: dispatches
- Chat routes → Chat operations: dispatches
backend/routes/chat.js - AI routes → AI chat operations: dispatches
backend/routes/ai.js - Session routes → Session lifecycle: dispatches
backend/routes/sessions.js - Connection routes → Connection progress: dispatches
backend/routes/connections.js - Authentication operations → User records: reads and writes
backend/controllers/authController.js - Profile operations → User records: reads and writes
backend/controllers/profileController.js - Matching operations → User records: reads
backend/controllers/matchController.js - Chat operations → Message records: reads and writes
backend/controllers/chatController.js - Chat operations → User records: reads
backend/controllers/chatController.js - Chat operations → Socket event dispatch: dispatches
backend/controllers/chatController.js - Session lifecycle → Session records: reads and writes
backend/controllers/sessionController.js - Session lifecycle → Connection records: updates
backend/controllers/sessionController.js - Session lifecycle → User records: reads
backend/controllers/sessionController.js - Session lifecycle → Connection progress: calls
backend/controllers/sessionController.js - Session lifecycle → Socket event dispatch: dispatches
backend/controllers/sessionController.js - Connection progress → Connection records: reads and writes
backend/controllers/connectionController.js - Connection progress → Session records: reads
backend/controllers/connectionController.js - Connection progress → User records: reads
backend/controllers/connectionController.js - Socket.IO setup → Socket event dispatch: configures
backend/sockets/index.js