A 100% free, production-ready, open-source template for Amazon Associates, Influencers, and Content Creators to build an autonomous e-commerce deals portfolio with automated Pinterest syndication, live price synchronization, and strict affiliate compliance.
Running an affiliate business manually is time-consuming. Deals expire, prices fluctuate, and out-of-date prices can violate Amazon Associates policies.
This template provides an all-in-one autonomous system that:
- π Deploys a responsive storefront in under 5 minutes with zero hosting costs (Render / Vercel Free Tier).
- π Synchronizes Amazon prices in real time with multi-selector fallback scraping.
- π Automates Pinterest marketing via Media RSS 2.0 and Pinterest Bulk CSV exports.
- π‘οΈ Guarantees 100% affiliate compliance by validating outbound links, rating thresholds, and mandatory disclosures.
- π Syncs audit reports with Google Sheets for live portfolio tracking.
- π Includes a private admin dashboard for 1-click ASIN lookup, price editing, and catalog management.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β LAYER 1: PRESENTATION & STOREFRONT β
β β’ Responsive Glassmorphic Storefront β’ Category Filters & Search β
β β’ 1-Click WhatsApp & Social Sharing β’ Dynamic Deal Countdown Timer β
ββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββ
β LAYER 2: WEB & API SERVER (Node / Express) β
β β’ REST Endpoints (/api/products, /api/cron/*, /api/admin/*) β
β β’ Static Asset Pipeline β’ Security & Rate Limiting β
ββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββ
β LAYER 3: GOVERNANCE & COMPLIANCE AGENT β
β β’ Safe-Fail Circuit Breaker β’ Amazon Tag Strict Matching β
β β’ Mandatory Affiliate Disclosures β’ Product Integrity Gate (4β
+) β
ββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββ
β LAYER 4: REAL-TIME PRICE ENGINE β
β β’ 7-Stage Multi-Selector Fallback β’ Anti-Bot Header Rotation β
β β’ Buybox Availability Parsing β’ Price Delta Change Tracking β
ββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββ
β LAYER 5: STORAGE & HIGH-SPEED CACHE β
β β’ In-Memory Map Cache (O(1) Access) β’ JSON File Backing Store β
β β’ Live Google Sheets CSV Ingestion β’ Ultra-Lean <80MB Memory β
ββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββ
β LAYER 6: PINTEREST & SOCIAL SYNDICATION β
β β’ Media RSS 2.0 XML Auto-Publisher β’ Pinterest Bulk CSV Generator β
β β’ Automated #ad Tag Attribution β’ High-Res Image Pipeline β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Node.js 18+ installed locally (Download Node.js).
- An active Amazon Associates Account to get your Associate Tag (e.g.
yourtag-21). - (Optional) A Pinterest Business Account to automate daily pin publishing.
# Clone the repository
git clone https://github.com/your-username/amazon-affiliate-portfolio-template.git
# Enter the project directory
cd amazon-affiliate-portfolio-template
# Install dependencies
npm installCreate your local .env configuration from the provided template:
cp .env.example .envOpen .env in your code editor and customize the parameters:
# Server Port
PORT=3000
# Your Public Website URL (e.g., http://localhost:3000 for local testing)
SITE_URL=http://localhost:3000
# Your Amazon Associates Partner Tracking Tag (e.g., yourtag-21)
AMAZON_ASSOCIATE_TAG=YOUR_ASSOCIATE_TAG_21
# Master Password for the Private Admin Dashboard (/admin)
ADMIN_PASSWORD=YOUR_STRONG_ADMIN_PASSWORD_HERE
# Notification Email for System & Integrity Reports
GUARDIAN_ALERT_EMAIL=YOUR_NOTIFICATION_EMAIL@example.com
# Automated Cron Sync Interval (in hours)
SYNC_INTERVAL_HOURS=2# Run test suite to verify 1-to-1 link integrity & format checks
npm test
# Start the application server
npm start- ποΈ Public Deals Storefront: http://localhost:3000
- π Admin Supervisor Dashboard: http://localhost:3000/admin (Log in with your
ADMIN_PASSWORD)
- Sign up or log in to Render.com.
- Click New + β Web Service.
- Connect your GitHub repository.
- Fill in the build settings:
- Name:
my-affiliate-store(or your preferred name) - Runtime:
Node - Build Command:
npm install - Start Command:
npm start - Instance Type:
Free
- Name:
- Under Environment Variables, add:
NODE_ENV=productionAMAZON_ASSOCIATE_TAG=YOUR_ASSOCIATE_TAG_21ADMIN_PASSWORD=YOUR_STRONG_ADMIN_PASSWORD_HERESITE_URL=https://YOUR-APP-NAME.onrender.comGUARDIAN_ALERT_EMAIL=YOUR_NOTIFICATION_EMAIL@example.com
- Click Deploy Web Service. Your affiliate site is live!
- Sign up or log in to Vercel.com.
- Click Add New... β Project and import your repository.
- In Environment Variables, add
AMAZON_ASSOCIATE_TAG,ADMIN_PASSWORD, andSITE_URL. - Click Deploy. Vercel uses the included
vercel.jsonautomatically.
Drive passive traffic to your affiliate site with two automated methods:
- Go to your Pinterest Business Hub β Settings β Claimed Accounts.
- Claim your deployed website domain (e.g.,
https://YOUR-APP-NAME.onrender.com). - Navigate to Bulk Create Pins β Auto-publish from RSS feed.
- Enter your live feed URL:
https://YOUR-APP-NAME.onrender.com/pinterest-deals.xml - Select your target Pinterest Board (e.g., Best Amazon Deals).
- Click Save. Pinterest will automatically check your feed and publish new pins daily with compliance tags (
#ad) and your direct links!
- Log in to your Admin Dashboard (
/admin) or visit/pinterest-pins.csv. - Download the pre-formatted CSV file.
- In Pinterest, navigate to Create β Create Pins in Bulk.
- Upload the downloaded CSV to schedule dozens of pins instantly.
Track your deals catalog and price changes in Google Sheets:
- Open a new Google Sheet.
- In cell
A1, paste the following formula:=IMPORTDATA("https://YOUR-APP-NAME.onrender.com/master-ecosystem-audit.csv") - Google Sheets will automatically fetch and display your live product metrics, price deltas, and compliance health status.
- π 1-Click Product Addition: Enter any 10-character Amazon ASIN to look up product titles, prices, ratings, and high-res images automatically.
- β‘ Live Price Auditor: Run real-time buybox checks across your entire catalog.
- π Price Deltas Ledger: Inspect recorded price reductions and discounts.
- π Pinterest OAuth & Status: Check feed generation status and download CSVs.
- π¬ User Feedback Inbox: Review and resolve customer product suggestions.
| Endpoint | Method | Access | Description |
|---|---|---|---|
/api/products |
GET |
Public | Returns verified catalog products in JSON |
/api/cron/ping |
GET |
Public | Lightweight keep-alive health check |
/api/cron/2hour-sync |
GET |
Public | Scheduled 2-hour price & compliance sync |
/pinterest-deals.xml |
GET |
Public | Media RSS 2.0 XML feed for Pinterest Auto-Publish |
/pinterest-pins.csv |
GET |
Public | Pre-formatted Pinterest Bulk Upload CSV |
/master-ecosystem-audit.csv |
GET |
Public | Google Sheets live CSV export bridge |
/api/admin/system-status |
GET |
Admin | Safe-Fail Guardian status & memory telemetry |
/api/admin/price-deltas |
GET |
Admin | Price change audit trail |
/api/admin/run-price-sync |
POST |
Admin | Manual trigger for instant real-time price verification |
This template is built in accordance with the Amazon Associates Program Operating Agreement:
- Canonical Attribution: Outbound links are strictly tagged with your verified
tag=YOUR_TAG. - Clear Disclosures: Prominent static and dynamic affiliate notices ("As an Amazon Associate, I earn from qualifying purchases") appear on the storefront, cards, and privacy pages.
- Transparent Pricing: Displays real-time timestamps on price data to ensure accuracy.
Distributed under the MIT License. Free for personal and commercial use. See LICENSE for details.