How yashg504/connectify works
Connectify is a full-stack real-time messaging and calling app. Users authenticate and onboard, find friends or channels, exchange messages and media, and can use AI summaries/translations or start peer-to-peer calls. The frontend routes users to these experiences and accesses backend APIs; the backend applies route protection, persists application data, and emits live events. The README documents major capabilities, but several frontend and backend implementations were not sampled, so links to those areas are included only where documentation or indexed references support them.
Main entry points: App.jsx App routing · server.js HTTP application · socket.js Socket event hub · api.js API client
Components 31
Client experience
- App routing
frontend/src/App.jsx - Auth and onboarding
frontend/src/pages/LoginPage.jsx - Direct messaging
frontend/src/pages/ChatPage.jsx - Channels
frontend/src/pages/ChannelPage.jsx - Calling
frontend/src/pages/CallPage.jsx - AI actions
frontend/src/hooks/useAI.js - Theme and presence state
frontend/src/store/useThemeStore.js - API client
frontend/src/lib/api.js
Backend API
- HTTP application
backend/src/server.js - Authentication routes
backend/src/routes/auth.route.js - Chat routes
backend/src/routes/chat.route.js - Channel routes
backend/src/routes/channel.route.js - User routes
backend/src/routes/user.route.js - AI routes
backend/src/routes/ai.route.js - Authentication logic
backend/src/controllers/auth.controller.js - Message handling
backend/src/controllers/chat.controller.js - Channel handling
backend/src/controllers/channel.controller.js - Friends and profiles
backend/src/controllers/user.controller.js - AI processing
backend/src/controllers/ai.controller.js - Request protection
backend/src/middleware/auth.middleware.js
Live communication
- Socket client
frontend/src/lib/socket.js - Socket event hub
backend/src/lib/socket.js
Persistence and services
- User records
backend/src/models/User.js - Message records
backend/src/models/Message.js - Channel records
backend/src/models/Channel.js - Friend requests
backend/src/models/FriendRequest.js - MongoDB
- Cloudinary media
backend/src/lib/cloudinary.js
Other components
- User
- Cloudinary service
- AI provider
Connections 48
- User → App routing: uses
- App routing → Auth and onboarding: routes to
frontend/src/App.jsx - App routing → Direct messaging: routes to
frontend/src/App.jsx - App routing → Channels: routes to
frontend/src/App.jsx - App routing → Calling: routes to
frontend/src/App.jsx - App routing → Theme and presence state: reads
frontend/src/App.jsx - App routing → Socket client: connects
frontend/src/App.jsx - Auth and onboarding → API client: submits
- Direct messaging → API client: requests
frontend/src/pages/ChatPage.jsx - Channels → API client: requests
frontend/src/pages/ChannelPage.jsx - Direct messaging → Socket client: listens
frontend/src/pages/ChatPage.jsx - Channels → Socket client: listens
frontend/src/pages/ChannelPage.jsx - Calling → Socket client: signals
frontend/src/pages/CallPage.jsx - AI actions → API client: invokes
frontend/src/hooks/useAI.js - API client → HTTP application: calls API
frontend/src/lib/api.js - HTTP application → Authentication routes: mounts
backend/src/server.js - HTTP application → Chat routes: mounts
backend/src/server.js - HTTP application → Channel routes: mounts
backend/src/server.js - HTTP application → User routes: mounts
backend/src/server.js - HTTP application → AI routes: mounts
backend/src/server.js - Authentication routes → Authentication logic: dispatches
backend/src/routes/auth.route.js - Chat routes → Message handling: dispatches
backend/src/routes/chat.route.js - User routes → Friends and profiles: dispatches
backend/src/routes/user.route.js - Authentication routes → Request protection: protects
backend/src/routes/auth.route.js - Chat routes → Request protection: protects
backend/src/routes/chat.route.js - User routes → Request protection: protects
backend/src/routes/user.route.js - Authentication logic → User records: reads and writes
backend/src/controllers/auth.controller.js - Authentication logic → MongoDB: persists tokens
- Message handling → Message records: reads and writes
backend/src/controllers/chat.controller.js - Message handling → Socket event hub: emits events
backend/src/controllers/chat.controller.js - Message handling → Cloudinary media: uploads media
backend/src/controllers/chat.controller.js - Cloudinary media → Cloudinary service: uploads
backend/src/lib/cloudinary.js - Channel handling → Channel records: reads and writes
backend/src/controllers/channel.controller.js - Channel handling → Message records: uses
backend/src/controllers/channel.controller.js - Channel handling → Socket event hub: emits events
backend/src/controllers/channel.controller.js - Friends and profiles → User records: reads and writes
backend/src/controllers/user.controller.js - Friends and profiles → Friend requests: manages requests
backend/src/controllers/user.controller.js - Friends and profiles → Socket event hub: notifies users
backend/src/controllers/user.controller.js - Request protection → User records: loads identity
backend/src/middleware/auth.middleware.js - AI routes → AI processing: dispatches
- AI processing → Message records: reads context
backend/src/controllers/ai.controller.js - AI processing → AI provider: requests AI
- Socket client → Socket event hub: exchanges events
- Socket event hub → Channel records: loads memberships
backend/src/lib/socket.js - Socket event hub → User records: updates last seen
backend/src/lib/socket.js - User records → MongoDB: stored in
- Message records → MongoDB: stored in
- Channel records → MongoDB: stored in