How tharunraj-u/email-validator-extension works
This browser extension extracts contact rows from the active page or pasted input, validates email addresses, and presents merged results for preview and export. Its page extraction supports HTML tables, plain text, and Google Sheets; a separate OCR route scans visible sheet regions and parses the captured text. The graph follows documented and excerpted calls where available; popup-to-background and page-content wiring are not fully visible in the supplied excerpts, so those links are marked unverified.
Main entry points: popup.js Popup workflow · ocr-scan.js OCR scanning · csv.js Email and row processing · validator.js Email validation
Components 17
Extension interface
- Popup workflow
popup/popup.js - Scan settings
scripts/config.js
Page extraction
- Page scanner
scripts/content.js - HTML tables
scripts/extractors/html-table.js - Plain text
scripts/extractors/plain-text.js - Sheets extractor
scripts/extractors/google-sheets.js - Sheets bootstrap
scripts/sheets-bootstrap.js - OCR scanning
scripts/ocr-scan.js
Processing
- OCR parsing
scripts/ocr-parse.js - Email and row processing
scripts/csv.js - Validation dispatch
scripts/background.js - Email validation
scripts/validator.js
External services
- OCR.space API
- Validator API
- Browser storage
Other components
- User
- Active page
Connections 18
- User → Popup workflow: opens
- Active page → Page scanner: provides page data
- Popup workflow → Page scanner: requests scan
- Popup workflow → OCR scanning: starts OCR scan
popup/popup.js - Popup workflow → Email and row processing: parses and formats
popup/popup.js - Popup workflow → Validation dispatch: requests validation
- Popup workflow → Browser storage: reads and writes settings
popup/popup.js - Page scanner → Active page: reads page content
scripts/content.js - HTML tables → Email and row processing: normalizes headers
scripts/extractors/html-table.js - Plain text → Email and row processing: extracts emails
scripts/extractors/plain-text.js - OCR scanning → OCR parsing: parses OCR text
scripts/ocr-scan.js - OCR scanning → Email and row processing: deduplicates and finds emails
scripts/ocr-scan.js - OCR scanning → Scan settings: reads OCR settings
scripts/ocr-scan.js - OCR scanning → OCR.space API: sends image for OCR
scripts/ocr-scan.js - OCR parsing → Email and row processing: uses email helpers
scripts/ocr-parse.js - Validation dispatch → Email validation: dispatches validation
scripts/background.js - Email validation → Scan settings: reads API configuration
scripts/validator.js - Email validation → Validator API: posts email
scripts/validator.js