An intelligent product search and nutrition analysis application powered by Google Gemini AI, Google Custom Search API, and USDA Food Database.
- 🔍 Smart Product Search - Search any product and get detailed information
- 📸 AI Lens Scanner - Upload or capture product images for instant recognition
- 🍎 Health Analysis - Complete nutritional information and health scores
- ⚖️ Product Comparison - Compare two products side-by-side
- 🤖 AI Chatbot - Ask questions about products and get instant answers
- 🖼️ Real Images - Google Custom Search integration for authentic product photos
- Click the "Deploy with Vercel" button above
- Connect your GitHub account
- Click "Deploy"
- Done! Your app is live at
https://your-project.vercel.app
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/YOUR-USERNAME/productlens.git
git push -u origin main- Go to vercel.com/new
- Import your GitHub repository
- Click "Deploy"
- Live in 1 minute!
productlens/
├── index.html # Main application (Homepage + Search)
├── lens_search.html # AI Camera Scanner
├── product_compare.html # Product Comparison Tool
├── health_analysis.html # Health & Nutrition Analysis
├── chatbot.html # AI Product Chatbot
├── .gitignore # Git ignore file
├── vercel.json # Vercel configuration
└── README.md # This file
The app uses these API keys (already included for demo):
- ✅ Google Gemini AI
- ✅ Google Custom Search API
- ✅ USDA Food Database
- ✅ Pexels Images
Ready to deploy - No configuration needed!
After deployment:
- Apply for Google AdSense
- Submit your live URL
- Add AdSense code
- Start earning ₹5,000-₹50,000/month!
See ads_integration_guide.html for details.
If you want to run locally with a proxy server:
- Copy
.env.exampleto.env:
cp .env.example .env- Install dependencies:
npm install- Start server:
npm start- Open
http://localhost:3000
- Google Custom Search: 100 searches/day (free)
- Google Gemini: 60 requests/minute (free)
- USDA Food API: 1000 requests/hour (free)
- Pexels API: 200 requests/hour (free)
- Check Google Custom Search Engine settings
- Ensure "Image Search" is enabled
- See
google_search_fix.htmlfor help
- Wait 24 hours for reset
- Or create new Google Cloud project
- See
new_google_api_setup.htmlfor instructions
- Product Search - Search products, view images, get nutrition info
- AI Scanner - Upload/capture images for instant product recognition
- Health Analysis - Complete nutritional breakdown & health scores
- Comparison - Compare 2 products side-by-side
- Chatbot - AI-powered product Q&A
After deployment:
- ✅ Test all features on live URL
- ✅ Apply for Google AdSense
- ✅ Share and promote
- ✅ Start earning! 💰
Open source - Free for personal and commercial use
Made with ❤️ by Divyansh Raj Soni
Live Demo: https://your-app.vercel.app (Update after deployment)