Project-Hackathon

Emotion & Wellness Analyzer

An AI-powered tool that analyzes text input (journals, chats) to detect emotional patterns and suggest personalized wellness actions. Built to help identify early signs of stress or burnout.

Features

Tech Stack

Backend

Frontend

Setup Instructions

Backend Setup

  1. Navigate to the backend directory:
    cd backend
    
  2. Create a virtual environment (recommended):
    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:
    pip install -r requirements.txt
    
  4. Run the server:
    python main.py
    

The API will be available at http://localhost:8000

Frontend Setup

  1. Navigate to the frontend directory:
    cd frontend
    
  2. Install dependencies:
    npm install
    
  3. Start the development server:
    npm run dev
    

The app will be available at http://localhost:3000

Usage

  1. Start both the backend and frontend servers
  2. Open the web app in your browser
  3. Enter or paste text (journal entries, chat messages, etc.)
  4. Select the source type (Journal or Chat)
  5. Click “Analyze Emotions” to get:
    • Emotional pattern analysis
    • Sentiment breakdown
    • Stress indicators
    • Wellness score
    • Personalized wellness suggestions
  6. View patterns over time in the visualization section

API Endpoints

Example Analysis

Input text:

"I've been feeling really overwhelmed lately with all the deadlines. 
I can't seem to catch up and I'm constantly anxious about everything. 
I haven't been sleeping well and I feel exhausted all the time."

The tool will detect:

Project Structure

.
├── backend/
│   ├── main.py                 # FastAPI application
│   ├── emotion_analyzer.py     # Emotion detection logic
│   ├── wellness_suggestions.py # Wellness suggestion engine
│   └── requirements.txt        # Python dependencies
├── frontend/
│   ├── src/
│   │   ├── components/         # React components
│   │   ├── App.jsx             # Main app component
│   │   └── main.jsx            # Entry point
│   ├── package.json            # Node dependencies
│   └── vite.config.js          # Vite configuration
└── README.md

Future Enhancements

License

MIT License