LeadGen Pro — AI-Powered B2B Lead Generation Engine
LeadGen Pro is a self-hosted B2B lead generation engine designed for zero marginal cost at any volume. It continuously scrapes GitHub, GitLab, HackerNews "Who wants to be hired?", Google Custom Search, and custom URLs using 80+ built-in query templates across India, USA, UK, Europe, APAC, LATAM, and the Middle East. Each lead is deduplicated via SHA-256 email fingerprinting and Levenshtein fuzzy matching on name + domain, then enriched by Mistral 7B running locally on a GTX 1050 GPU via CUDA — identifying pain points, scoring quality (hot/warm/cold), assigning a confidence score (0–100), and generating hyper-personalised outreach copy referencing the lead's specific role and company. A daily target mode runs the pipeline continuously until your quota is hit, auto-pauses until midnight, and resumes. An hourly sweep catches any leads Ollama missed during the main run. The entire stack is production-hardened: JWT-authenticated API, rate limiting on all endpoints, CentOS Stream 9, Nginx reverse proxy, PM2 process manager, and DKMS NVIDIA driver signed for Secure Boot.
$ Architecture
- →Frontend: React 18 + Vite + TailwindCSS + TanStack Query. Real-time dashboard with live WebSocket updates via Socket.io. Filter by quality, source, status, date, location. Manual category override and per-lead notes.
- →Backend: Node.js 20 (ESM) + Express.js. JWT HS256 auth, rate limiting on all endpoints. REST API for lead management, scraping control, AI enrichment triggers, and CSV export.
- →AI Layer: Mistral 7B running locally via Ollama on GTX 1050 GPU (CUDA). Two-pass enrichment — first pass: pain point identification, quality scoring (hot/warm/cold), confidence score (0–100). Second pass: hyper-personalised outreach copy guided by ICP + product description from settings.
- →Scraping Engine: Axios + Cheerio for HTML sources, GitHub API, Algolia HN API, Google Custom Search Engine. Rate-limited with randomised user-agents and per-domain throttling. 80+ built-in GitHub query templates covering global regions.
- →Deduplication: SHA-256 email fingerprinting for exact match, Levenshtein fuzzy match on name + domain to catch variations. Runs before AI enrichment to avoid wasting GPU cycles.
- →Pipeline Orchestration: Daily target mode (e.g. 500/day) runs back-to-back scrape → dedup → enrich cycles with zero idle time. Auto-pauses on quota hit, resumes at midnight. Hourly sweep catches leads missed during main run.
- →Infra: CentOS Stream 9, Nginx reverse proxy, PM2 process manager. DKMS NVIDIA driver signed for Secure Boot. SQLite (zero-config) or PostgreSQL — swappable via env var.