{"id":25023190,"url":"https://github.com/eser/sanitizer-svc","last_synced_at":"2025-04-13T08:08:59.983Z","repository":{"id":271955865,"uuid":"913214168","full_name":"eser/sanitizer-svc","owner":"eser","description":"provides email address validation, sanitization, and disposable email detection","archived":false,"fork":false,"pushed_at":"2025-01-07T08:52:38.000Z","size":22,"stargazers_count":20,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T08:08:21.769Z","etag":null,"topics":["disposable-emails","email","fraud-detection","fraud-prevention","golang","sanitizer","validator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-07T08:52:23.000Z","updated_at":"2025-03-21T23:09:24.000Z","dependencies_parsed_at":"2025-01-17T19:01:45.465Z","dependency_job_id":null,"html_url":"https://github.com/eser/sanitizer-svc","commit_stats":null,"previous_names":["eser/sanitizer-svc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fsanitizer-svc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fsanitizer-svc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fsanitizer-svc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eser%2Fsanitizer-svc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eser","download_url":"https://codeload.github.com/eser/sanitizer-svc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681490,"owners_count":21144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disposable-emails","email","fraud-detection","fraud-prevention","golang","sanitizer","validator"],"created_at":"2025-02-05T14:37:26.651Z","updated_at":"2025-04-13T08:08:59.951Z","avatar_url":"https://github.com/eser.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email Sanitizer Service\n\nA lightweight HTTP service that provides email address validation, sanitization, and disposable email detection.\n\n## Features\n\n- Email validation using regex pattern\n- Email sanitization (lowercase, whitespace removal, plus addressing removal)\n- Disposable email domain detection\n- Simple REST API interface\n\n## Getting Started\n\n### Prerequisites\n\n- Go 1.x or higher\n- A disposable email blocklist file (provided as `disposable_email_blocklist.conf`)\n\n### Installation\n\n```bash\ngit clone https://github.com/eser/sanitizer-svc.git\ncd sanitizer-svc\ngo build\n```\n\n## Usage\n\n1. Start the server:\n```bash\n./sanitizer-svc\n```\n\nThe server will start on port 8080.\n\n### API Endpoint\n\n#### GET /sanitize\n\nValidates, sanitizes, and checks if an email address is from a disposable domain.\n\n**Query Parameters:**\n- `email` (required): The email address to process\n\n**Response:**\n```json\n{\n    \"isValid\": true,\n    \"sanitized\": \"johndoe@example.com\",\n    \"isDisposable\": false\n}\n```\n\n**Example Usage:**\n```bash\ncurl \"http://localhost:8080/sanitize?email=John.Doe+alias@Example.com\"\n```\n\n### Sanitization Rules\n\nThe service applies the following sanitization rules:\n- Converts email to lowercase\n- Removes whitespace\n- Removes plus addressing (e.g., `user+alias@domain.com` → `user@domain.com`)\n- Removes dots from the local part (e.g., `john.doe@domain.com` → `johndoe@domain.com`)\n\n## License\n\nApache 2.0\n\n## Thanks\n\nThanks to [disposable-email-domains](https://github.com/disposable-email-domains/disposable-email-domains) project for providing the blocklist and making it available under Public Domain.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feser%2Fsanitizer-svc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feser%2Fsanitizer-svc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feser%2Fsanitizer-svc/lists"}