Mindful-App
Mindful एक मानसिक स्वास्थ्य ऐप है जो उपयोगकर्ताओं को तनाव और चिंता के प्रबंधन में सहायता करने के लिए डिज़ाइन किया गया है। उन्नत AI द्वारा संचालित, यह व्यक्तिगत सलाह और शांति के लिए एक आरामदायक संगीत प्लेयर प्रदान करता है। Node.js, PostgreSQL और Firebase के साथ बनाया गया, Mindful स्पष्ट आर्किटेक्चर सिद्धांतों का पालन करता है, जिससे एक निरंतर और उपयोगकर्ता-अनुकूल अनुभव सुनिश्चित होता है।
- स्टार
- 11
- फ़ोर्क
- 4
- अंतिम पुश (UTC)
- 11 अप्रैल 2025
- प्रोजेक्ट स्थिति
- सक्रिय
मूल README
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
IMPORTANT : Backend Services Working
AI USED : LLAMA-8B-8192, FACE EMOTION RECOGNITION MODEL, GEMINI/ANTHROPIC/MISTRAL SUPPORTED (API_KEY REQUIRED)
APP STATUS : ALL CORE FUNCTIONALITIES WORKING (Deployed NodeJs & Postgresql on Render)
What's New in v2.1.2 (Stable Release with Redis Phase 3 Integration)
- **Improved AI Chat Functionality**
- **Redis DS Change - HashMaps**
- **Minor Bug fixes**
- **Crash Handlers are improved**
- **Improved Overall Performance - Implemented Impeller**
- **Settings Tab is now Better**
- **Redis connection fixes and data privacy improvised**
- **Redis Cloud Implementation and Fetching in Beta Phase**
- **Added Redis-base to support syncfusion**
- **New Feature**: Implemented Syncfusion and Redis for low latency**
### Issues are being Resolved - Redis Full-Integration Phase 3
Mindful
Personal Mental Wellness Companion
Table of Contents
Overview
In a world where stress and anxiety are increasingly common, Mindful serves as a sanctuary for mental health. This innovative application empowers users to enhance their well-being through personalized advice and relaxation techniques. By integrating advanced AI technology, Mindful provides tools to help users cultivate mindfulness and manage their mental health effectively.
Features
-
Personalized Advice: Experience tailored guidance powered by LLAMA-8B-8192 (previously : Gemini) (Since its free) an advanced AI fine tuned to understand your unique mental health needs. Use your API_KEY to integrate with Anthropic, OpenAI, and Mistral, enhancing the support provided. Code is already provided for them.
-
Relaxation Music Player: Immerse yourself in a curated selection of soothing tracks. The built-in music player is designed to help users unwind, recharge, and foster a peaceful environment for relaxation.
-
User-Friendly Interface: Navigate effortlessly through an intuitive design that makes accessing mental health resources easy and enjoyable.
-
Face Detection Model : Analyze your mood with your facial expressions, this can be further linked to different services.








Technologies Used
-
Backend:
- Node.js: A powerful JavaScript runtime for building scalable network applications.
- PostgreSQL: An advanced relational database for storing user data securely.
- Firebase: A comprehensive platform for building web and mobile applications with real-time data syncing.
- Tensorflow: To Create the FER Model using FER2013 Dataset.
-
Architecture:
- Clean Architecture: Ensures the application is modular and maintainable.
- SOLID Principles: Follows best practices for software development, promoting scalability and ease of testing.
Architecture
The Mindful app employs a clean architecture pattern, allowing for separation of concerns and enhancing maintainability. This design makes the app adaptable to future changes and ensures a robust user experience. By adhering to SOLID principles, Mindful promotes best practices that facilitate development and testing.
Key Architectural Decisions:
- ModelView-ViewModel pattern to handle user requests and business logic.
- Separation of concerns for better code management and maintainability.
- Extensibility built-in so new AI features and wellness tools can be integrated smoothly in future updates.
To run Mindful locally, follow these steps:
-
Clone the repository:
git clone https://github.com/ARYPROGRAMMER/mindful.git cd server/mental-health-api/ -
Install dependencies:
npm install -
Setup environment variables (OPTIONAL, USE MINE): Changes in API_KEY (if needed) to be done in :
mental-health-api/ ├──... ├──... ├──... ├──... ├── server.js # Main server file ├── infrastructure/ ├── geminiai/ ├ └── geminiService.js # NEW API KEY ADDING SLOT └──── db/ └── index.js # PostGres Setup -
Run the Server: (Not Needed after v1.0.6)
npm start -
Run the App:
cd ../../lib/ flutter clean flutter pub get flutter runAlternatively you could use :
flutter build apk -
Structure of DB:
Songs Table
YOU NEED TO CREATE THIS YOURSELF IN POSTGRESQL (Not Needed after v1.0.6) This is the structure of the `songs` table in the `public` schema. | Column | Type | Collation | Nullable | Default | |----------|------------------------|-----------|----------|----------------------------------------| | `title` | `character varying(100)`| | `false` | | | `author` | `character varying(100)`| | `false` | | | `songlink`| `character varying(256)`| | `false` | | | `id` | `bigint` | | `false` | `nextval('songs_id_seq'::regclass)` | | `imageid`| `character varying(256)`| | `true` | | ### Notes: - The `id` column is auto-incremented using the `nextval('songs_id_seq'::regclass)` function. - `imageid` is optional and can store a link or identifier for the image associated with the song.Query:
CREATE TABLE public.songs ( id BIGSERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, author VARCHAR(100) NOT NULL, songlink VARCHAR(256) NOT NULL, imageid VARCHAR(256) ); -
PROVIDE CONNECTION IN FLUTTER : (NOT NEEDED AFTER v1.0.6)
cd lib/features/meditation/data/meditation_remote_source.dart cd lib/features/music/data/song_database.dartGive your IPv4 in the Uri.Parse url. ("mine starts with 192").
MORE SCREENSHOTS
Model
Home

Song Playlist
Settings
Backend



Usage
- Explore all the sections to receive personalized mental health tips based on your needs.
- Use the music player to listen to relaxing tracks and enhance your mindfulness practice.
- Explore the FER MODEL Section (NOT Fully Developed).
References
-
Machine Learning Model: Colab Notebook
This notebook contains the ML model used in the app. Feel Free to Clone and Modify. -
UI Inspiration: Figma File
Explore the Figma file for design inspiration and UI components.
Contributing
We welcome contributions to improve Mindful! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature) (DONT USE MAIN). - Make your changes and commit them (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a Pull Request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For questions or feedback, please reach out to me at:
- Email id: [arya.2023ug1104@iiitranchi.ac.in](mailto:arya.2023ug1104@iiitranchi.ac.in)
- GitHub: ARYPROGRAMMER
Mindful - I invite you to join a community focused on mental health and well-being. Together, we can create a positive impact, one mindful moment at a time. PRs ARE APPRECIATED
श्रेणियाँ
उपयोग की गई निर्भरताएँ
निर्भरता सूची 37 आइटम
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.8 - google_fonts
— - rename_app
^1.6.1 - flutter_bloc
^8.1.6 - audio_video_progress_bar
— - http
^1.2.2 - dio
^5.7.0 - just_audio
^0.9.40 - get_it
^8.0.0 - flutter_onboarding_slider
^1.0.11 - flutter_svg
^2.0.10+1 - percent_indicator
^4.2.3 - firebase_core
^3.6.0 - firebase_auth
^5.3.1 - dartz
^0.10.1 - cloud_firestore
^5.4.3 - tflite_flutter
— - camera
— - image
^3.1.0 - google_generative_ai
— - intl
— - google_mlkit_face_detection
— - image_picker
— - lottie
— - google_sign_in
— - hive
— - hive_flutter
— - syncfusion_flutter_charts
— - url_launcher
— - video_player
— - flutter_testडेवलपमेंट
{"sdk":"flutter"} - flutter_lintsडेवलपमेंट
^4.0.0 - flutter_launcher_iconsडेवलपमेंट
^0.11.0 - build_runnerडेवलपमेंट
— - hive_generatorडेवलपमेंट
— - font_awesome_flutterडेवलपमेंट
—
अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
- नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
- स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
- उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।
स्रोत और रखरखाव
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗






