How mukesh240703/imag-messager works
This is a Next.js collaboration app centered on account access, chat, and peer-to-peer audio/video calls, with calendar and profile/settings surfaces. The main workflow is sign in, open a conversation, exchange messages or attachments, and optionally start a call; call records are persisted. The graph follows relationships visible in the excerpts and SOURCE INDEX; calendar behavior and several UI-to-action details are not sampled, so those links are omitted rather than inferred.
Main entry points: authActions.ts Auth Actions · chatActions.ts Chat Actions · callActions.ts Call Actions · MessageThread.tsx Message Thread
Components 25
Identity & Profile
- Login & Signup
app/login/page.tsx - Auth Actions
actions/authActions.ts - Session Security
lib/auth.ts - Profile Editor
components/Layout/ProfileModal.tsx
Messaging
- Chat Workspace
app/chat/ChatClient.tsx - Conversation List
components/Chat/ChatList.tsx - Message Thread
components/Chat/MessageThread.tsx - Chat Actions
actions/chatActions.ts - Chat Records
models/Chat.ts - Attachment Files
actions/chatActions.ts
Calls
- Call History
components/Calls/CallHistory.tsx - Call Controls
components/Calls/CallModal.tsx - Call Session
context/CallContext.tsx - Call Actions
actions/callActions.ts - Call Records
models/Call.ts - PeerJS Network
Workspace UI
- Calendar View
components/Calendar/MonthView.tsx - App Shell
components/Layout/AppShell.tsx - Navigation
components/Layout/SidebarClient.tsx - Theme State
context/ThemeContext.tsx - Client Providers
components/Providers.tsx
Persistence
- MongoDB
lib/db.ts - User Records
models/User.ts
Other components
- User
- Browser Client
Connections 27
- User → Login & Signup: signs in
app/login/page.tsx - Login & Signup → Auth Actions: submits credentials
app/login/page.tsx - Auth Actions → Session Security: encrypts session
actions/authActions.ts - Auth Actions → MongoDB: connects
actions/authActions.ts - Auth Actions → User Records: reads and updates
actions/authActions.ts - Navigation → Profile Editor: opens
components/Layout/SidebarClient.tsx - Profile Editor → Auth Actions: saves profile
components/Layout/ProfileModal.tsx - Chat Workspace → Conversation List: renders
app/chat/ChatClient.tsx - Chat Workspace → Message Thread: renders
app/chat/ChatClient.tsx - Conversation List → Chat Actions: loads conversations
components/Chat/ChatList.tsx - Message Thread → Chat Actions: sends and loads messages
components/Chat/MessageThread.tsx - Message Thread → Call Session: starts calls
components/Chat/MessageThread.tsx - Message Thread → Attachment Files: uploads attachments
components/Chat/MessageThread.tsx - Chat Actions → MongoDB: connects
actions/chatActions.ts - Chat Actions → Chat Records: reads and writes
actions/chatActions.ts - Chat Actions → User Records: looks up participants
actions/chatActions.ts - Call History → Call Actions: loads history
components/Calls/CallHistory.tsx - Call Controls → Call Session: controls call
components/Calls/CallModal.tsx - Call Session → PeerJS Network: signals media calls
context/CallContext.tsx - Call Session → Call Actions: logs completed call
context/CallContext.tsx - Call Actions → MongoDB: connects
actions/callActions.ts - Call Actions → Call Records: reads and writes
actions/callActions.ts - Call Actions → User Records: looks up users
actions/callActions.ts - Browser Client → Calendar View: views calendar
- App Shell → Navigation: renders
components/Layout/AppShell.tsx - Client Providers → Theme State: provides
components/Providers.tsx - Browser Client → Chat Workspace: uses workspace