Skip to content

smoxhakim/MindBridge

Repository files navigation

🧠 MindBridge AI

Bridging the gap between struggle and support with AI-powered mental health care available 24/7

Next.js React TypeScript Tailwind CSS

MindBridge AI is a modern web application designed to provide accessible, AI-powered mental health support. Built with cutting-edge technologies, it offers a safe, private, and empathetic space for users to discuss their mental health concerns anytime, anywhere.

MindBridge AI Hero

✨ Key Features

  • πŸ€– AI-Powered Conversations - Natural, empathetic interactions powered by advanced language models
  • πŸŒ™ 24/7 Availability - Support whenever you need it, day or night
  • πŸ”’ Privacy & Security - End-to-end encryption and HIPAA-compliant data protection
  • πŸ“Š Mood Tracking - Visualize your emotional journey with interactive charts
  • 🎯 Personalized Support - Tailored coping strategies based on your needs
  • 🚨 Crisis Intervention - Immediate connection to professional resources when needed
  • 🌍 Multi-Language Support - Accessible in 15+ languages
  • πŸ“± Responsive Design - Seamless experience across all devices

πŸ› οΈ Tech Stack

Frontend

Additional Libraries

  • Forms: React Hook Form + Zod validation
  • Theme: next-themes for dark/light mode
  • Date Handling: date-fns
  • Notifications: Sonner

πŸ“ Project Structure

aice/
β”œβ”€β”€ app/                      # Next.js App Router
β”‚   β”œβ”€β”€ globals.css          # Global styles and Tailwind directives
β”‚   β”œβ”€β”€ layout.tsx           # Root layout with theme provider
β”‚   └── page.tsx             # Home page
β”œβ”€β”€ components/              # React components
β”‚   β”œβ”€β”€ ui/                  # shadcn/ui components (50+ components)
β”‚   β”œβ”€β”€ ai-prototype.tsx     # Interactive AI chat demo
β”‚   β”œβ”€β”€ business-model.tsx   # Pricing and business model section
β”‚   β”œβ”€β”€ creative-storytelling.tsx  # User stories and testimonials
β”‚   β”œβ”€β”€ data-visualization.tsx     # Mental health statistics charts
β”‚   β”œβ”€β”€ footer.tsx           # Footer component
β”‚   β”œβ”€β”€ hero.tsx             # Hero section
β”‚   β”œβ”€β”€ navbar.tsx           # Navigation bar
β”‚   β”œβ”€β”€ problem-solution.tsx # Problem statement and solution
β”‚   β”œβ”€β”€ technical-innovation.tsx   # Technical features showcase
β”‚   β”œβ”€β”€ theme-provider.tsx   # Theme context provider
β”‚   └── user-persona.tsx     # Target audience personas
β”œβ”€β”€ hooks/                   # Custom React hooks
β”‚   β”œβ”€β”€ use-mobile.tsx       # Mobile detection hook
β”‚   └── use-toast.ts         # Toast notification hook
β”œβ”€β”€ lib/                     # Utility functions
β”‚   β”œβ”€β”€ chart-types.ts       # Chart type definitions
β”‚   └── utils.ts             # Helper utilities (cn, etc.)
β”œβ”€β”€ public/                  # Static assets
β”‚   └── hero.png             # Hero image and other assets
β”œβ”€β”€ styles/                  # Additional styles
β”œβ”€β”€ components.json          # shadcn/ui configuration
β”œβ”€β”€ next.config.mjs          # Next.js configuration
β”œβ”€β”€ tailwind.config.ts       # Tailwind CSS configuration
β”œβ”€β”€ tsconfig.json            # TypeScript configuration
└── package.json             # Project dependencies

πŸš€ Getting Started

Prerequisites

  • Node.js 18.x or higher
  • npm, yarn, or pnpm package manager

Installation

  1. Clone the repository

    git clone https://github.com/smoxhakim/MindBridge.git
    cd aice
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Run the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  4. Open your browser

    Navigate to http://localhost:3000 to see the application.

Environment Variables

Create a .env.local file in the root directory for environment-specific configurations:

# Add your environment variables here
# Example:
# NEXT_PUBLIC_API_URL=your_api_url
# OPENAI_API_KEY=your_openai_key

πŸ“¦ Build & Deployment

Production Build

npm run build
npm run start

Lint Code

npm run lint

Deploy to Vercel

The easiest way to deploy MindBridge AI is using Vercel:

Deploy with Vercel

🎨 Customization

Theme Configuration

The app supports light and dark modes. Theme settings can be found in:

  • app/globals.css - CSS variables for colors
  • tailwind.config.ts - Tailwind theme configuration
  • components/theme-provider.tsx - Theme provider setup

Adding Components

This project uses shadcn/ui. To add new components:

npx shadcn-ui@latest add [component-name]

πŸ§ͺ Development Notes

  • TypeScript: Strict mode enabled for type safety
  • ESLint: Configured but ignored during builds (see next.config.mjs)
  • Images: Unoptimized for faster development (configure for production)
  • Path Aliases: @/ maps to the root directory

🌟 Features Breakdown

AI Prototype

Interactive chat interface demonstrating AI-powered mental health conversations with:

  • Real-time message streaming
  • Sentiment analysis
  • Crisis detection
  • Resource recommendations

Data Visualization

Mental health statistics presented through:

  • Interactive charts (Recharts & Chart.js)
  • Mood tracking visualizations
  • Progress analytics

Business Model

Three-tier pricing structure:

  • Free: Basic support and mood tracking
  • Premium: Advanced features and 24/7 crisis support ($9.99/month)
  • Campus: Enterprise solution for universities

Technical Innovation

  • GPT-4 integration for natural conversations
  • End-to-end encryption
  • Multi-platform accessibility
  • Global scalability infrastructure

🀝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow existing code style and conventions
  • Write meaningful commit messages
  • Test your changes thoroughly
  • Update documentation as needed

πŸ“„ License

This project is private and proprietary. All rights reserved.

πŸ“§ Contact

Project Maintainer: @smoxhakim

Project Repository: MindBridge


Made with ❀️ for mental health awareness

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors