How ossamamehmood/leadpure-ai works
LeadPure is an email-verification and lead-cleaning application, with a bulk web workflow and a batch API. Users upload a spreadsheet, map columns and rules, process contacts, then review and export segmented results; single-address validation and saved history are separate capabilities. The sampled processor delegates email checks to the validation kernel, which applies syntax, disposable, role, DNS/MX, SMTP, and Gravatar checks. Some UI callbacks and unsampled subsystem internals are not shown, so uncertain links are omitted.
Main entry points: App.tsx Workflow shell · validator.ts Validation kernel · processor.ts Lead processor · SingleValidation.tsx Single validation
Components 23
Web application
- Workflow shell
src/App.tsx - Lead upload
src/components/LeadUpload.tsx - Column mapping
src/components/MappingSection.tsx - Validation rules
src/components/RulesSection.tsx - Single validation
src/components/SingleValidation.tsx - Run history
src/components/HistorySection.tsx - History storage
src/hooks/useHistory.ts - Results dashboard
src/components/ResultsDashboard.tsx - Data preview
src/components/DataPreviewModal.tsx
Bulk processing
- Spreadsheet worker
src/workers/xlsxWorker.ts - Processing state
src/hooks/useLeadProcessor.ts - Lead processor
src/utils/processor.ts
Verification engine
- Validation kernel
src/lib/validator.ts - Syntax checks
src/lib/syntax.ts - Disposable registry
src/lib/data/disposable.ts - Domain list
src/lib/data/disposable-list.ts - Role detection
src/lib/data/roles.ts - Provider rules
src/lib/data/free-providers.ts - DNS and MX checks
src/lib/dns.ts - Mailbox probes
src/lib/smtp.ts - Identity signal
src/lib/gravatar.ts
Batch API
- Batch endpoint
api/validate-batch.ts
Other components
- Lead operator
Connections 24
- Lead operator → Workflow shell: uses
README.md - Workflow shell → Lead upload: renders
src/App.tsx - Workflow shell → Column mapping: renders
src/App.tsx - Workflow shell → Validation rules: renders
src/App.tsx - Workflow shell → Single validation: renders
src/App.tsx - Workflow shell → Results dashboard: renders
src/App.tsx - Workflow shell → Spreadsheet worker: creates worker
src/App.tsx - Workflow shell → Processing state: uses
src/App.tsx - Workflow shell → History storage: uses
src/App.tsx - Run history → History storage: reads and saves
src/components/HistorySection.tsx - Workflow shell → Data preview: opens
src/App.tsx - Processing state → Lead processor: calls
src/hooks/useLeadProcessor.ts - Single validation → Lead processor: validates through
src/components/SingleValidation.tsx - Lead processor → Batch endpoint: posts batch
- Batch endpoint → Validation kernel: calls
api/validate-batch.ts - Validation kernel → Syntax checks: checks syntax
src/lib/validator.ts - Validation kernel → Disposable registry: checks domains
src/lib/validator.ts - Disposable registry → Domain list: reads
src/lib/data/disposable.ts - Validation kernel → Role detection: checks roles
src/lib/validator.ts - Validation kernel → Provider rules: checks providers
src/lib/validator.ts - Validation kernel → DNS and MX checks: resolves MX
src/lib/validator.ts - Validation kernel → Mailbox probes: probes mailbox
src/lib/validator.ts - Validation kernel → Identity signal: checks identity
src/lib/validator.ts - Results dashboard → Data preview: opens preview
src/components/ResultsDashboard.tsx