GreenFork
Your AI-Powered Carbon Tracking Buddy
The problem GreenFork solves
GreenFork is an AI-powered platform that helps individuals and businesses make more sustainable food choices by providing real-time carbon footprint analysis. Here's how it helps:
For Individuals
- Smart Food Choices: Users can snap a photo of their food or upload a restaurant menu to instantly get carbon footprint analysis and sustainability ratings
- Delivery Impact Tracking: Automatically tracks and analyzes carbon emissions from food delivery orders across platforms like Zomato and Swiggy
- Personalized Recommendations: AI-powered suggestions help users make lower-carbon food choices based on their preferences and history
- Environmental Awareness: Visual dashboards and insights help users understand their food-related environmental impact
For Restaurants
- Menu Sustainability: Restaurants can analyze their menus to identify high-carbon dishes and get suggestions for more sustainable alternatives
- Customer Engagement: Share sustainability ratings with customers to promote eco-friendly choices
- Supply Chain Optimization: Insights into ingredient carbon footprints help optimize sourcing and menu planning
Key Benefits
- Convenience: No manual calculations needed - just snap a photo or upload a menu
- Education: Learn about the environmental impact of different foods and ingredients
- Actionable Insights: Get specific recommendations for reducing carbon footprint
- Integration: Seamlessly works with popular food delivery platforms
- Accessibility: User-friendly interface makes sustainability accessible to everyone
By making carbon footprint information easily accessible and actionable, GreenFork empowers users to make more sustainable food choices without compromising on taste or convenience.
Challenges I ran into
Building GreenFork presented several interesting challenges:
AI Integration Challenges
- Image Processing: Initially struggled with optimizing food images for AI analysis while maintaining quality. Solved by implementing Sharp for image preprocessing and setting optimal size limits
- API Rate Limits: Hit OpenAI API rate limits during testing. Implemented a two-layer caching system (in-memory and database) to reduce API calls and improve performance
- OCR Accuracy: Menu analysis required high-quality OCR. Improved results by preprocessing images and implementing fallback mechanisms
Data Integration Challenges
- Platform APIs: Zomato and Swiggy APIs had different data structures. Created a unified data model and adapter pattern to handle platform-specific differences
Technical Challenges
- State Management: Managing complex state across multiple AI services was challenging. Implemented a robust context-based state management system
- Error Handling: AI services can be unpredictable. Created a comprehensive error handling system with graceful degradation
- Performance: Initial load times were slow. Optimized by implementing lazy loading, code splitting, and efficient caching
User Experience Challenges
- Mobile Responsiveness: Ensuring consistent experience across devices. Used Tailwind CSS with custom breakpoints
- Image Upload: Handling large images on mobile devices. Implemented client-side compression and progress indicators
- Complex Data Visualization: Making carbon footprint data understandable. Created intuitive charts and simplified metrics
Solutions Implemented
- Caching Strategy: Two-layer caching system reduced API calls by 60%
- Error Recovery: Implemented automatic retry mechanisms and fallback options
- Performance Optimization: Reduce
Discussion
Builders also viewed
See more projects on Devfolio
