How injo007/fit-mom works
Fit Mom Reset is a postpartum and maternal wellness application with member and admin experiences. Members authenticate, complete onboarding, and use a dashboard and wellness features; the client calls a server API that applies authentication, tenant context, safety and entitlement checks, and persists application data. Documented capabilities are reflected in feature nodes, but unsampled routes are grouped by subsystem rather than asserting a detailed request sequence. Edges cite excerpts or SOURCE INDEX references; some feature-to-API connections are therefore omitted.
Main entry points: App.tsx Application shell · app.ts HTTP API · aiOrchestrator.ts AI coaching · db.ts Tenant-scoped database
Components 27
Member application
- Application shell
src/App.tsx - Sign-in and onboarding
src/components/AuthPage.tsx - Client auth state
src/AuthContext.tsx - App navigation
src/navigation/navigation.ts
Wellness features
- Today dashboard
src/components/TodayDashboard.tsx - Workout tracking
src/components/WorkoutSection.tsx - Habit tracking
src/components/HabitTracker.tsx - Hydration tracking
src/components/HydrationTracker.tsx - Nutrition planning
src/components/NutritionSection.tsx - Baby tracking
src/components/BabyTracker.tsx - Recovery and screening
src/components/RecoverySection.tsx - Community
src/components/CommunitySection.tsx - Admin console
src/components/AdminConsole.tsx
API and domain services
- HTTP API
server/app.ts - Authentication routes
server/routes/auth.ts - AI coaching
server/aiOrchestrator.ts - Coaching context
server/coaching.ts - Safety rules
server/safety.ts - Nutrition services
server/nutrition.ts - Pregnancy nutrition
server/pregnancy-nutrition.ts - Notifications
server/notifications.ts - Feature entitlements
server/entitlements.ts
Identity and persistence
- Tenant resolution
server/tenants.ts - Tenant-scoped database
server/db.ts
Other components
- Member
- Admin
- Google Gemini
Connections 29
- Member → Application shell: uses
- Admin → Application shell: uses
- Application shell → Sign-in and onboarding: renders
src/App.tsx - Application shell → Today dashboard: renders
src/App.tsx - Application shell → Workout tracking: renders
src/App.tsx - Application shell → Habit tracking: renders
src/App.tsx - Application shell → Hydration tracking: renders
src/App.tsx - Application shell → Nutrition planning: renders
src/App.tsx - Application shell → Baby tracking: renders
src/App.tsx - Application shell → Recovery and screening: renders
src/App.tsx - Application shell → Community: renders
src/App.tsx - Application shell → Admin console: renders
src/App.tsx - Application shell → App navigation: uses
src/App.tsx - Sign-in and onboarding → Client auth state: uses
src/components/AuthPage.tsx - Client auth state → HTTP API: requests auth
src/AuthContext.tsx - HTTP API → Authentication routes: mounts routes
server/app.ts - Authentication routes → Tenant resolution: resolves tenant
server/routes/auth.ts - Authentication routes → Tenant-scoped database: reads and writes
server/routes/auth.ts - HTTP API → Tenant-scoped database: reads and writes
server/app.ts - HTTP API → Safety rules: uses safety
server/app.ts - HTTP API → Notifications: creates notifications
server/app.ts - HTTP API → Feature entitlements: checks access
server/app.ts - HTTP API → Nutrition services: uses nutrition
server/app.ts - HTTP API → Pregnancy nutrition: uses nutrition
server/app.ts - HTTP API → AI coaching: routes coaching
server/app.ts - AI coaching → Coaching context: gets context
server/aiOrchestrator.ts - AI coaching → Tenant-scoped database: persists replies
server/aiOrchestrator.ts - AI coaching → Google Gemini: generates replies
server/aiOrchestrator.ts - Tenant-scoped database → Tenant resolution: gets tenant context
server/db.ts