Feature | Description | Impact |
---|---|---|
π Gradient Drift | Mesmerizing color transitions | Creates depth & calmness |
π Reveal-on-Scroll | Elements gracefully appear | Premium feel & engagement |
π― Micro-interactions | Responsive hover effects | Professional polish |
π Theme Transitions | Smooth light/dark switching | Seamless UX |
βΏ Accessibility-First | Respects motion preferences | Inclusive design |
/* Example: Signature Gradient Animation */
@keyframes gradientDrift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.hero-gradient {
background: linear-gradient(-45deg, #5965e0, #0f766e, #f59e0b, #ef4444);
background-size: 400% 400%;
animation: gradientDrift 15s ease infinite;
}
π¦ Installation & Setup
# π₯ Clone the repository
git clone https://github.com/OrbitWork/MindEase-AI-Companion.git
cd MindEase-AI-Companion
# π Install dependencies
npm install
# π§ Environment setup
cp .env.example .env
# βοΈ Configure your API keys
# - OpenAI API Key (for AI conversations)
# - YouTube Data API Key (for wellness content)
# - Firebase Config (for user data & authentication)
# π Launch development server
npm run dev
# π Open http://localhost:3000
|
|
|
|
Backend: Node.js β’ Express.js β’ RESTful APIs
Frontend: Vanilla JS β’ CSS3 β’ HTML5 β’ ES6 Modules
Database: Firebase Firestore β’ Real-time sync
Authentication: Firebase Auth β’ Secure & scalable
AI Integration: OpenAI GPT β’ Natural conversations
Content: YouTube Data API v3 β’ Rich media
ML Features: face-api.js β’ Optional mood detection
Security Feature | Implementation | Benefit |
---|---|---|
π User Data Control | Personal Firebase accounts | Complete ownership |
π― Scoped Access | User-specific Firestore rules | Data isolation |
π« Zero Tracking | No third-party analytics | True privacy |
β Explicit Consent | Permission-based features | User choice |
π API Protection | Server-side key management | Secure integration |
β οΈ Medical Disclaimer: MindEase is a wellness companion, not medical software. Always consult healthcare professionals for serious mental health concerns.
ποΈ Detailed File Structure
MindEase-AI-Companion/
βββ π node_modules/ # Dependencies
βββ π public/ # Static assets
β βββ π assets/ # Images & media
β β βββ πΌοΈ logo.png
β β βββ π± favicons/
β β βββ π§ models/ # Face detection models
β β βββ π΅ sounds/ # Ambient audio
β β βββ π stories/ # Sleep stories
β βββ π css/ # Stylesheets
β β βββ π home.css
β β βββ π¬ chat.css
β β βββ π dashboard.css
β β βββ π resource.css
β βββ π js/ # Client-side logic
β β βββ π₯ firebase-config.js
β β βββ π home.js
β β βββ π¬ chat.js
β β βββ π dashboard.js
β β βββ π resource.js
β βββ π *.html # Pages
βββ βοΈ server.js # Express server
βββ π¦ package.json # Dependencies
βββ π .env # Environment variables
βββ π README.md # This file
Node.js 18+ β’ Git β’ Firebase Account β’ OpenAI API Key
OPENAI_API_KEY=your_openai_key_here
YOUTUBE_API_KEY=your_youtube_key_here
# Firebase config in firebase-config.js
npm run dev # Start development server
npm run build # Build for production
npm run test # Run test suite
npm run deploy # Deploy to hosting
π Contribution Guidelines
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature
- Commit changes:
git commit -m 'Add amazing feature'
- Push to branch:
git push origin feature/amazing-feature
- Open Pull Request
- π¨ UI/UX improvements
- π€ AI conversation enhancements
- π± Mobile responsiveness
- βΏ Accessibility features
- π§ Performance optimizations
- π Documentation updates
- ESLint configuration
- Prettier formatting
- Semantic commit messages
- Comprehensive testing
- Documentation updates
MIT License - see LICENSE file for details
This project is open-source and available under the MIT License.
Report bugs and request features |
Community support and ideas |
Project lead and maintainer |