An AI-powered mood tracking and reflection web app built with Flask.
Mood Mirror is a web application that helps users track, understand, and reflect on their emotional well-being over time. Powered by AI, it analyzes mood entries and offers personalized insights — acting as a mirror for your inner emotional state.
| Layer | Technology |
|---|---|
| Backend | Python, Flask |
| AI | Anthropic / OpenAI API (ai.py) |
| Database | SQLite (db.py, models.py) |
| Frontend | HTML, CSS, JS (templates/, static/) |
Mood_Mirror/
├── app.py # Main Flask application & routes
├── ai.py # AI integration for mood analysis
├── models.py # Database models
├── db.py # Database connection setup
├── create_db.py # Script to initialize the database
├── create_tables.py # Script to create database tables
├── migrate_db.py # Database migration utility
├── message_column.py # Helper for message/column operations
├── static/ # CSS, JS, and static assets
├── templates/ # HTML Jinja2 templates
└── .gitignore
git clone https://github.com/sakshidangi2006/Mood_Mirror.git
cd Mood_Mirror
pip install -r requirements.txt
python create_db.py
python create_tables.py
Configure environment variables
Create a .env file in the root directory:
SECRET_KEY=your_secret_key
AI_API_KEY=your_api_key_here
python app.py
http://127.0.0.1:5000Contributions, issues, and feature requests are welcome! Feel free to open a pull request or issue.
Sakshi Dangi — @sakshidangi2006
This project is open source and available under the MIT License.