How bhavanabc05/sukoon works
Sukoon is a wellbeing platform for tracking emotions and assessments, practicing guided support activities, and engaging with community resources and challenges. Users enter through the routed frontend, submit or retrieve wellbeing data through the shared API client, and the Express backend handles API operations backed by MongoDB models. The graph preserves major documented product areas, including text, audio, and video emotion tools. Backend routes are concentrated in a large server file; the excerpts do not expose all route handlers or model operations, so uncertain links are omitted.
Main entry points: api.js API client · App.jsx Routes and shell · server.js Express API · PostShiftDecompression.jsx Stress and shift tools
Components 22
User experience
- Routes and shell
frontend/src/App.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - API client
frontend/src/utils/api.js
Wellbeing tools
- Check-ins and journal
frontend/src/pages/MoodCheckin.jsx - Emotion analysis
frontend/src/pages/TextEmotion.jsx - Audio emotion
frontend/src/pages/AudioEmotion.jsx - Video emotion
frontend/src/pages/VideoEmotion.jsx - Emotion insights
frontend/src/pages/EmotionInsights.jsx - PHQ-4 assessment
frontend/src/pages/PHQ4Assessment.jsx - Stress and shift tools
frontend/src/pages/PostShiftDecompression.jsx - Guided reflection
frontend/src/components/GuidedReflectionActivity.jsx - Emotion wheel
frontend/src/components/EmotionWheel.jsx - Reminders
frontend/src/pages/Reminders.jsx - Sukoon chat
frontend/src/pages/SukoonChat.jsx
Community and resources
- Community
frontend/src/pages/Community.jsx - Challenges
frontend/src/pages/Challenges.jsx - Resources
frontend/src/pages/ResourceHub.jsx
API and services
- Express API
backend/server.js - Token authentication
backend/middleware/authMiddleware.js
Persistence
- Domain models
backend/models - MongoDB
Other components
- User
Connections 31
- User → Routes and shell: uses
frontend/src/App.jsx - Routes and shell → Dashboard: routes
frontend/src/App.jsx - Routes and shell → Emotion insights: routes
frontend/src/App.jsx - Routes and shell → Audio emotion: routes
frontend/src/App.jsx - Routes and shell → Video emotion: routes
frontend/src/App.jsx - Routes and shell → Sukoon chat: routes
frontend/src/App.jsx - Routes and shell → Resources: routes
frontend/src/App.jsx - User → Check-ins and journal: records
- User → Emotion analysis: submits text
- User → PHQ-4 assessment: completes
- User → Stress and shift tools: uses
frontend/src/pages/PostShiftDecompression.jsx - Stress and shift tools → Guided reflection: renders
frontend/src/pages/PostShiftDecompression.jsx - Guided reflection → Emotion wheel: renders
frontend/src/components/GuidedReflectionActivity.jsx - User → Reminders: manages
- User → Community: participates
- User → Challenges: joins
frontend/src/pages/Challenges.jsx - Dashboard → API client: fetches data
frontend/src/pages/Dashboard.jsx - Emotion insights → API client: fetches data
frontend/src/pages/EmotionInsights.jsx - PHQ-4 assessment → API client: requests data
frontend/src/pages/PHQ4Assessment.jsx - Stress and shift tools → API client: requests data
frontend/src/pages/PostShiftDecompression.jsx - Guided reflection → API client: submits reflection
frontend/src/components/GuidedReflectionActivity.jsx - Reminders → API client: requests data
frontend/src/pages/Reminders.jsx - Sukoon chat → API client: requests data
frontend/src/pages/SukoonChat.jsx - Community → API client: requests data
frontend/src/pages/Community.jsx - Challenges → API client: requests data
frontend/src/pages/Challenges.jsx - Video emotion → API client: requests data
frontend/src/pages/VideoEmotion.jsx - API client → Express API: sends HTTP
frontend/src/utils/api.js - Express API → Token authentication: uses middleware
backend/server.js - Express API → Domain models: queries models
backend/server.js - Express API → MongoDB: persists records
- Domain models → MongoDB: map documents