recipe-gpt

Recipe GPT 🍳

An AI-powered React Native app that analyzes photos of your fridge/pantry and generates delicious recipes based on the ingredients found.

Features

Screenshots

Screenshots will be added once the app is running

Prerequisites

Setup Instructions

1. Install Dependencies

npm install

2. Configure API Keys

  1. Get your OpenAI API key from OpenAI Platform
  2. Get your Gemini API key from Google AI Studio
  3. Open src/services/AIService.js
  4. Replace the placeholder API keys with your actual keys:
const OPENAI_API_KEY = 'sk-your-actual-openai-api-key-here';
const GEMINI_API_KEY = 'your-actual-gemini-api-key-here';

3. iOS Setup

cd ios && pod install && cd ..

4. Android Setup

Make sure you have Android Studio installed and configured.

Running the App

iOS

npm run ios

Android

npm run android

App Flow

  1. Camera Screen: Take 1-3 photos of your fridge, pantry, or ingredients
  2. Ingredients Screen: Review and edit detected ingredients
  3. Add Ingredients Screen: Add any additional ingredients manually
  4. Recipe Screen: View your AI-generated recipe with step-by-step instructions

Key Technologies

API Configuration

The app uses two AI services:

  1. Image Analysis (Google Gemini Flash 2.5): Analyzes photos to detect ingredients and quantities
  2. Recipe Generation (OpenAI GPT-4.1-mini): Creates recipes in real-time with streaming responses

Supported Models

Multi-Image Analysis

Real-time Recipe Streaming

Image Format Support

The app automatically detects and supports various image formats:

Make sure you have:

Permissions

The app requires the following permissions:

Troubleshooting

Common Issues

  1. Metro bundler issues: Clear cache with npx react-native start --reset-cache
  2. iOS build errors: Clean build folder in Xcode or run cd ios && xcodebuild clean
  3. Android build errors: Clean gradle with cd android && ./gradlew clean

API Errors

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have questions, please open an issue on GitHub.


Happy Cooking! πŸ‘¨β€πŸ³πŸ‘©β€πŸ³