** The complete solution for developers seeking a powerful Google Shopping API alternative!**
This comprehensive demo showcases how to integrate the Product Search API - a robust, cost-effective alternative to Google Shopping API that searches across 40+ major marketplaces and e-commerce platforms in real-time.
- β Google Shopping API: Expensive, complex authentication, limited vendor coverage
- β Our Product Search API: Affordable, simple integration, 40+ vendors, no complex OAuth
- π Multi-Vendor Coverage: Search Amazon, eBay, Walmart, Target, Best Buy + 35 more
- π° Cost-Effective: Up to 90% cheaper than Google Shopping API
- β‘ Fast Integration: 5-minute setup vs hours of Google API configuration
- π Real-Time Data: Live pricing, availability, and reviews
- π± Country Support: US, Canada, France, Germany, UK, Australia, Japan
- π‘οΈ Reliable: 99.9% uptime SLA
- π E-commerce Price Comparison Tools
- π Market Research Applications
- π Product Discovery Platforms
- π‘ Affiliate Marketing Sites
- π Inventory Management Systems
- πͺ Multi-Marketplace Integration
- Smart Search Interface with autocomplete and suggestions
- Advanced Filtering: Price range, ratings, vendor selection, country-specific results
- Real-Time Results from 40+ marketplaces simultaneously
- Detailed Product Pages with image galleries, reviews analysis, seller comparison
- Price Comparison Table showing best deals across vendors
- Mobile-Responsive Design optimized for all devices
π Sign up: https://rapidapi.com/remote-skills-remote-skills-default/api/product-search-api
π³ Choose your plan (Free tier available!)
π Copy your API keygit clone https://github.com/your-username/google-shopping-api-alternative-demo
cd google-shopping-api-alternative-demo
npm installcp .env.example .env.localEdit .env.local:
# π Server-side only (API key protected from client exposure)
RAPIDAPI_KEY=your_rapidapi_key_here
# π Public host (safe to expose)
NEXT_PUBLIC_RAPIDAPI_HOST=product-search-api.p.rapidapi.comnpm run dev
# Open http://localhost:3000πYou're ready! Start searching across 40+ marketplaces instantly!
Unlike many examples that expose API keys, this demo implements production-ready security:
// β
SECURE: Server-side API route (API key protected)
// /api/search - Your API key stays safe on the server
// Client-side usage (recommended):
const response = await fetch(`/api/search?query=iPhone&country=us`);
const products = await response.json();// Search across 40+ marketplaces
const searchProducts = async (query, country = 'us') => {
const response = await fetch('/api/search?' + new URLSearchParams({
query: query,
country: country // us, ca, fr, de, uk, au, jp
}));
return response.json();
};// Get detailed product information
const getProductDetails = async (productId) => {
const response = await fetch(`/api/product/${productId}`);
return response.json();
};| Country | Code | Major Marketplaces Covered |
|---|---|---|
| πΊπΈ United States | us |
Amazon, Walmart, Target, Best Buy, Home Depot, eBay |
| π¨π¦ Canada | ca |
Amazon.ca, Walmart.ca, Canadian Tire, Best Buy Canada |
| π«π· France | fr |
Amazon.fr, Cdiscount, Fnac, Darty |
| π©πͺ Germany | de |
Amazon.de, Otto, MediaMarkt, Saturn |
| π¬π§ United Kingdom | uk |
Amazon.co.uk, Argos, Currys, John Lewis |
| π¦πΊ Australia | au |
Amazon.com.au, JB Hi-Fi, Harvey Norman |
| π―π΅ Japan | jp |
Amazon.co.jp, Rakuten, Yahoo Shopping |
{
"products": [
{
"title": "iPhone 15 Pro Max 256GB Natural Titanium",
"source": "amazon.com",
"link": "https://amazon.com/product-link",
"price": "$1,199.00",
"imageUrl": "https://product-image.jpg",
"rating": 4.8,
"ratingCount": 1247,
"productId": "prod_abc123",
"position": 1
}{
"id": "prod_abc123",
"title": "iPhone 15 Pro Max 256GB Natural Titanium",
"description": "The most advanced iPhone ever...",
"images": {
"main_images": [
{
"url": "https://high-res-image-1.jpg",
"type": "main"
}
]
},
"reviews": {
"rating": 4.8,
"count": 1247,
"aspects": [
{
"name": "Camera Quality",
"rating": 4.9,
"mentions": 892
}
]
},
"buying_options": {
"sellers": [
{
"seller_name": "Amazon",
"item_price": "$1,199.00",
"total_price": "$1,199.00",
"shipping": "Free"
}
]
}
}- β‘ Next.js 14 - React framework with App Router
- π¨ Tailwind CSS + shadcn/ui - Modern component library
- π TypeScript - Type-safe development
- π Sonner - Toast notifications
- π Lucide React - Beautiful icons
- π‘οΈ Server-Side API Routes - API keys protected from client exposure
- β‘ Next.js Image Optimization - Automatic image optimization
- π± Responsive Design - Mobile-first approach
- π Performance Optimized - Fast loading and smooth interactions ] }, "images": { "main_images": [ {
src/
βββ app/
β βββ api/
β β βββ search/route.ts # π Product search endpoint
β β βββ product/[id]/route.ts # π Product details endpoint
β βββ product/[id]/page.tsx # π± Product detail pages
β βββ page.tsx # π Main search interface
βββ components/
β βββ ui/ # π¨ shadcn/ui components
β βββ SearchBar.tsx # π Advanced search component
β βββ ProductCard.tsx # ποΈ Product display card
β βββ ProductModal.tsx # π± Product quick view
βββ lib/
βββ utils.ts # π οΈ Utility functions
- Price Comparison Sites: Compare prices across all major retailers
- Deal Aggregators: Find the best deals automatically
- Product Research Tools: Comprehensive market analysis
- Shopping Apps: Real-time product search and comparison
- Barcode Scanners: Instant price checking across retailers
- Wishlist Managers: Track products across multiple stores
- Inventory Management: Monitor competitor pricing
- Market Research: Analyze product trends and pricing
- Affiliate Networks: Access to diverse product catalogs
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel --prod
# Add environment variables in Vercel dashboardFROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]- Netlify: Connect GitHub repo, add env vars
- Railway: One-click deploy from GitHub
- Heroku: Standard Node.js deployment
- AWS/GCP: Use container services
- π Average Response Time: < 2 seconds
- π Success Rate: 99.9% uptime
- π Cache Strategy: Smart caching for optimal speed
- οΏ½ Mobile Performance: Perfect Lighthouse scores
- π API Documentation: RapidAPI Docs
- π¬ Community Support: GitHub Issues
- π§ Direct Support: Available through RapidAPI platform
- π₯ Video Tutorials: Coming soon!
Q: What's included in the free tier? A: Free tier includes 10 monthly requests - perfect for testing and small projects.
Q: Can I use this for commercial projects? A: Yes! The API is designed for commercial use with various pricing tiers to match your needs.
Q: How often is the data updated? A: Product data is updated in real-time, ensuring you always get the latest pricing and availability.
Q: Which countries are supported? A: Currently supports US, Canada, France, Germany, UK, Australia, and Japan with more coming soon.
This demo is MIT licensed. The Product Search API is provided by Remote Skills through RapidAPI platform.
- π Get API Key: RapidAPI Product Search API
- π API Documentation: View Docs
- π° Pricing Plans: View Pricing
- π Support: Get Help
Ready to build the next generation of e-commerce applications?
β Star this repository if it helps your project!
Built with β€οΈ by developers, for developers. Making product search simple and powerful.
- Run the development server:
bun dev
# or
npm run dev- Open http://localhost:3000 in your browser
- The application is configured to load images from Google Shopping CDN domains
- If you encounter image loading issues, make sure the
next.config.jsfile includes the proper image domains - The API requires valid RapidAPI credentials to function properly
src/
βββ app/
β βββ globals.css # Global styles
β βββ layout.tsx # Root layout
β βββ not-found.tsx # 404 page
β βββ page.tsx # Main search page
β βββ product/
β βββ [id]/
β βββ page.tsx # Detailed product page
βββ components/
β βββ ui/ # shadcn/ui components
β βββ ProductCard.tsx # Individual product display component
β βββ ProductModal.tsx # Product detail modal
β βββ SearchBar.tsx # Search input with filters
βββ lib/
βββ utils.ts # Utility functions
- Advanced search input with filtering capabilities
- Price range sliders, rating filters, vendor selection
- Sort options and active filter display
- Example search suggestions
- Responsive product display with image, title, price
- Star rating system with review counts
- Vendor badges and position indicators
- Quick action buttons for viewing details
- Navigation to detailed product pages
- Detailed product information in overlay
- Seller comparison and shipping details
- Quick view without page navigation
- Comprehensive product information display
- Image carousel with multiple product images
- Detailed specifications and features
- Reviews analysis with sentiment indicators
- Seller comparison table with pricing and shipping
- Navigation breadcrumbs and related actions
- Large product images with loading states
- Share functionality and wishlist integration
- Direct links to vendor pages
- Search Query Processing: Convert user input to API-compatible format
- Response Handling: Parse and display product data
- Error Management: Handle API errors and network issues
- Loading States: Show progress during API calls
- Data Transformation: Process prices, ratings, and images
- Filtering Logic: Client-side filtering of API results
- Performance Optimization: Memoized calculations and efficient re-renders
This boilerplate reverse-engineers the magic behind Lovable's no-code AI app builder into a traditional Next.js 14 codebase that developers can understand, modify, and extend. It bridges the gap between no-code AI generation and developer control.
| Technology | Purpose | Version |
|---|---|---|
| Next.js | React Framework | 14.2.x |
| React | UI Library | 18.3.1 |
| TypeScript | Type Safety | 5.5.3 |
| App Router | File-based Routing | Latest |
| shadcn/ui | Component Library | Latest |
| Tailwind CSS | Styling | 3.4.11 |
| TanStack Query | Data Fetching | 5.56.2 |
| React Hook Form | Form Handling | 7.53.0 |
| Zod | Schema Validation | 3.23.8 |
- Node.js 18+ or Bun
- Git
# Clone the repository
git clone https://github.com/chihebnabil/next-boilerplate
cd lovable-next-boilerplate
# Install dependencies (npm, yarn, or bun)
npm install
# or
bun install
# Start development server
npm run dev
# or
bun devYour app will be running at http://localhost:3000
lovable-next-boilerplate/
βββ .github/
β βββ instructions/ # AI coding assistant instructions
β βββ global.instructions.md
β βββ app-router.instructions.md
β βββ components.instructions.md
β βββ ... # Comprehensive instruction set
βββ app/
β βββ layout.tsx # Root layout (Server Component)
β βββ page.tsx # Home page (/)
β βββ globals.css # Global styles
β βββ loading.tsx # Loading UI
β βββ error.tsx # Error boundaries
β βββ not-found.tsx # 404 page
β βββ api/ # API routes
βββ components/
β βββ ui/ # shadcn/ui components (40+ pre-built)
β βββ common/ # Shared components
β βββ features/ # Feature-specific components
βββ hooks/ # Custom React hooks
βββ lib/ # Utility functions and configurations
βββ public/ # Static assets
βββ package.json # Dependencies
βββ next.config.js # Next.js configuration
βββ tailwind.config.ts # Tailwind configuration
βββ components.json # shadcn/ui configuration
βββ tsconfig.json # TypeScript configuration
All components are pre-configured with shadcn/ui and located in components/ui/:
Layout & Navigation
accordion,card,separator,sheet,sidebar,tabsbreadcrumb,command,dropdown-menu,menubar,navigation-menu,pagination
Forms & Inputs
button,input,textarea,select,checkbox,radio-group,switch,formcalendar,input-otp,slider,toggle
Feedback & Overlays
alert,alert-dialog,toast,sonner,progress,skeletondialog,drawer,hover-card,popover,tooltip
Data Display
avatar,badge,table,chart,carouselaspect-ratio,collapsible,resizable,scroll-area
- App Router: File-based routing with layouts and nested routes
- Server Components: Default to Server Components for better performance
- Client Components: Use 'use client' only when needed for interactivity
- Generous Spacing:
py-16 lg:py-24for sections - Consistent Rhythm:
space-y-4 lg:space-y-6for content - Responsive First: Mobile-first responsive design
- Typography Scale: Hierarchical text sizing
# Development
npm run dev # Start dev server (port 3000)
npm run build # Production build
npm run start # Start production server
npm run lint # Run ESLint
npm run lint:fix # Auto-fix ESLint issues
# Using Bun (faster alternative)
bun dev # Start dev server
bun run build # Production build
bun start # Start production server- Reverse-Engineered: Based on patterns from Lovable's AI app builder
- Next.js 14 App Router: Modern file-based routing with Server Components
- AI-Optimized: Designed specifically for AI coding assistants
- Design-First: Premium visual design out of the box
- Performance: Server Components and optimization by default
- Full-Stack Ready: API routes, middleware, and database integration
- Flexible: Easy to customize and extend
- Modern: Latest Next.js patterns and best practices
Happy coding!