A beautiful, modern web application that uses AI to analyze your mood and provide personalized recommendations for movies, music, podcasts, audiobooks, and games to enhance your emotional well-being.
- 🤖 AI-Powered Analysis: Uses OpenAI to understand your mood and preferences
- 🎯 Personalized Recommendations: Get tailored content suggestions across 5 categories
- 📸 Beautiful Imagery: Real photos from Unsplash for every recommendation
- 📊 Mood Tracking: Dashboard to track your emotional journey over time
- 🎨 Modern UI: Beautiful gradient design with glass-morphism effects
- 📱 Responsive: Works perfectly on all devices
git clone https://github.com/AK050744/mood_enhancer_.git
cd mood_enhancer_# Install pnpm if you don't have it
npm install -g pnpm
# Install project dependencies
pnpm install- Visit OpenAI Platform
- Create an account or sign in
- Generate a new API key
- Copy your API key
- Visit Unsplash Developers
- Create an account and register an application
- Copy your Access Key
You can set environment variables in two ways:
Option A: Using DevServerControl (Recommended for secrets)
# Start the dev server first
pnpm dev
# Then use the DevServerControl in the Builder.io interface to set:
# OPENAI_API_KEY: your_actual_openai_key
# UNSPLASH_ACCESS_KEY: your_actual_unsplash_keyOption B: Create .env file
cp .env.example .env
# Edit .env and add your actual API keyspnpm devVisit http://localhost:8080 to see your app! 🎉
mood_enhancer_/
├── client/ # React frontend
│ ├── pages/ # Route components
│ │ ├── Index.tsx # Homepage with hero section
│ │ ├── Assessment.tsx # Mood questionnaire
│ │ ├── Recommendations.tsx # AI recommendations
│ │ └── Dashboard.tsx # Mood tracking dashboard
│ ├── components/ui/ # Reusable UI components
│ └── global.css # Tailwind styles & theme
├── server/ # Express backend
│ ├── routes/ # API endpoints
│ │ └── recommendations.ts # AI-powered recommendations
│ └── index.ts # Server setup
└── shared/ # Shared TypeScript types
- Purple to Cyan Gradient: Main brand colors
- Mood-specific Colors:
- Happy: Yellow (
#FFEB3B) - Calm: Cyan (
#00BCD4) - Sad: Blue (
#2196F3) - Angry: Red (
#F44336)
- Happy: Yellow (
- Glass-morphism: Translucent cards with backdrop blur
- Smooth Animations: Hover effects and transitions
- Responsive Grid: Adapts to all screen sizes
- Beautiful Typography: Clear hierarchy and readability
- Uses GPT-3.5-turbo for content recommendations
- Analyzes mood, energy level, preferences, and personal story
- Generates contextual reasons for each recommendation
- Fallback to mock data if API fails
- Fetches real, beautiful images for each recommendation
- Dynamic search based on content type and title
- Automatic fallback to placeholder images
- Optimized image sizes for performance
- Gradient hero section with call-to-action
- Content category overview with background images
- Feature explanations and statistics
- Modern navigation with glass-morphism
- Multi-step questionnaire with progress tracking
- Emoji-based mood selection
- Text areas for personal stories
- Smooth navigation between questions
- Tabbed interface for 5 content categories
- Beautiful image cards for each recommendation
- Thumbs up/down feedback system
- Reasons why each item was recommended
- Mood history visualization
- Weekly/monthly statistics
- Content usage analytics
- Personal insights and trends
pnpm dev # Start development server
pnpm build # Build for production
pnpm start # Start production server
pnpm test # Run Vitest tests
pnpm typecheck # TypeScript validation- Frontend: React 18, TypeScript, Tailwind CSS, Vite
- Backend: Express, Node.js
- AI: OpenAI GPT-3.5-turbo
- Images: Unsplash API
- UI Components: Radix UI, Lucide React icons
- Routing: React Router 6
- State Management: React hooks + localStorage
The app is ready for deployment on:
- Netlify: Static site hosting
- Vercel: Full-stack deployment
- Railway: Backend hosting
- Heroku: Traditional cloud platform
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for the powerful GPT-3.5 API
- Unsplash for beautiful, free images
- Pexels for additional stock photography
- Radix UI for accessible components
- Tailwind CSS for utility-first styling
Built with ❤️ for better mental health and emotional well-being
Transform your day with AI-powered mood enhancement! 🌈
