How laibakhan6559/shopify-leads-serper-tool works
Shopify Leads Scraper is a web application for discovering Shopify stores and collecting contact leads, with account, history, analytics, admin, and export features. The main flow is form submission → job creation → search-provider discovery → store verification and contact extraction → deduplication and persistence → live progress/results and export. The README describes the basic scrape flow; sampled source and the SOURCE INDEX show a broader backend with queueing, Redis-backed job state, Shopify catalog services, and reporting. Some subsystem links rely on explicit README or index references because their implementations were not excerpted.
Main entry points: scrapeOrchestrator.js Scrape orchestration · scrapeController.js Scrape controller · CustomQueryPage.jsx Search experience · jobManager.js Job manager
Components 25
Web application
- App routes
frontend/src/App.jsx - Search form
frontend/src/components/SearchForm.jsx - Search experience
frontend/src/pages/CustomQueryPage.jsx - API client
frontend/src/api.js - Job resume state
frontend/src/utils/jobStorage.js
API and accounts
- HTTP server
backend/src/index.js - Scrape routes
backend/src/routes/scrape.js - Scrape controller
backend/src/controllers/scrapeController.js - Authentication
backend/src/controllers/authController.js
Lead discovery
- Search providers
backend/src/services/searchService.js - Store scraper
backend/src/services/storeScraper.js - Scrape orchestration
backend/src/services/scrapeOrchestrator.js - Shopify catalog
backend/src/services/shopifyCatalogService.js
Jobs and data
- Job manager
backend/src/jobs/jobManager.js - Scrape queue
backend/src/services/queueService.js - Lead persistence
backend/src/services/leadPersistenceService.js - Redis state
backend/src/services/redisClient.js - Application database
Reporting and admin
- Search history
backend/src/controllers/historyController.js - Usage statistics
backend/src/services/statsService.js - Analytics API
backend/src/controllers/analyticsController.js - Admin API
backend/src/controllers/adminController.js - Excel export
backend/src/services/exportService.js - Google Sheets
backend/src/services/sheetsService.js
Other components
- User
Connections 26
- User → App routes: uses
frontend/src/App.jsx - App routes → Search experience: routes to
frontend/src/App.jsx - Search experience → Search form: renders
frontend/src/pages/CustomQueryPage.jsx - Search experience → API client: requests jobs
frontend/src/pages/CustomQueryPage.jsx - Search experience → Job resume state: resumes jobs
frontend/src/utils/jobStorage.js - API client → HTTP server: calls API
- HTTP server → Scrape routes: mounts routes
backend/src/index.js - Scrape routes → Scrape controller: dispatches
- Scrape controller → Job manager: creates and reads
backend/src/controllers/scrapeController.js - Scrape controller → Scrape orchestration: starts scrape
backend/src/controllers/scrapeController.js - Scrape controller → Excel export: builds export
backend/src/controllers/scrapeController.js - Scrape controller → Google Sheets: validates sheets
backend/src/controllers/scrapeController.js - Scrape orchestration → Search providers: finds candidates
backend/src/services/scrapeOrchestrator.js - Scrape orchestration → Store scraper: scrapes stores
backend/src/services/scrapeOrchestrator.js - Scrape orchestration → Shopify catalog: uses catalog
backend/src/services/scrapeOrchestrator.js - Scrape orchestration → Job manager: updates jobs
backend/src/services/scrapeOrchestrator.js - Scrape orchestration → Lead persistence: persists leads
backend/src/services/scrapeOrchestrator.js - Scrape orchestration → Usage statistics: records stats
backend/src/services/scrapeOrchestrator.js - Job manager → Redis state: stores job state
backend/src/jobs/jobManager.js - Scrape controller → Scrape queue: enqueues jobs
backend/src/controllers/scrapeController.js - Lead persistence → Application database: writes leads
- Usage statistics → Application database: stores metrics
backend/src/services/statsService.js - Authentication → Application database: reads and writes accounts
backend/src/controllers/authController.js - Search history → Application database: reads history
backend/src/controllers/historyController.js - Analytics API → Usage statistics: reports metrics
- Admin API → Application database: manages accounts
backend/src/controllers/adminController.js