{"id":25007822,"url":"https://github.com/sabdulrahman/chatfit","last_synced_at":"2026-04-12T18:03:20.431Z","repository":{"id":275624513,"uuid":"919158190","full_name":"sabdulrahman/ChatFit","owner":"sabdulrahman","description":"A conversational fitness chatbot powered by LLMs that provides personalized workout and diet recommendations based on user inputs. The chatbot adapts to user goals, fitness level, and dietary preferences, offering a dynamic, interactive experience.","archived":false,"fork":false,"pushed_at":"2025-02-03T17:56:06.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T18:19:43.295Z","etag":null,"topics":["chatbot","chatgpt","fastapi","fitness-app","llm","llms","ollama","python3","reactjs","vue"],"latest_commit_sha":null,"homepage":"","language":null,"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/sabdulrahman.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}},"created_at":"2025-01-19T21:00:11.000Z","updated_at":"2025-02-03T17:58:12.000Z","dependencies_parsed_at":"2025-02-03T18:19:48.240Z","dependency_job_id":"ff190554-142a-4c03-ab41-8b711f403018","html_url":"https://github.com/sabdulrahman/ChatFit","commit_stats":null,"previous_names":["sabdulrahman/chatfit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabdulrahman%2FChatFit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabdulrahman%2FChatFit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabdulrahman%2FChatFit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabdulrahman%2FChatFit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sabdulrahman","download_url":"https://codeload.github.com/sabdulrahman/ChatFit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262485,"owners_count":20749164,"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","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":["chatbot","chatgpt","fastapi","fitness-app","llm","llms","ollama","python3","reactjs","vue"],"created_at":"2025-02-05T02:38:42.889Z","updated_at":"2026-04-12T18:03:20.320Z","avatar_url":"https://github.com/sabdulrahman.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatFit: Personalized Fitness Chatbot 💪💬\n\nChatFit is an AI-powered chatbot that provides **personalized workout and diet recommendations** based on user inputs. Built using **React (Frontend)** and **FastAPI (Backend)**, it leverages **LLM** to generate fitness advice.\n\n## 🚀 Features\n- 💬 **Interactive Chat Interface**: Get fitness-related responses in real-time.\n- 🏈 **Personalized Recommendations**: Tailored workout and diet plans based on fitness data.\n- 🔄 **Persistent Chat History**: Stores user messages and allows viewing past conversations.\n\n## 📸 App Screenshot\n![ChatFit App Screenshot](ChatFit.png)\n\n---\n\n## 🛠️ Tech Stack\n| Component  | Technology |\n|------------|------------|\n| Frontend  | React, Tailwind CSS, React Markdown |\n| Backend  | FastAPI, Ollama LLM |\n| Deployment  | Uvicorn (for API) |\n\n---\n\n## ⚡ Installation\n\n### **1️⃣ Clone the Repository**\n```sh\ngit clone https://github.com/sabdulrahman/ChatFit.git\ncd ChatFit\n```\n\n### **2️⃣ Backend Setup (FastAPI)**\n\u003e **Requirements**: Python 3.8+, FastAPI, Uvicorn, Ollama\n\n```sh\ncd backend\npip install -r requirements.txt\nuvicorn main:app --reload\n```\n\nBy default, the API runs on:  \n📍 `http://localhost:8000`\n\n### **3️⃣ Frontend Setup (React)**\n\u003e **Requirements**: Node.js 16+\n\n```sh\ncd frontend\nnpm install\nnpm run dev  # If using Vite\nnpm start    # If using Create React App\n```\n\nBy default, the frontend runs on:  \n📍 `http://localhost:3000`\n\n---\n\n## 💼 API Endpoints\n\n| Method | Endpoint | Description |\n|--------|---------|-------------|\n| `POST` | `/get-recommendations` | Generates a **personalized workout and diet plan** based on the provided fitness data. |\n| `POST` | `/chat` | Handles **free-text chat queries**. If fitness data is available, it is sent to the LLM for better responses. |\n| `GET` | `/chat-history` | Retrieves the **chat history** for the current session. |\n| `DELETE` | `/chat-history` | Clears the chat history. |\n| `GET` | `/` | Returns a simple API status message. |\n\n---\n\n## 🎨 UI Components\n### **🏋️ Fitness Form**\n- Users input **age, weight, height, fitness level, dietary preferences, and goals**.\n- Submitting the form sends a request to `/get-recommendations`.\n\n### **💬 Chat Interface**\n- Users send **free-text messages**.\n- If fitness data is available, it is attached to the request.\n- Responses are **formatted using React Markdown**.\n- The chat window is **scrollable**.\n- Users can view past **chat history** across sessions.\n\n---\n\n## 🚀 Future Enhancements\n- ✅ Integrate more LLM options (GPT, DeepSeek).\n- ✅ Add **voice support** for hands-free interaction.\n- ✅ Deploy using **Docker \u0026 Cloud Services**.\n\n---\n\n## 🤝 Contributing\n1. Fork the repo 🍔  \n2. Create a new branch (`git checkout -b feature-branch`)  \n3. Commit changes (`git commit -m \"Added new feature\"`)  \n4. Push to your fork (`git push origin feature-branch`)  \n5. Open a **Pull Request** 🚀  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabdulrahman%2Fchatfit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsabdulrahman%2Fchatfit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabdulrahman%2Fchatfit/lists"}