You Matter is a comprehensive web application designed to provide mental health support and wellness resources for students and individuals. The platform offers self-assessment tools, mood tracking, journaling, AI-powered support, therapist consultations, stress-relief toolkits, and community connection features.
- Quick mental health questionnaire to evaluate current state
- Personalized recommendations based on assessment results
- Tracks assessment history for users (when logged in)
- Log daily moods with 5 emotion levels (Happy, Good, Neutral, Anxious, Low)
- Visual mood graph showing trends over time
- Optional notes for each mood entry
- Track emotional patterns and identify triggers
- Box Breathing Exercise with guided animations
- 5-4-3-2-1 Grounding Technique for anxiety management
- Quick Stress Relief Methods (ice water, progressive relaxation, humming breath, etc.)
- YouTube video links for each technique
- Step-by-step instructions for each exercise
- Password-protected private journal entries
- Create, read, edit, and delete entries
- Tag entries with mood labels
- Track personal thoughts and reflections
- Timestamps for all entries
- Chat with an AI assistant powered by the Vercel AI SDK
- Empathetic responses for mental health concerns
- Available 24/7 for users feeling down
- Emergency resource suggestions
- Browse mental health professionals
- View therapist credentials and specializations
- Check availability and rates
- Book consultations directly through the platform
- Schedule appointments with preferred therapists
- Real-time peer-to-peer messaging
- Connect with other users for mutual support
- Anonymous messaging option
- Delete your own messages
- Supportive community guidelines
- Kiran Mental Health Helpline and other verified contacts
- Quick access to crisis resources
- Professional mental health support numbers
- React with TypeScript for type-safe components
- Next.js 16 for server-side rendering and API routes
- Tailwind CSS for responsive design
- Lucide React for icons
- Framer Motion for animations
- date-fns for date formatting
- Supabase (PostgreSQL) for data storage
- Supabase Auth for user authentication
- Supabase Realtime for live community chat
- Row Level Security (RLS) for data protection
- Vercel AI SDK 6 for chatbot functionality
- OpenAI as the default AI model provider
- Node.js (v18 or higher)
- npm or pnpm package manager
- Supabase account (free tier available)
-
Clone the repository
git clone https://github.com/akira-616/YouMatter_by_CodeHeist.git cd YouMatter_by_CodeHeist -
Install dependencies
pnpm install
-
Set up environment variables
Create a
.env.localfile with:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key -
Run the development server
pnpm dev
-
Access the application
Open
http://localhost:3000in your browser
- Visit the home page to explore available features
- Try the Self-Assessment tool (no login required)
- Use the Calm Toolkit for immediate stress relief
- Create an account to unlock personalized features
- Track Your Mood: Log daily emotions and see visual trends
- Journal Privately: Create password-protected journal entries
- Get AI Support: Chat with the mental health AI assistant
- Find Help: Browse therapists and book consultations
- Connect: Join the community to support and be supported by others
- Access Profile: View your wellness journey and statistics
- Use the sidebar navigation to access different sections
- Click the hamburger menu (☰) on mobile to toggle sidebar
- Use the collapse button on desktop to minimize the sidebar
- Quick access buttons on the home page for main features
profiles
- Stores user profile information
- Contains display name and creation date
- Password-protected journal access
mood_entries
- Tracks daily mood logs
- Stores mood score (1-5), label, and optional notes
- Timestamps for trend analysis
journal_entries
- Stores journal entries with title, content, and mood tags
- Tracks creation and update dates
- User-specific with RLS protection
community_messages
- Real-time community chat messages
- User identification and timestamps
- Allows message deletion by sender
app/
├── page.tsx # Home page with all main sections
├── layout.tsx # Root layout with metadata
├── globals.css # Global styles and color tokens
├── auth/ # Authentication pages
│ ├── login/
│ ├── sign-up/
│ ├── sign-up-success/
│ └── error/
├── api/
│ ├── support/ # AI chatbot API
│ └── assessment/ # Assessment storage API
├── profile/ # User profile and settings
├── journal/ # Journal management
├── therapists/ # Therapist directory
├── ai-support/ # AI chat interface
└── community/ # Community chat
components/
├── sidebar-nav.tsx # Navigation sidebar
├── header.tsx # Top header with login
├── toolkit-modal.tsx # Calm toolkit modal
├── self-assessment.tsx # Assessment component
├── mood-graph.tsx # Mood trend visualization
├── journal-*.tsx # Journal components
├── booking-modal.tsx # Therapist booking
├── community-chat-client.tsx # Community messaging
└── ui/ # shadcn UI components
lib/
├── supabase/ # Supabase client setup
└── utils.ts # Utility functions
Users can set a password in their profile security settings. The journal requires password verification before viewing entries, with passwords secured using bcrypt hashing.
Built with Supabase Realtime subscriptions for instant message delivery. Messages sync across all connected users in real-time with RLS policies ensuring users only see messages they're allowed to see.
The AI chatbot uses the Vercel AI SDK with streaming responses. It provides empathetic, supportive guidance and suggests professional help when appropriate. The system prompt is configured to be supportive and non-judgmental.
Mood entries are stored with timestamps. The mood graph component visualizes trends over time, helping users identify patterns and triggers.
- Email/Password authentication via Supabase Auth
- Row Level Security (RLS) policies on user data tables
- Per-user data scoping ensures users only access their own data
- Password-protected journal with bcrypt hashing
- Optional email confirmation for account security
- Push code to GitHub
- Connect GitHub repository to Vercel
- Add environment variables in Vercel dashboard
- Vercel automatically deploys on push to main branch
pnpm build
pnpm start- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
- Video consultations with therapists
- Integration with wearable devices for mood tracking
- Advanced analytics and insights
- Support groups and group therapy sessions
- Medication reminders
- Sleep tracking
- Exercise recommendations based on mood
- Integration with crisis hotlines
- Emergency: Use the emergency helplines section
- Technical Issues: Check the GitHub issues page
- Mental Health Crisis: Please reach out to professional services
This project is open source and available under the MIT License.
This application is designed to complement, not replace, professional mental health care. If you're experiencing a mental health crisis, please contact emergency services or a mental health professional immediately.
Last Updated: June 2026 Version: 1.0.0