A real-time mental wellness monitoring dashboard that visualizes brainwave patterns and provides AI-powered insights for stress management and cognitive optimization.
- Real-time Brainwave Visualization - Interactive charts displaying Alpha, Beta, Theta, Delta, and Gamma wave patterns
- Mental State Analysis - Dynamic assessment of focus, relaxation, stress, and creativity levels
- AI-Powered Assistant - Conversational interface for personalized wellness guidance using Google Gemini 2.5 Flash
- Stress Monitoring - Visual gauge with real-time stress level tracking
- Daily Trend Analysis - Historical data visualization for pattern recognition
- Personalized Recommendations - Context-aware suggestions for mental wellness improvement
- Accessibility Controls - Customizable interface options for enhanced usability
- Multiple Viewing Modes - Focus, Relax, Sleep, and Meditate modes with tailored visualizations
- React 18 with TypeScript for type-safe component development
- Vite for fast build tooling and hot module replacement
- Tailwind CSS for utility-first responsive styling
- shadcn/ui for accessible, customizable UI components
- Recharts for data visualization and interactive charts
- React Router DOM for client-side routing
- TanStack React Query for server state management
- React Hook Form + Zod for form handling and validation
- Deno Edge Functions for serverless API endpoints
- Google Gemini 2.5 Flash for AI-powered chat functionality
- PostgreSQL database with Row Level Security
- Real-time subscriptions for live data updates
- Node.js 18+
- npm or yarn
- Clone the repository
git clone <repository-url>
cd mindease- Install dependencies
npm install- Set up environment variables
# Create .env file with the following variables
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_PUBLISHABLE_KEY=your_supabase_anon_key- Start the development server
npm run dev- Open http://localhost:5173 in your browser
src/
├── components/ # Reusable UI components
│ ├── ui/ # shadcn/ui base components
│ ├── BrainwaveChart.tsx
│ ├── DailyTrendChart.tsx
│ ├── MentalStateCard.tsx
│ ├── StressGauge.tsx
│ └── ...
├── pages/ # Route pages
│ ├── Index.tsx # Landing page
│ ├── Dashboard.tsx # Main dashboard
│ └── Assistant.tsx # AI chat interface
├── hooks/ # Custom React hooks
├── lib/ # Utility functions
└── integrations/ # External service integrations
supabase/
└── functions/ # Edge functions
└── chat/ # AI chat endpoint
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
| Variable | Description |
|---|---|
VITE_SUPABASE_URL |
Backend API URL |
VITE_SUPABASE_PUBLISHABLE_KEY |
Public API key |
GEMINI_API_KEY |
(Optional) Google Gemini API key for local development |