Skip to content

Latest commit

Β 

History

606 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Saleh Store β€” eBay Product Discovery & Shopping Research

Saleh Store Banner

Saleh Store is an eBay product discovery platform with shopping guides, marketplace comparison tools, and direct eBay affiliate links.

Next.js React TypeScript Tailwind CSS Vercel Tests Coverage License

πŸ”— Production: https://www.saleh-store.com


πŸ₯ Repo Health

DevLens Health Overall health: 76/100 β€” Last updated: 2026-09-30

Dimension Progress Score Weight
πŸ“ README Quality β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘ 76 20%
πŸ”₯ Commit Activity β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 100 20%
🌿 Repo Freshness β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 100 10%
πŸ“š Documentation β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘ 51 10%
βš™οΈ CI/CD Setup β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘ 60 10%
🎯 Issue Response β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘ 89 10%
⭐ Community Signal β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 16 5%
πŸ”€ PR Velocity β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 100 10%
πŸ” Security β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 5%

✨ Features

Current Content State

  • 61 published shopping guides β€” articles #1–#61 are served through the unified blog data and sitemap.
  • Black Friday field guide β€” article #61 adds article-specific related categories and live product resources.
  • Humanized editorial library β€” the September 2026 expansion added 20 practical buyer-focused guides across electronics, gaming, phones, networking, smart home, auto, cameras, and shopping strategy.

Public Research Assets

Core Features

  • πŸ” Smart Search - AI-powered product search across eBay with autocomplete
  • πŸ’° Live eBay Products - Real-time product data via eBay Browse API with OAuth 2.0
  • πŸ€– AI Chatbot - Personalized shopping recommendations
  • 🎯 Deal of the Day - Curated daily deals with countdown timers
  • ⭐ Favorites System - Save and track your favorite products
  • πŸ“§ Subscriber Signup & Price Alerts - Email capture with Web3Forms forwarding and price-drop alerts
  • πŸ”„ Recently Viewed - Track your browsing history
  • 🎨 Product Comparison - Compare multiple products side-by-side
  • πŸ’Έ Affiliate Tracking - eBay Partner Network integration (campid/customid) for commission tracking
  • πŸ“ˆ First-party Analytics - /api/track events plus an aggregated, token-protected read endpoint

Technical Features

  • ⚑ ISR (Incremental Static Regeneration) - Lightning-fast page loads with fresh content
  • πŸ–ΌοΈ Image Optimization - AVIF/WebP with blur placeholders
  • πŸŒ™ Dark Mode - Light/dark theme switching
  • 🎨 Responsive Design - Mobile, tablet, and desktop
  • β™Ώ Accessibility - Semantic landmarks, keyboard navigation, ARIA labelling
  • πŸ“Š Analytics - Vercel Analytics & Speed Insights integrated
  • πŸ”’ Security Proxy - proxy.ts adds CSP, HSTS, clickjacking protection and 60 req/min/IP rate limiting
  • πŸ§ͺ Comprehensive Testing - Jest 29 + React Testing Library (20 suites, 268 tests, CI-enforced coverage floor)
  • πŸ“„ Self-hosted Fonts - geist npm package
  • πŸ”„ Cached eBay Calls - LRU caches for OAuth tokens and Browse responses
  • βœ… GitHub Actions CI - npm ci β†’ merge-conflict check β†’ lint β†’ typecheck β†’ test β†’ build
  • πŸ“… Daily Rotating Keywords - Fresh product variety every day

πŸ€– AI Agent Development Source

This repository is designed to be recoverable by AI agents without access to previous chat sessions.

  • AGENTS.md β€” mandatory operating rules and development gates for AI agents.
  • AI Agent Source of Truth β€” architecture, boundaries, current facts, and non-negotiable rules.
  • Project Status β€” current operational state, known limitations, and safe next areas.
  • Development History β€” durable milestone history with PR/commit references.
  • Changelog β€” versioned project changes and dated records.

Rule: Git history and current code are authoritative. Documentation preserves context; dated baselines must not be rewritten to look current.


πŸš€ Quick Start

git clone https://github.com/SamoTech/ebay-store.git
cd ebay-store
npm install
cp .env.example .env.local
npm run dev

Open http://localhost:3000.

See SETUP_GUIDE.md for environment configuration.


🧰 Scripts

Command What it does
npm run dev Start the Turbopack dev server on port 3000
npm run build Production build
npm run start Serve the production build
npm run lint ESLint
npm run typecheck TypeScript checking
npm test Jest
npm run test:coverage Jest with coverage
npm run verify typecheck + lint + tests
npm run verify:apis API smoke tests
npm run verify:conflicts Detect duplicate/conflicting route + config definitions
npm run analyze Bundle analysis

πŸ”‘ Environment Variables

Variable Required Purpose
EBAY_CLIENT_ID / EBAY_CLIENT_SECRET βœ… eBay Browse API OAuth
EBAY_CAMPAIGN_ID recommended eBay Partner Network campaign id
NEXT_PUBLIC_EBAY_CAMPAIGN_ID optional Browser-side campaign override
EBAY_MARKETPLACE_ID optional Marketplace, default EBAY_US
GROQ_API_KEY optional Enables the AI chatbot
WEB3FORMS_ACCESS_KEY optional Subscriber forwarding
ANALYTICS_READ_TOKEN optional Token for production analytics read
DEALSHUB_DATA_DIR optional Runtime JSON storage location
NEXT_PUBLIC_GA_ID optional Google Analytics

Copy .env.example and fill in only the variables required for your environment.


πŸ”Œ API Endpoints

Endpoint Description
GET /api/products/discover Home product feed
GET /api/products/search?q=&limit= Validated product search
GET /api/products/category/[slug] Category feed
GET /api/products/daily-deal Deal of the Day
GET /api/ebay/search?q= eBay Browse API search proxy
GET /api/ebay/status eBay integration status
GET /api/health Health/readiness
POST /api/subscribe Subscriber signup
POST /api/price-alert Β· GET /api/alerts Price alerts
POST /api/track Β· GET /api/track First-party analytics
POST /api/chat Groq-hosted openai/gpt-oss-20b shopping assistant

Deprecated eBay/debug paths intentionally redirect to consolidated endpoints.


πŸ”§ Tech Stack

Layer Technology
Frontend Next.js 16 App Router, React 19, TypeScript 5, Tailwind CSS 3.4
APIs eBay Browse API, eBay Partner Network, Groq-hosted openai/gpt-oss-20b AI
Testing Jest 29 + React Testing Library
DevOps Vercel, GitHub Actions

πŸ“š Documentation


πŸ›‘οΈ Security

  • No exposed secrets
  • Rate limiting on sensitive APIs
  • Input sanitization and validation
  • OAuth 2.0 for eBay API access
  • CSP / HSTS / clickjacking protection via proxy.ts

πŸ“„ License

MIT License β€” see LICENSE.

Built with Next.js 16, React 19, TypeScript, and Vercel Β· Ossama Hashim

Live Demo β€’ Documentation β€’ GitHub

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages