72-Hour Personal Energy & Mood Forecasting
A real-time prediction engine that forecasts your energy, mood, focus, and crash risk for the next 72 hours based on daily habits. Test "what if" scenarios to optimize your week.
- 📊 72-Hour Forecast — Predict energy, mood, focus, and recovery across 3 time windows
- 🎯 Real-Time Scoring — Rule-based calculation engine (no AI dependency)
- 🔮 What If Simulator — Test how sleep, alcohol, exercise impact your forecast
- 💬 AI Insights — Claude-powered personalized recommendations & chat
- 📱 Mobile-Responsive — Built with React & Tailwind CSS
- 🔒 Privacy-First — Opt-in Supabase storage, encrypted data
- Frontend: Next.js 16, React 19, TypeScript, Tailwind CSS, Recharts
- Backend: Next.js API Routes, Supabase (optional persistence)
- Calculation: Pure TypeScript (deterministic, testable, no ML)
- AI: Claude API (Anthropic) for insights & chat
- Deploy: Vercel-ready
cd Mirror72
npm install
npm run dev- Daily Check-In — Enter sleep, stress, alcohol, exercise, hydration, food
- Instant Forecast — Get 72-hour prediction with top impactors
- What If Test — Simulate changes ("if I sleep 8h instead of 6")
- AI Chat — Get personalized recommendations & store chat history
Mirror72/
├── app/ # Next.js App Router
│ ├── page.tsx # Main dashboard
│ ├── dashboard/ # Dashboard page
│ └── api/ # API endpoints
│ ├── chat-logs/ # Chat history storage
│ ├── ai-insight/ # AI recommendations
│ └── ai-chat/ # AI chat streaming
├── components/ # React components
│ ├── AIChat.tsx # Chat interface
│ ├── ChatLogHistory.tsx # Chat history display
│ ├── DailyCheckIn.tsx # Input form
│ ├── ForecastGraph.tsx # Visualization
│ └── ...
└── lib/ # Core logic
├── engine.ts # Forecast generation
├── scoring.ts # Score calculation
└── constants.ts # Thresholds & multipliers
- Setup Guide — Detailed onboarding for teammates
- Architecture — System design
| Hackathon Project | Open to Feedback