How aana123/syntra works
Syntra is a personal digital-twin platform: users establish a profile, ingest health/financial/career data, review scores and AI reflections, execute goals, and test scenarios. The map includes documented capabilities such as Google Fit, document extraction, gamification, and chat. Route-to-service links are shown where excerpts or the README support them; unsampled internals are represented conservatively.
Main entry points: log/route.ts Daily Logging · page.tsx Ingestion UI · upload/route.ts Document Extraction · simulate/route.ts Scenario Simulator
Components 26
User Experience
- Onboarding
src/app/onboarding/page.tsx - Twin Dashboard
src/app/dashboard/page.tsx - Twin Chat
src/components/ChatWidget.tsx - Net Worth View
src/components/NetWorthPanel.tsx
Data Ingestion
- Ingestion UI
src/app/ingestion/page.tsx - Document Uploader
src/components/Uploader.tsx - Document Extraction
src/app/api/ingestion/upload/route.ts - Batch Import
src/app/api/upload/csv/route.ts - Google Fit Sync
src/lib/services/googleFitSync.ts - Prototype Sync
src/app/api/ingestion/sync-prototype/route.ts
Twin Intelligence
- Daily Logging
src/app/api/log/route.ts - Dashboard API
src/app/api/dashboard/route.ts - Dashboard Assembly
src/services/dashboardService.ts - Twin Reflection
src/lib/services/snapshotService.ts - Context Builder
src/lib/services/aiContextBuilder.ts - Drift Analysis
src/lib/logic/driftEngine.ts - Gemini Service
src/lib/services/gemini.ts
Goals and Simulation
- Goal Execution
src/app/api/goals/route.ts - Gamification
src/app/api/goals/gamification/route.ts - Scenario Simulator
src/app/api/simulate/route.ts
Identity and Data
- Authentication
src/lib/auth.ts - User Profile Model
src/models/User.ts - Telemetry Log Model
src/models/Log.ts - Asset Model
src/models/AssetLiability.ts - MongoDB
src/lib/database/mongodb.ts
Other components
- User
Connections 34
- User → Onboarding: sets baseline
- User → Ingestion UI: uploads or syncs
- User → Twin Dashboard: reviews twin
- User → Goal Execution: sets goals
- User → Scenario Simulator: tests scenarios
- Ingestion UI → Document Uploader: offers upload
- Document Uploader → Document Extraction: submits document
- Document Extraction → MongoDB: connects database
src/app/api/ingestion/upload/route.ts - Document Extraction → Telemetry Log Model: checks and writes logs
src/app/api/ingestion/upload/route.ts - Document Extraction → User Profile Model: loads and saves user
src/app/api/ingestion/upload/route.ts - Document Extraction → Twin Reflection: schedules reflection
src/app/api/ingestion/upload/route.ts - Ingestion UI → Google Fit Sync: connects Google Fit
- Ingestion UI → Batch Import: imports CSV or Excel
- Ingestion UI → Prototype Sync: syncs sample sources
- Daily Logging → Authentication: authenticates
src/app/api/log/route.ts - Daily Logging → MongoDB: connects database
src/app/api/log/route.ts - Daily Logging → User Profile Model: loads and updates
src/app/api/log/route.ts - Daily Logging → Telemetry Log Model: records log
src/app/api/log/route.ts - Daily Logging → Twin Reflection: schedules reflection
src/app/api/log/route.ts - Twin Dashboard → Dashboard API: requests twin data
- Dashboard API → Dashboard Assembly: serves dashboard
- Dashboard Assembly → MongoDB: connects database
src/services/dashboardService.ts - Dashboard Assembly → User Profile Model: loads profile
src/services/dashboardService.ts - Dashboard Assembly → Telemetry Log Model: loads recent logs
src/services/dashboardService.ts - Twin Chat → User: supports coaching
- Twin Reflection → Context Builder: builds twin context
src/lib/services/snapshotService.ts - Twin Reflection → Drift Analysis: analyzes divergence
src/lib/services/snapshotService.ts - Twin Reflection → Gemini Service: generates reflection
src/lib/services/snapshotService.ts - Goal Execution → Gamification: tracks rewards
- Scenario Simulator → MongoDB: connects database
src/app/api/simulate/route.ts - Scenario Simulator → User Profile Model: loads user goals
src/app/api/simulate/route.ts - Scenario Simulator → Asset Model: uses financial state
src/app/api/simulate/route.ts - Scenario Simulator → Gemini Service: requests insight
- Authentication → User Profile Model: authenticates accounts