Swipeat is a simple and efficient meal tracking AI Powered cross-platform app. Add meals once, then swipe daily to log them β fast, easy, and consistent. (AVAILABLE ON ANDROID π DOWNLOAD (old version))
- π₯ Instant Add Cam β use your camera to instantly add meals to your macros.
- π Smart Sorting & Search β find meals and nutrition data instantly.
- π€ Gemini Flash Lite Assistant β embedded AI chat assistant that:
- Uses ChromaDB for predefined knowledge and contextual answers.
- If confidence > 60% β responds using ChromaDB.
- If confidence < 30% β switches to Chatbot Mode (safe, rail-guarded, roleplaying assistant).
- Between 30β60% β Gemini Agent dynamically decides which mode to use.
- π Macro Analytics β visualize calories, protein, carbs, and fats.
- β‘ Swipe Logging System β log your meals with a single swipe.
- π± Cross-Platform App β Android (available), iOS (coming soon).
- π‘ AI Recommendations β get personalized meal suggestions and tracking help.
- π¨ Minimal UI β clean design built with React Native + Expo.
classDiagram
%% =======================
%% USERS
%% =======================
class Users {
+int id PK
+string email
+string password
+string username
+float protein_progress
+float carbs_progress
+float calories_progress
+float height
+float weight
+int age
+boolean stepper
+timestamp last_reset
+boolean gender
+boolean verified
+string code
+timestamp code_date
}
%% =======================
%% FOODS
%% =======================
class Foods {
+int id PK
+string name
+float protein
+float carbs
+float calories
+float portion
+int userid FK -> Users.id
}
%% =======================
%% CONSUMED FOODS TODAY
%% =======================
class ConsumedFoods {
+string name
+float protein
+float carbs
+float calories
+float portion
+int userid FK -> Users.id
+int servings
+int id FK -> Foods.id
}
%% =======================
%% PAST CONSUMED FOODS
%% =======================
class PastConsumedFoods {
+int id PK
+string name
+float protein
+float carbs
+float calories
+float portion
+int userid FK -> Users.id
+date consumed_date
+int servings
}
%% =======================
%% MACRO GOALS NOW
%% =======================
class MacroGoals {
+float protein_goal
+float carbs_goal
+float calories_goal
+int userid FK -> Users.id
}
%% =======================
%% PAST MACRO PROGRESS
%% =======================
class PastMacroProgress {
+float protein_goal
+float carbs_goal
+float calories_goal
+int userid FK -> Users.id
+date progress_date
}
%% =======================
%% RELATIONSHIPS
%% =======================
Users "1" --> "many" Foods : owns >
Users "1" --> "many" ConsumedFoods : logs >
Users "1" --> "many" PastConsumedFoods : logged >
Users "1" --> "1" MacroGoals : has >
Users "1" --> "many" PastMacroProgress : history >
Foods "1" --> "many" ConsumedFoods : referenced by >
flowchart LR
A["Mobile App (Expo React Native)"] --> B["Node.js Backend API"]
subgraph Backend ["Node.js Backend Server"]
direction TB
B --> C["GPT-4 (Tool Calling): Image Recognition + Food Detection"]
C --> E["Response Builder: Combine food name + macros + portion"]
end
E --> F["Return JSON Response to Frontend"]
F --> G["Display Food Info: Name, Calories, Protein, Carbs, Fat"]
flowchart LR
A[User Query] --> B[ChromaDB Predefined Response Semantic Search]
B --> C{Confidence Score}
C -->|> 60%| D[ChromaDB Response]
C -->|< 30%| E[Chatbot Mode - Gemini Roleplay]
C -->|30β60%| F[Gemini reAt agent judge Decides Best choice]
F --> D
F --> E
- Node.js (LTS recommended)
- Expo CLI
- Expo Go app
# Clone the repository
git clone https://github.com/username/swipeat.git
# Navigate into the project
cd swipeat
# Install dependencies
npm install
npx expo start --lanReact Native + Expo
Node.js + Express
PostgreSQL + Mongoose
OpenAI + Gemini Flash Lite + ChromaDB
JWT Auth + Secure Role Management
This is a private project, but feel free to fork it or suggest improvements.
This project is licensed under the MIT License. See the LICENSE file for details.


















