Discover products with AI intelligence. Find the perfect products using our advanced AI-powered search, get personalized recommendations, compare prices, and discover hidden gems.
Live Demo β’ Documentation β’ API Reference β’ Contributing
- Multi-layered search algorithm with natural language processing
- Real-time product discovery from multiple e-commerce sources
- Intelligent query understanding with spell correction and synonym expansion
- Contextual search with attribute parsing and intent recognition
- Google Shopping API integration for high-quality product data
- Google Custom Search API with shopping focus
- Multi-source retrieval with intelligent fallback mechanisms
- Domain-specific filtering for trusted e-commerce sites
- E-commerce domain whitelisting (Amazon, Flipkart, Snapdeal, etc.)
- GTIN-based deduplication to remove duplicate products
- Multi-factor relevance scoring (lexical, semantic, business, behavioral)
- Accessory filtering to exclude irrelevant products
- Dark & sleek UI/UX with glassmorphism effects
- Smooth animations using Framer Motion
- Responsive design for all devices
- Real-time search suggestions and trending searches
- JWT-based authentication with secure password hashing
- User profiles with search history and preferences
- Personalized recommendations (coming soon)
- Product saving and favorites functionality
- Intelligent caching with TTL-based invalidation
- Graceful error handling with fallback mechanisms
- API rate limiting and retry logic
- Optimized search response times
FindONE/
βββ client/ # React Frontend
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Page components
β β βββ context/ # React Context providers
β β βββ hooks/ # Custom React hooks
β β βββ utils/ # Utility functions
β β βββ styles/ # CSS and styling
β βββ public/ # Static assets
βββ server/ # Node.js Backend
β βββ controllers/ # Route controllers
β βββ models/ # MongoDB schemas
β βββ routes/ # API routes
β βββ middleware/ # Express middleware
β βββ config/ # Configuration files
β βββ services/ # Business logic
β βββ utils/ # Utility functions
βββ docs/ # Documentation
- React 18 - Modern UI library with hooks
- Vite - Fast build tool and development server
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library for smooth transitions
- React Router DOM - Client-side routing
- Lucide React - Beautiful icon library
- Node.js - JavaScript runtime
- Express.js - Web application framework
- MongoDB - NoSQL database with Mongoose ODM
- JWT - JSON Web Tokens for authentication
- bcryptjs - Password hashing
- Axios - HTTP client for API calls
- Google Custom Search API - Web search with shopping focus
- Google Content API for Shopping - High-quality product data
- MongoDB Atlas - Cloud database hosting
- ESLint - Code linting and formatting
- PostCSS - CSS processing
- Git - Version control
- GitHub - Code hosting and collaboration
- Node.js 18+ and npm
- MongoDB Atlas account
- Google Cloud Platform account
- Git
git clone https://github.com/yourusername/FindONE.git
cd FindONEcd server
npm install
# Create .env file
cp .env.example .env
# Edit .env with your credentialscd client
npm install# Terminal 1 - Backend
cd server
npm run dev
# Terminal 2 - Frontend
cd client
npm run dev- Frontend: http://localhost:5173
- Backend API: http://localhost:5000
- API Health Check: http://localhost:5000/api/health
- Algorithm Documentation - Complete technical specification of the AI-powered search algorithm
- Algorithm Flowchart - Visual flowcharts and diagrams of the search process
- API Documentation - Complete API reference with examples
- Development Setup - Detailed setup guide for developers
- Google Merchant Setup - Step-by-step Google API configuration
- Developer Quick Reference - Quick reference guide for developers
FindONE uses a sophisticated 4-layer AI-powered search algorithm:
- Spell correction and synonym expansion
- Attribute parsing (brand, model, category)
- Intent recognition and query enhancement
- Google Shopping API (primary)
- Google Custom Search API (shopping focus)
- Google Custom Search API (Indian sites)
- Web scraping fallback
- Domain whitelisting for trusted sites
- Content analysis for product-specific content
- GTIN-based deduplication
- Accessory filtering
- Lexical Score (40%) - Exact keyword matches
- Semantic Score (30%) - Semantic similarity
- Business Score (20%) - Price, availability, ratings
- Behavioral Score (10%) - User preferences (future)
# Comprehensive product search
GET /api/search/comprehensive?query=iphone&page=1
# Search suggestions
GET /api/search/suggestions?query=iphone
# Trending searches
GET /api/search/trending
# API health check
GET /api/search/health# Register user
POST /api/auth/register
{
"name": "John Doe",
"email": "john@example.com",
"password": "password123"
}
# Login user
POST /api/auth/login
{
"email": "john@example.com",
"password": "password123"
}
# Get user profile (protected)
GET /api/auth/profile
Authorization: Bearer <token>For complete API documentation, see API Documentation.
- Dark & Sleek Theme - Modern, professional appearance
- Glassmorphism Effects - Subtle transparency and blur
- Micro-interactions - Smooth animations and transitions
- High Contrast - Accessibility-focused design
/* Primary Colors */
--bg-primary: #0d1117; /* Deep charcoal */
--bg-secondary: #1a1a1a; /* Dark gray */
--bg-tertiary: #262626; /* Lighter gray */
/* Accent Colors */
--accent-purple: #6366f1; /* Muted purple */
--accent-teal: #0891b2; /* Soft teal */
--accent-amber: #f59e0b; /* Warm amber */
/* Text Colors */
--text-primary: #ffffff; /* Pure white */
--text-secondary: #e5e7eb; /* Light gray */- Responsive Design - Works on all devices
- Smooth Animations - Framer Motion powered transitions
- Loading States - Skeleton screens and spinners
- Error Handling - User-friendly error messages
# Google APIs
GOOGLE_SEARCH_API_KEY=your_search_api_key
GOOGLE_SEARCH_ENGINE_ID=your_search_engine_id
GOOGLE_MERCHANT_ACCOUNT_ID=your_merchant_account_id
GOOGLE_SERVICE_ACCOUNT_EMAIL=your_service_account_email
GOOGLE_PRIVATE_KEY=your_private_key
# Database
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
# Server
PORT=5000
NODE_ENV=development- Google Custom Search API: 100 queries/day (free tier)
- Google Shopping API: 1000 requests/day (free tier)
- MongoDB Atlas: 512MB storage (free tier)
- Search Response Time: < 2 seconds
- Cache Hit Rate: > 60%
- API Success Rate: > 95%
- Error Rate: < 2%
- TTL-based caching (5 minutes)
- Query-based invalidation
- Memory-efficient storage
- Graceful degradation with fallback APIs
- Retry logic with exponential backoff
- User-friendly error messages
- Set production environment variables
- Configure MongoDB Atlas connection
- Set up Google API credentials
- Configure CORS for production domain
- Set up logging and monitoring
- Update API endpoints for production
- Configure environment variables
- Build optimized production bundle
- Set up CDN for static assets
- Backend: Heroku, Railway, or DigitalOcean
- Frontend: Vercel, Netlify, or GitHub Pages
- Database: MongoDB Atlas (already configured)
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Use ESLint configuration
- Follow React best practices
- Write meaningful commit messages
- Add tests for new features
- AI-powered search algorithm
- Multi-source product retrieval
- User authentication
- Dark & sleek UI/UX
- Real-time search suggestions
- Image-based search
- Voice search integration
- Personalized recommendations
- Price comparison
- Product reviews and ratings
- Advanced analytics dashboard
- Multi-language support
- Mobile app development
- API rate limiting and monetization
- Advanced machine learning models
- Check Google API credentials in
.env - Verify API quotas and rate limits
- Check browser console for errors
- Ensure JWT_SECRET is set in
.env - Check MongoDB connection string
- Verify CORS configuration
- Monitor API response times
- Check cache hit rates
- Optimize database queries
For more detailed troubleshooting, see Developer Quick Reference.
This project is licensed under the MIT License - see the LICENSE file for details.
- Google APIs for providing search and shopping data
- MongoDB Atlas for cloud database hosting
- React Community for excellent documentation and tools
- Tailwind CSS for the utility-first CSS framework
- Framer Motion for smooth animations
- Documentation: docs/
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@findone.com