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.
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.
- 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.
Ensure you have the following installed:
- Node.js (Latest LTS version recommended)
- npm or yarn
git clone https://github.com/RanitManik/Sukh-Mind.git
cd Sukh-Mindnpm installCreate a .env.local file in the project root and add:
GEMINI_API_KEY=your-api-key-hereThen, 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.
npm run devAccess the application at http://localhost:5173.
We welcome contributions! Follow these steps to contribute:
- Fork the repository on GitHub.
- Clone your forked repository:
git clone https://github.com/Sukh-Mind/Sukh-Mind.git- Create a new branch for your feature or bug fix:
git checkout -b feature-or-bugfix-name- Make necessary changes and commit:
git commit -m "Brief description of changes"- Push your changes and submit a Pull Request (PR).
Sukh-Mind is released under the MIT License. See LICENSE for details.