Pricewise is a powerful, full-stack price tracking application that helps users save money by monitoring Amazon products. It automatically scrapes product details, tracks price history, and sends automated email notifications when prices drop or items come back in stock.
- Advanced Web Scraping: Robust scraping engine using ScraperAPI to bypass bot detection across multiple Amazon domains (US, UK, DE, FR, IT, ES, etc.).
- Automated Price Alerts: Users receive instant email notifications (via Resend) for:
- Welcome confirmation
- Price drops below tracked threshold
- Items back in stock
- Lowest price reached
- Dynamic Price Tracking: Real-time charts showing price history (Highest, Lowest, and Average).
- Multi-Currency Support: Automatic currency conversion and exchange rate updates via daily cron jobs.
- Smart Categorization: Automatic category inference based on breadcrumbs and product titles.
- User Management: Dedicated dashboard for users to manage their tracked products and unsubscribe from alerts.
- Modern UI/UX: Built with React 19 and Next.js 15, featuring a responsive design, smooth animations, and optimized performance.
- Advanced Sorting & Pagination: Easily browse through tracked products with customizable sorting (Price, Date, Title) and efficient pagination.
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- UI Components: React 19, Radix UI, Headless UI, Tailwind CSS
- Database: MongoDB with Mongoose
- Scraping: Cheerio, Axios, ScraperAPI
- Emailing: Resend
- Icons: Lucide React
- Workflows: GitHub Actions for automated scraping and deployment.
Create a .env file in the root directory and add the following:
# MongoDB
MONGODB_URI=your_mongodb_connection_string
# ScraperAPI
SCRAPER_API_KEY=your_scraper_api_key
# Email (Resend)
RESEND_API_KEY=your_resend_api_key
RESEND_FROM_EMAIL=PriceWise <onboarding@resend.dev>
# Cron Secret (for security)
CRON_SECRET=your_random_secret_string
# Base URL
NEXT_PUBLIC_BASE_URL=http://localhost:3000git clone https://github.com/mohamedaleya/pricewise.git
cd pricewisebun install
# or
npm installnpm run devOpen http://localhost:3000 with your browser to see the result.
The project includes several utility scripts located in the scripts/ directory:
applyCategories.ts: Bulk update product categories based on current inference logic.viewProducts.ts: Terminal utility to inspect products in the database.
Run them using:
bun run scripts/applyCategories.tsThe app is configured for deployment using Docker and GitHub Actions. See .github/workflows/deploy.yml for CI/CD details.
Built with ❤️ by Mohamed Aleya