How rajathraj12/action-flow works
ActionFlow is a team collaboration product spanning workspace, chat, task, search, and notification capabilities, with web and Android clients backed by an Express/Socket.IO service. The main user flow is client interaction through authenticated API routes to workspace or messaging operations and persistent records; message content can also feed AI task detection and task review. The tree and excerpts support these major areas, but do not show the web app’s runtime API wiring or how the backend connects to the separate AI-Service, so those links are omitted.
Main entry points: server.ts HTTP service · workspaceMessagingRoutes.ts Messaging routes · workspaceTaskRoutes.ts Task routes · aiTaskService.ts Task detection service
Components 26
Client applications
- Android API client
action-flow-android/app/src/main/java/com/actionflow/data/api/ActionFlowApiService.kt - Android network setup
action-flow-android/app/src/main/java/com/actionflow/data/api/NetworkClient.kt - Android task screen
action-flow-android/app/src/main/java/com/actionflow/presentation/screens/tasks/TasksScreen.kt - Web task experience
Frontend/src/routes/tasks.tsx - AI task review
Frontend/src/components/tasks/AiTaskReviewModal.tsx
Backend runtime
- HTTP service
Backend/src/server.ts
Workspace and messaging
- Workspace routes
Backend/src/routes/workspaceRoutes.ts - Messaging routes
Backend/src/routes/workspaceMessagingRoutes.ts - Message operations
Backend/src/services/messageService.ts - Realtime messaging
Backend/src/socket/socketHandler.ts - Workspace records
Backend/src/models/Workspace.ts - Conversation records
Backend/src/models/Conversation.ts - Message records
Backend/src/models/Message.ts
Tasks and AI
- Task routes
Backend/src/routes/workspaceTaskRoutes.ts - AI task routes
Backend/src/routes/aiRoutes.ts - Task detection service
Backend/src/services/aiTaskService.ts - AI extraction API
AI-Service/app/main.py - Task extractor
AI-Service/app/extractor.py - Text classifier
AI-Service/app/classifier.py - Model loading
AI-Service/app/model_loader.py - Task records
Backend/src/models/Task.ts
Identity and access
- Authentication
Backend/src/middleware/auth.ts - Workspace authorization
Backend/src/middleware/rbac.ts - Firebase verification
Backend/src/config/firebase.ts
Other components
- Team member
- MongoDB
Connections 28
- Team member → Android task screen: uses
- Android task screen → Android API client: requests tasks
- Android network setup → Android API client: configures
action-flow-android/app/src/main/java/com/actionflow/data/api/NetworkClient.kt - Android API client → HTTP service: calls API
- Team member → Web task experience: uses
- Web task experience → AI task review: opens review
- HTTP service → Authentication: mounts routes
- HTTP service → Workspace routes: mounts
Backend/src/server.ts - HTTP service → Messaging routes: mounts
Backend/src/server.ts - HTTP service → Task routes: mounts
Backend/src/server.ts - HTTP service → AI task routes: mounts
Backend/src/server.ts - Authentication → Firebase verification: verifies tokens
Backend/src/middleware/auth.ts - Authentication → Workspace authorization: provides identity
Backend/src/middleware/rbac.ts - Workspace routes → Workspace records: reads and writes
Backend/src/routes/workspaceRoutes.ts - Messaging routes → Conversation records: reads and writes
Backend/src/routes/workspaceMessagingRoutes.ts - Messaging routes → Message records: reads and writes
Backend/src/routes/workspaceMessagingRoutes.ts - Messaging routes → Message operations: delegates reads
Backend/src/routes/workspaceMessagingRoutes.ts - Realtime messaging → Message operations: delegates messages
Backend/src/socket/socketHandler.ts - Message operations → Message records: persists messages
Backend/src/services/messageService.ts - Task routes → Task records: reads and writes
Backend/src/routes/workspaceTaskRoutes.ts - Task routes → Realtime messaging: emits updates
Backend/src/routes/workspaceTaskRoutes.ts - AI task routes → Task detection service: detects tasks
Backend/src/routes/aiRoutes.ts - Task detection service → Message records: reads messages
- Task detection service → Task records: creates tasks
- HTTP service → MongoDB: connects
- AI extraction API → Task extractor: runs extraction
AI-Service/app/main.py - Task extractor → Text classifier: classifies text
AI-Service/app/extractor.py - AI extraction API → Model loading: loads models
AI-Service/app/main.py