By Sebastian (set29), Ashvin (at613), Patrick (pgc8) and Yunus (ya129)
View the deployed project at scansave.in!
A modern web application that helps users scan food products to understand their nutritional value, environmental impact, and get AI-powered insights about their food choices.
- Barcode scanning using device camera
- Detailed nutritional information
- AI-powered insights and recommendations
- Price tracking and comparison
- Budget tracking and savings goal setting
- Environmental impact and recycling information
- Dark/Light theme support
- Responsive design for all devices
Before you begin, ensure you have the following installed:
- Node.js (v18 or higher)
- npm (usually comes with Node.js)
- A modern web browser
- A device with a camera (for barcode scanning)
- Clone the repository:
git clone https://github.com/evisos-ons/ibm-hackathon-2025
cd ibm-hackathon-2025- Install dependencies:
npm install- Set up environment variables:
Create a .env.local file in the root directory with the following variables:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
GEMINI_API_KEY=your_gemini_api_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_keyAlternatively, you can export the environment variables in your terminal:
export NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
export NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
export GEMINI_API_KEY=your_gemini_api_key
export SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key- Start the development server:
npm run devThe application will be available at http://localhost:3000.
NEXT_PUBLIC_SUPABASE_URL: Your Supabase project URLNEXT_PUBLIC_SUPABASE_ANON_KEY: Your Supabase anonymous key for client-side accessGEMINI_API_KEY: Your Google Gemini API key for AI featuresSUPABASE_SERVICE_ROLE_KEY: Your Supabase service role key for server-side access
- Next.js - React framework
- Supabase - Backend and authentication
- Google Gemini - AI insights
- HTML5-QRCode - Barcode scanning
- React Icons - Icon library
- Open Food Facts - Food database
- Camera-based barcode scanning
- Manual barcode entry option
- Support for various barcode formats
- Detailed nutritional values
- Ingredient lists
- Allergen information
- Environmental impact assessment
- Recycling guidelines
- Health analysis
- Alternative product suggestions
- Usage tips and recommendations
- Environmental impact analysis
- Intuitive step-by-step flow
- Portion size selection
- Price tracking
- Dark/Light theme toggle
- Responsive design for all screen sizes
- Budget tracking
- Savings goal setting
- Expense tracking
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.