{"id":28259333,"url":"https://github.com/b-acharekar/vitalflow_backend","last_synced_at":"2025-10-14T01:14:07.549Z","repository":{"id":288435834,"uuid":"952612378","full_name":"B-Acharekar/vitalflow_backend","owner":"B-Acharekar","description":"VitalFlow Backend is the server-side engine of the VitalFlow health tracking app, built with Flask and MongoDB. It manages user authentication, health data storage, NLP-based water and stress analysis, and provides smart insights through secure API endpoints.","archived":false,"fork":false,"pushed_at":"2025-04-26T02:16:20.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-29T17:45:09.791Z","etag":null,"topics":["backend-api","flask","flask-restful","health-tracking","hydration","mongodb","nlp","python","server","stress-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B-Acharekar.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-21T15:14:40.000Z","updated_at":"2025-06-01T05:30:11.000Z","dependencies_parsed_at":"2025-07-29T17:31:34.854Z","dependency_job_id":"5970dd4a-0224-4899-a522-0bf6a13fafb7","html_url":"https://github.com/B-Acharekar/vitalflow_backend","commit_stats":null,"previous_names":["b-acharekar/vitalflow_backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/B-Acharekar/vitalflow_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-Acharekar%2Fvitalflow_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-Acharekar%2Fvitalflow_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-Acharekar%2Fvitalflow_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-Acharekar%2Fvitalflow_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B-Acharekar","download_url":"https://codeload.github.com/B-Acharekar/vitalflow_backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-Acharekar%2Fvitalflow_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017453,"owners_count":26086081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend-api","flask","flask-restful","health-tracking","hydration","mongodb","nlp","python","server","stress-analysis"],"created_at":"2025-05-20T02:17:01.938Z","updated_at":"2025-10-14T01:14:07.506Z","avatar_url":"https://github.com/B-Acharekar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n# VitalFlow Backend\r\n\r\nVitalFlow is a health monitoring system that integrates health data from Android devices using Flutter and Kotlin, processes it through a Flask-based backend, and stores insights in a MongoDB database. This backend handles API endpoints for health metrics like steps, heart rate, sleep, hydration, stress levels, and daily performance.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- User Authentication (Signup/Login with bcrypt password hashing)\r\n- Health Data Syncing from Health Connect (Steps, Heart Rate, Sleep, etc.)\r\n- Water Intake Logging (Manual and estimated via NLP)\r\n- Stress Detection (Text-based and calculated from vitals)\r\n- Sleep Monitoring using bedtime schedule\r\n- Performance \u0026 Insights Engine combining metrics\r\n- Data Visualization Support for graphs and trends (via API)\r\n\r\n---\r\n\r\n## Tech Stack\r\n\r\n| Layer       | Tech                         |\r\n|-------------|------------------------------|\r\n| Backend     | Python, Flask                |\r\n| Database    | MongoDB                      |\r\n| Auth        | Bcrypt, JWT (optional)       |\r\n| API Design  | RESTful                      |\r\n| NLP Model   | Scikit-learn / SpaCy / Custom ML |\r\n| Platform    | Android (Flutter \u0026 Kotlin)   |\r\n\r\n---\r\n\r\n## Project Structure\r\n\r\n```\r\nvitalflow_backend/\r\n│\r\n├── app/\r\n│   ├── __init__.py\r\n│   ├── routes/\r\n│   │   ├── auth.py\r\n│   │   ├── health_data.py\r\n│   │   ├── water_log.py\r\n│   │   ├── stress_log.py\r\n│   │   └── insights.py\r\n│   ├── models/\r\n│   │   ├── user.py\r\n│   │   ├── health.py\r\n│   │   └── utils.py\r\n│   └── nlp/\r\n│       ├── water_parser.py\r\n│       └── stress_analyzer.py\r\n│\r\n├── config.py\r\n├── requirements.txt\r\n├── run.py\r\n└── README.md\r\n```\r\n\r\n---\r\n\r\n## Getting Started\r\n\r\n### 1. Clone the Repository\r\n\r\n```bash\r\ngit clone https://github.com/B-Acharekar/vitalflow_backend.git\r\ncd vitalflow_backend\r\n```\r\n\r\n### 2. Create a Virtual Environment\r\n\r\n```bash\r\npython -m venv venv\r\nsource venv/bin/activate   # On Windows: venv\\Scripts\\activate\r\n```\r\n\r\n### 3. Install Dependencies\r\n\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n### 4. Configure Environment Variables\r\n\r\nCreate a `.env` file in the root directory with the following content:\r\n\r\n```\r\nMONGO_URI=mongodb://localhost:27017/vitalflow\r\nSECRET_KEY=your-secret-key\r\n```\r\n\r\n### 5. Run the Server\r\n\r\n```bash\r\npython run.py\r\n```\r\n\r\nServer runs at `http://localhost:5000/`\r\n\r\n---\r\n\r\n## API Endpoints Overview\r\n\r\n| Method | Endpoint               | Description                      |\r\n|--------|------------------------|----------------------------------|\r\n| POST   | `/signup`              | Register a new user              |\r\n| POST   | `/login`               | Authenticate user                |\r\n| POST   | `/health/steps`        | Log step data                    |\r\n| POST   | `/health/heart-rate`   | Log heart rate                   |\r\n| POST   | `/health/sleep`        | Log sleep duration               |\r\n| POST   | `/water/log`           | Log water intake                 |\r\n| POST   | `/stress/analyze`      | Log and analyze stress input     |\r\n| GET    | `/insights/day`        | Get daily performance insights   |\r\n\r\n---\r\n\r\n## NLP and Stress Estimation\r\n\r\n- **Water Intake Parsing**: Converts phrases like \"drank a glass of water\" into estimated ml values.\r\n- **Stress Detection**: Based on sentiment analysis or derived from heart rate and sleep data.\r\n\r\n---\r\n\r\n## Future Improvements\r\n\r\n- Add unit and integration tests\r\n- Add Swagger/OpenAPI documentation\r\n- Dockerize for containerized deployment\r\n- Implement CI/CD pipeline\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-acharekar%2Fvitalflow_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb-acharekar%2Fvitalflow_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb-acharekar%2Fvitalflow_backend/lists"}