Your personal reflection companion powered by AI.
Write about your day and get AI-powered insights about your emotions and patterns.
Mirror AI helps you understand yourself better by analyzing your daily reflections with AI. Just write about your day, and get instant insights on:
- Your emotional state (sentiment analysis)
- Empathetic summaries and suggestions
- Recurring themes and patterns
- Trends over time
- 🤖 AI Analysis - Sentiment analysis and empathetic summaries
- 📊 Dashboard - Visualize your mood trends and patterns
- 📱 Mobile-Friendly - Works on any device
- 🔒 Private - Your data stays secure in Supabase
- Python 3.11+
- Node.js 18+
-
Clone the repository
git clone https://github.com/MhussainD4772/Mirror-AI.git cd Mirror-AI -
Backend setup
cd backend pip install -r requirements.txt # Set up .env with your credentials (see below) uvicorn main:app --reload
-
Frontend setup (new terminal)
cd frontend npm install npm run dev -
Visit http://localhost:3000
Create a .env file in the backend directory:
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_anon_key
HF_TOKEN=your_huggingface_token- Frontend: Next.js + TypeScript + TailwindCSS
- Backend: FastAPI (Python)
- Database: Supabase (PostgreSQL)
- AI: Hugging Face Models (free)
- Deployment: Vercel (frontend) + Render (backend)
mirror-ai/
├── backend/
│ ├── main.py # FastAPI app
│ ├── routes/ # API routes
│ ├── services/ # AI services
│ └── supabase_client.py # DB client
├── frontend/
│ ├── pages/ # Next.js pages
│ ├── components/ # React components
│ └── utils/ # API client
└── README.md
- Connect GitHub repo to Render
- Set root directory:
backend - Add environment variables
- Deploy
- Import repo to Vercel
- Set root directory:
frontend - Add
NEXT_PUBLIC_BACKEND_URLvariable - Deploy
Contributions are welcome! Just fork the repo and submit a pull request.
MIT License
Built with ❤️ for self-discovery