MindEase is an intelligent mental wellness platform that combines AI-powered conversations with dynamic sentiment analysis and interactive breathing exercises. Built with Next.js 14 and powered by Llama 3, it provides a safe, judgment-free space for emotional support while maintaining complete privacy through a stateless architecture.
- Overview
- Prerequisites
- Technologies Utilized
- Features
- Run Locally
- Deployment
- Configuration
- Project Structure
- Privacy & Security
- Crisis Support
- License
- Contact
Mental wellness is crucial, yet many hesitate to seek support due to stigma or accessibility barriers. MindEase bridges this gap by offering:
- 24/7 AI-powered emotional support through context-aware conversations
- Real-time sentiment analysis that adapts the interface to your emotional state
- Interactive wellness tools including guided breathing exercises
- Complete privacy with zero data retention architecture
- Immediate crisis support with integrated Indian helpline resources
Before setting up MindEase, ensure you have the following installed and configured:
- Node.js (v18.x or later)
- npm or pnpm (package manager)
- Git (for version control)
- API Keys (see Configuration section)
- π€ Empathetic AI Companion: Context-aware conversations powered by Llama 3 that understand and respond to emotional nuances.
- π¨ Dynamic Sentiment Analysis: Real-time mood detection with UI color adaptation (Blue/Orange/Green) based on user emotions.
- π§ Serenity Breath Mode: Interactive guided breathing exercises with visual cues and optional haptic feedback.
- π€ Voice-to-Vent: Seamless speech-to-text input for natural, hands-free conversations.
- π Privacy by Design: Stateless architecture with zero data retentionβyour conversations are never stored.
- π Crisis Intervention: Quick access to Indian mental health helplines including Tele-MANAS (14416) and National Emergency (112).
- π± Responsive Design: Fully optimized experience across all devices.
- βΏ Accessibility First: WCAG compliant with keyboard navigation and screen reader support.
To run MindEase on your local machine, follow these steps:
-
Clone the Repository:
git clone https://github.com/RanitDERIA/mindease.git cd mindease -
Install Dependencies:
npm install
or
pnpm install
-
Environment Setup: Create a
.env.localfile in the root directory and add your API keys:# Groq AI Configuration GROQ_API_KEY=your_groq_api_key_here # Web3Forms Configuration (for contact form) NEXT_PUBLIC_WEB3FORMS_ACCESS_KEY=your_web3forms_key_here
-
Start the Development Server:
npm run dev
-
Open Your Browser: Navigate to http://localhost:3000 to see the application running.
The application is optimized for deployment on Vercel, leveraging Next.js's native integration.
Deploy to Vercel:
- Push your code to a GitHub repository.
- Connect your repository to Vercel.
- Configure environment variables in the Vercel project dashboard:
GROQ_API_KEYNEXT_PUBLIC_WEB3FORMS_ACCESS_KEY
- Deploy! Vercel will automatically build and deploy your application.
Alternative Platforms: MindEase can be deployed to any platform supporting Next.js (Netlify, Railway, DigitalOcean, etc.).
Required API Keys:
- Groq API Key: Sign up at Groq Cloud to access Llama 3 models for AI conversations.
- Web3Forms Access Key: Create a free account at Web3Forms for contact form functionality.
mindease/
βββ app/ # Next.js App Router directory
β βββ about/ # About page
β βββ api/ # API routes
β β βββ chat/ # AI chat endpoint
β βββ chat/ # Main chat interface page
β βββ components/ # React components
β β βββ ChatInterface.tsx # Main chat UI component
β β βββ ChatWidget.tsx # IBM Watson chatbot widget
β β βββ Features.tsx # Features showcase section
β β βββ Footer.tsx # Global footer
β β βββ Hero.tsx # Landing page hero
β β βββ Navbar.tsx # Global navigation
β β βββ SentimentIndicator.tsx # Emotion visualization
β β βββ SerenityBreath.tsx # Breathing exercise component
β β βββ VoiceInput.tsx # Speech recognition interface
β βββ contact/ # Contact page
β βββ hooks/ # Custom React hooks
β β βββ useSpeechRecognition.ts # Voice input hook
β βββ privacy/ # Privacy policy page
β βββ terms/ # Terms of service page
β βββ globals.css # Global styles
β βββ layout.tsx # Root layout component
β βββ page.tsx # Landing page
βββ public/ # Static assets
βββ readme-assets/ # Documentation images
βββ .gitignore # Git ignore configuration
βββ next.config.ts # Next.js configuration
βββ package.json # Dependencies and scripts
βββ tailwind.config.ts # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
MindEase is built with privacy as a core principle:
- Zero Data Retention: Conversations are processed in real-time and never stored on servers.
- Stateless Architecture: No user tracking, cookies, or persistent sessions.
- Secure API Calls: All AI interactions use encrypted HTTPS connections.
- Local Processing: Sentiment analysis and speech recognition happen client-side when possible.
- No Account Required: Use MindEase anonymously without signup or login.
Note: While MindEase prioritizes privacy, please review our Privacy Policy and Terms of Service before use.
MindEase provides immediate access to professional mental health resources:
Indian Mental Health Helplines:
- Tele-MANAS: 14416 (National Mental Health Helpline)
- National Emergency: 112
- AASRA: 9820466726 (24/7 Suicide Prevention)
- Vandrevala Foundation: 1860-2662-345 / 1800-2333-330
Important: MindEase is a supportive tool and not a replacement for professional mental health care. If you're experiencing a mental health crisis, please contact emergency services or a mental health professional immediately.
This project is licensed under the MIT License - see the LICENSE file for details.
If you want to get in touch or have any questions regarding this project, feel free to reach out:
π§ Email: bytebardderia@gmail.com
πΌ LinkedIn: Ranit Deria
π¦ Twitter: @DeriaRanit
π» GitHub: @RanitDERIA
For any inquiries, suggestions, or bug reports, you can also:
- π Open an issue on GitHub
- π¬ Start a discussion in the repository
- π© Send a direct message via social media
β Star this repository if you find it helpful!
π If MindEase has helped you, consider sharing it with someone who might need support.
Made with β€οΈ by Ranit Deria