MindSpace is a compassionate, web-based mental health companion designed to provide immediate support, tracking, and resources for mental wellness. It offers a safe space for users to express their feelings, track their mood, and access helpful tools without judgment.
- 💬 Interactive Chat Bot: A supportive AI-simulated companion that listens and provides empathetic responses for various emotional states (Anxiety, Stress, Loneliness, etc.).
- 📊 Mood Tracker: Log your daily moods with emojis and notes. View your emotional journey with a visual history chart.
- 📝 Personal Journal: A private space to write down your thoughts and feelings. All entries are stored locally on your device.
- 🧘 Breathing Exercises: specialized tools like the "Box Breathing" exercise to help calm your mind during stressful moments.
- 📚 Educational Resources: Access to cognitive techniques (CBT), self-care tips, and guided information.
- 📞 Helpline Database: Immediate access to crisis helpline numbers and professional support contacts.
- HTML5: Semantic structure and layout.
- CSS3: Modern, responsive styling with gradients and smooth transitions.
- JavaScript (Vanilla): Core logic for the chatbot, mood tracking, and data persistence (using
localStorage).
Note: This application runs entirely client-side using local storage for data persistence, ensuring your data stays on your device.
Follow these steps to run the project locally:
-
Clone the Repository
git clone https://github.com/yourusername/mindspace.git
-
Navigate to the Directory
cd mindspace -
Launch the Application
- Simply locate the
index.htmlfile in the folder. - Double-click to open it in any modern web browser (Chrome, Firefox, Edge, Safari).
- Optional: If you have Node.js installed, you can also run the development server (though the app functions fully without it):
Then visit
npm install npm start
http://localhost:3000.
- Simply locate the
index.html: Main application file containing the structure for all views (Chat, Mood, Resources, Journal).style.css: Contains all styling, animations, and responsive design rules.bot.js: Handles the chatbot logic, mood/journal data management, and user interactions.
MindSpace prioritizes your privacy.
- No Data Collection: All chat history, mood logs, and journal entries are stored in your browser's
localStorage. - Offline Capable: Once loaded, the core features function without an internet connection.
Contributions are welcome! If you have ideas for new features or improvements:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.