How rohin-kbs/lead-generator works
LeadGen Pro is a browser-based lead-generation interface. A user enters a job title, country, remote preference, and desired lead count; the form validates these criteria and POSTs them to a configurable n8n webhook. It maps the returned records into lead fields, then renders them in a detailed, scrollable table with links to company and Apollo pages. The sampled code shows no in-repository generation engine or persistent lead store: lead generation is delegated to the external webhook. The map focuses on this workflow and its UI components.
Main entry points: lead-form.tsx Lead Form · leads-table.tsx Lead Results · page.tsx Home Page · card.tsx Card
Components 9
Results Presentation
- Lead Results
components/leads-table.tsx
UI Components
- Form Controls
components/ui/input.tsx - Table Controls
components/ui/table.tsx - Button
components/ui/button.tsx - Card
components/ui/card.tsx
Other components
- Lead Seeker
Connections 10
- Lead Seeker → Home Page: opens
- Home Page → Lead Form: renders
- Lead Form → n8n Webhook: POSTs criteria
- n8n Webhook → Lead Form: returns leads
- Lead Form → Lead Results: passes leads
- Lead Form → Form Controls: renders inputs
- Lead Form → Button: renders submit
- Lead Form → Card: uses card
- Lead Results → Table Controls: renders rows
- Lead Results → Card: uses card