How 3132ganesh/mood-aware works
MoodAware is a mobile-first wellness tracker. Users enter through the React app, authenticate, and use routed wellness screens to record mood and habits, journal, plan goals, and review insights. The server exposes authenticated APIs that validate requests, invoke storage and selected AI helpers, and return user-scoped results. The README also describes breathwork, the Mood Garden, voice journaling, time capsules, and predictive insights; their dedicated client modules are represented, but their detailed wiring is not established by the sampled source. Storage implementation details are partial, so database and in-memory persistence are shown as one storage boundary.
Main entry points: App.tsx App router · routes.ts API routes · AgustChatDrawer.tsx Agust chat · goal_routes.ts Goal routes
Components 26
Wellness experience
- App router
client/src/App.tsx - Dashboard
client/src/pages/Dashboard.tsx - Mood check-in
client/src/pages/Checkin.tsx - Feelings journal
client/src/pages/Feelings.tsx - Wellness insights
client/src/pages/Analytics.tsx - Guided breathing
client/src/pages/Breathing.tsx - Mood Garden
client/src/components/MoodGarden.tsx - Voice journaling
client/src/components/VoiceRecorder.tsx - Sleep tracking
client/src/components/SleepTrackerCard.tsx - Future capsules
shared/routes.ts - Daily planner
client/src/pages/Planner.tsx - Goal hub
client/src/pages/GoalHub.tsx - Predictive insights
client/src/components/PredictiveInsights.tsx
Agust assistant
- Agust chat
client/src/components/agust/AgustChatDrawer.tsx - Persona engine
client/src/lib/agust-engine.ts - Notifications
client/src/hooks/use-notification-manager.ts
Application services
- API routes
server/routes.ts - Authentication
server/auth.ts - Goal routes
server/goal_routes.ts - AI helpers
server/openai_helper.ts - AI goal engine
server/ai_goal_engine.ts
Persistence and contracts
- Storage layer
server/storage.ts - Application data
server/db.ts - API and schemas
shared/routes.ts
Other components
- User
- OpenRouter service
Connections 26
- User → App router: uses
- App router → Dashboard: routes
- App router → Mood check-in: routes
- App router → Feelings journal: routes
- App router → Wellness insights: routes
- App router → Guided breathing: routes
- App router → Daily planner: routes
- App router → Goal hub: routes
- User → Mood Garden: interacts
- User → Voice journaling: dictates
- User → Sleep tracking: tracks sleep
- User → Future capsules: manages
- User → Predictive insights: views insights
- App router → Agust chat: hosts
- Agust chat → Persona engine: loads persona
- App router → Notifications: schedules
- User → API routes: sends requests
- API routes → Authentication: requires auth
- API routes → Storage layer: reads and writes
- API routes → AI helpers: requests AI
- API routes → Goal routes: registers routes
- Goal routes → AI goal engine: generates roadmap
- AI goal engine → OpenRouter service: requests completion
- AI helpers → OpenRouter service: requests AI
- Storage layer → Application data: persists data
- API routes → API and schemas: uses route contracts