How muneeb-islam/growth-engine works
Growth Engine Demo is a small e-commerce ad-operations pipeline: scrape brand and competitor products, generate angle-based ad variants, create matching landing-page records, seed simulated performance, then display results in a dashboard and public landing pages. The README documents the pipeline order; sampled scripts show their database operations and DeepSeek call. The Prisma schema and database wiring are represented from the tree and README, but the schema itself was not excerpted.
Main entry points: prisma.ts Prisma Client · generate-hooks.ts Copy Generator · scrape.ts Product Scraper · generate-landing-pages.ts Page Record Generator
Components 11
Product Collection
- Product Scraper
scripts/scrape.ts - Prisma Client
lib/prisma.ts - Growth Data
prisma/schema.prisma
Ad Creative
- Copy Generator
scripts/generate-hooks.ts
Pages and Metrics
- Page Record Generator
scripts/generate-landing-pages.ts - Metric Simulator
scripts/seed-metrics.ts
Web Application
- Performance Dashboard
app/dashboard/page.tsx - Public Landing Page
app/lp/[slug]/page.tsx
Other components
- Pipeline Operator
- Brand Stores
- DeepSeek API
Connections 15
- Pipeline Operator → Product Scraper: runs first
README.md - Pipeline Operator → Copy Generator: runs next
README.md - Pipeline Operator → Page Record Generator: runs next
README.md - Pipeline Operator → Metric Simulator: runs next
README.md - Brand Stores → Product Scraper: provides product data
scripts/scrape.ts - Product Scraper → Prisma Client: writes scraped records
scripts/scrape.ts - Copy Generator → Prisma Client: reads products and saves hooks
scripts/generate-hooks.ts - Copy Generator → DeepSeek API: requests ad variants
scripts/generate-hooks.ts - Page Record Generator → Prisma Client: reads hooks; creates pages
scripts/generate-landing-pages.ts - Metric Simulator → Prisma Client: reads pages; creates metrics
scripts/seed-metrics.ts - Performance Dashboard → Prisma Client: queries performance data
app/dashboard/page.tsx - Public Landing Page → Prisma Client: looks up page by slug
app/lp/[slug]/page.tsx - Prisma Client → Growth Data: persists and reads
README.md - Pipeline Operator → Performance Dashboard: views results
README.md - Pipeline Operator → Public Landing Page: visits ad page
README.md