🎮 Automated stock monitoring and email notifications for Nintendo Switch 2 at Costco
git clone <repository-url>
cd nintendo-switch-monitor
npm install
cp .env.example .envFollow the Resend Setup Guide to configure email notifications.
Edit .env with your settings:
PRODUCT_URL=https://www.costco.com/nintendo-switch-2...
FROM_EMAIL=alerts@yourdomain.com
TO_EMAIL=your-email@gmail.com
RESEND_API_KEY=re_your_api_key_herenpm start- 🔍 Automated Monitoring - Continuously checks Nintendo Switch 2 stock at Costco
- 📧 Instant Alerts - Email notifications when stock becomes available
- 📊 Daily Summaries - Daily reports with monitoring statistics
- 🛡️ Enterprise Reliability - Error handling, retries, circuit breakers
- 📱 Mobile-Friendly - Responsive HTML email templates
npm start # Local monitoring- Follow the GitHub Deployment Guide
- Set up repository secrets
- Deploy to GitHub Actions free tier
| Variable | Required | Description |
|---|---|---|
PRODUCT_URL |
✅ | Nintendo Switch 2 product page URL |
FROM_EMAIL |
✅ | Verified sender email address |
TO_EMAIL |
✅ | Your notification email |
RESEND_API_KEY |
✅ | Resend service API key |
STOCK_CHECK_INTERVAL |
❌ | Check interval (default: 5 minutes) |
DAILY_SUMMARY_TIME |
❌ | Daily summary time (default: 09:00) |
- Setup Guide - Detailed installation and configuration
- Email Setup - Resend service configuration
- Configuration Guide - Environment variables and security
- GitHub Deployment - Cloud deployment with GitHub Actions
- Troubleshooting - Common issues and solutions
nintendo-switch-monitor/
├── src/ # Application source code
├── data/ # Stock check history
├── logs/ # Application logs
├── .env # Configuration (create from .env.example)
└── docs/ # Documentation
Not receiving emails?
- Check spam folder
- Verify Resend domain is verified
- Check
logs/error.log
Application not starting?
- Verify all required environment variables in
.env - Check Node.js version (18.0.0+ required)
For detailed troubleshooting, see TROUBLESHOOTING.md.
Personal and educational use only. Respect Costco's terms of service.