Skip to content

jmsamaug/Mirror72

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Mirror72

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.

Features

  • 📊 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

Tech Stack

  • 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

Quick Start

cd Mirror72
npm install
npm run dev

Open http://localhost:3000

How It Works

  1. Daily Check-In — Enter sleep, stress, alcohol, exercise, hydration, food
  2. Instant Forecast — Get 72-hour prediction with top impactors
  3. What If Test — Simulate changes ("if I sleep 8h instead of 6")
  4. AI Chat — Get personalized recommendations & store chat history

Project Structure

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

Documentation


| Hackathon Project | Open to Feedback

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages