An open API service indexing awesome lists of open source software.

https://github.com/tushar-shinde31/nutrisnap-react-native-app

NutriSnap is a React Native app that uses the Gemini API to analyze food photos and return calorie count, portion size, and detailed nutrition facts instantly. πŸ½οΈπŸ“ΈπŸ”₯πŸ’‘
https://github.com/tushar-shinde31/nutrisnap-react-native-app

ai expo gemini-api reactnative reactnavigation state-management

Last synced: about 1 year ago
JSON representation

NutriSnap is a React Native app that uses the Gemini API to analyze food photos and return calorie count, portion size, and detailed nutrition facts instantly. πŸ½οΈπŸ“ΈπŸ”₯πŸ’‘

Awesome Lists containing this project

README

          

# 🍽️ NutriSnap

NutriSnap is a powerful React Native app built with Expo that uses the Gemini API to analyze food from a photo. Just snap a picture of your meal, and instantly get insights like calories, nutritional facts, portion size, and more!

![cover](https://github.com/user-attachments/assets/6a42cf31-cefa-4df4-9e6d-a9ae62b06fd3)

## πŸ“Ή Demo

Watch the live demo on YouTube: [NutriSnap Demo](https://youtube.com/shorts/AkMlVtN1F38)

---

## πŸ“Έ Features

- Open camera and click photo of any food item
- Detect:
- 🍱 Food name(s)
- πŸ“ Portion size
- 🍽️ Serving size
- Get detailed **Nutrition Facts (per portion)**:
- πŸ”₯ Calories
- πŸ’ͺ Protein
- 🍞 Carbohydrates
- πŸ₯‘ Fats
- 🌾 Fiber
- 🍭 Sugar
- πŸ§‚ Sodium
- ❀️ Cholesterol
- Additional notes about the food and its contents
- Smooth and intuitive UI

---

## πŸš€ Tech Stack

- **React Native (Expo)** β€” Cross-platform mobile development
- **Gemini API** β€” AI-powered image and text analysis
- **React Navigation** β€” App navigation
- **Expo Camera** β€” Capturing food images
- **Custom Components** β€” Clean and modular UI
- **State Management** β€” (React context or any library you use)

---

## πŸ› οΈ Installation

```bash
git clone https://github.com/yourusername/nutrisnap.git
cd nutrisnap
npm install
npx expo start
```

---

### ⚠️ Expo SDK Compatibility

> **Note:** This project was built using an older version of Expo.
> To ensure compatibility, please install the matching versions:

- `expo-router@~4.0.21`
- `react-native@0.76.9`

If you're seeing Metro Bundler warnings, run the following commands:

```bash
npm install expo-router@~4.0.21 react-native@0.76.9
```

Then start the project with:

```bash
npx expo start -c
```

## 🧠 How It Works

1. You open the app and click a photo of any food item.
2. The image is sent to **Gemini API** for analysis.
3. It returns:
- 🍱 Food name(s)
- πŸ“ Portion + Serving size
- 🧾 Nutritional facts
- 🧠 Extra notes about the food
4. The data is displayed in a clean, readable format for the user.

---

## 🀝 Contributing
Feel free to submit issues or pull requests to improve the application. Contributions are always welcome!!!

---

## Author πŸ‘¨β€πŸ’»
Developed by **[Tushar Shinde](https://github.com/Tushar-Shinde31)**. Connect with me on [LinkedIn](https://www.linkedin.com/in/tushar-shinde-262335257/).