Skip to content

Sukh-Mind is an AI-powered mental health chatbot using Google Gemini AI and React.js, providing emotional support and stress management. πŸš€πŸ’™

License

Notifications You must be signed in to change notification settings

SagVK04/sukh-mind

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sukh-Mind

Sukh-Mind is an AI-powered mental health chatbot designed to provide emotional support, stress management techniques, and well-being assistance. Developed for a hackathon by Ranit Kumar Manik, Soumen Tunga, Sagnik Metiya, and Anish Kanrar, this project leverages cutting-edge AI technology to enhance mental health support.

πŸ”Ή Overview

Sukh-Mind utilizes Google’s AI Studio and Gemini AI to deliver intelligent responses to users. The frontend is built with React, JavaScript, and CSS, ensuring a responsive and seamless user experience. This project eliminates the need for a backend, directly interacting with the Gemini API for enhanced performance and efficiency.

✨ Key Features

  • AI-Powered Support – Offers emotional assistance and stress management guidance.
  • Google Gemini AI Integration – Leverages AI for personalized responses.
  • Modern Frontend – Developed with React, JavaScript, and CSS for scalability and performance.
  • Seamless API Communication – Direct interaction with Gemini AI, eliminating backend dependencies.
  • Secure API Key Management – Uses environment variables for safe API key storage.

πŸ“Œ Installation & Setup

1️⃣ Prerequisites

Ensure you have the following installed:

  • Node.js (Latest LTS version recommended)
  • npm or yarn

2️⃣ Clone the Repository

git clone https://github.com/RanitManik/Sukh-Mind.git
cd Sukh-Mind

3️⃣ Install Dependencies

npm install

4️⃣ Configure API Key and Model

Create a .env.local file in the project root and add:

GEMINI_API_KEY=your-api-key-here

Then, update the model configuration in src/config/gemini.js:

const apiKey = process.env.GEMINI_API_KEY;

import {
  GoogleGenerativeAI,
  HarmCategory,
  HarmBlockThreshold,
} from "@google/generative-ai";

const genAI = new GoogleGenerativeAI(apiKey);

const model = genAI.getGenerativeModel({
  model: "tunedModels/mentalhealthchatbot-02-7ul5vhgobzol", // update this model name
});

Restart the development server to apply changes.

5️⃣ Run the Application

npm run dev

Access the application at http://localhost:5173.

🀝 Contribution Guidelines

We welcome contributions! Follow these steps to contribute:

  1. Fork the repository on GitHub.
  2. Clone your forked repository:
git clone https://github.com/Sukh-Mind/Sukh-Mind.git
  1. Create a new branch for your feature or bug fix:
git checkout -b feature-or-bugfix-name
  1. Make necessary changes and commit:
git commit -m "Brief description of changes"
  1. Push your changes and submit a Pull Request (PR).

πŸ“œ License

Sukh-Mind is released under the MIT License. See LICENSE for details.

About

Sukh-Mind is an AI-powered mental health chatbot using Google Gemini AI and React.js, providing emotional support and stress management. πŸš€πŸ’™

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.9%
  • CSS 39.1%
  • HTML 3.0%