{"id":16486380,"url":"https://github.com/hsnice16/email-verifier","last_synced_at":"2025-09-11T13:07:12.122Z","repository":{"id":257812101,"uuid":"868098424","full_name":"hsnice16/email-verifier","owner":"hsnice16","description":"Enter an email and verify if it's a valid email or not, written in Go language. Also, exposes the core service to verify an email as a package and as an endpoint.","archived":false,"fork":false,"pushed_at":"2024-11-28T11:11:50.000Z","size":55,"stargazers_count":30,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T09:35:29.370Z","etag":null,"topics":["golang","golang-package"],"latest_commit_sha":null,"homepage":"https://exotic-ranee-hsnice16-19945db3.koyeb.app/swagger/index.html","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hsnice16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"hsnice16"}},"created_at":"2024-10-05T13:25:40.000Z","updated_at":"2025-08-18T04:34:19.000Z","dependencies_parsed_at":"2024-10-06T05:24:45.849Z","dependency_job_id":"a48a0e82-c23f-4913-bc5e-e8f06bec0fad","html_url":"https://github.com/hsnice16/email-verifier","commit_stats":null,"previous_names":["hsnice16/email-verifier"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hsnice16/email-verifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Femail-verifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Femail-verifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Femail-verifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Femail-verifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsnice16","download_url":"https://codeload.github.com/hsnice16/email-verifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Femail-verifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274640911,"owners_count":25322843,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["golang","golang-package"],"created_at":"2024-10-11T13:29:11.894Z","updated_at":"2025-09-11T13:07:12.060Z","avatar_url":"https://github.com/hsnice16.png","language":"Go","funding_links":["https://github.com/sponsors/hsnice16"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# ✨ Email Verifier\n\n![Forks](https://img.shields.io/github/forks/hsnice16/email-verifier)\n![Stars](https://img.shields.io/github/stars/hsnice16/email-verifier)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/hsnice16/email-verifier@v0.2.1/core/service#pkg-overview)](https://pkg.go.dev/github.com/hsnice16/email-verifier@v0.2.1/core/service)\n\n\u003e Enter an email and verify if it's a valid email or not.\n\n\u003c/div\u003e\n\n---\n\n## ⬇️ Installation\n\n`email-verifier` exposes the core service to verify an email. You can get that using:\n\n```shell\ngo get github.com/hsnice16/email-verifier/core/service\n```\n\n---\n\n## 🎬 Quickstart\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/hsnice16/email-verifier/core/service\"\n)\n\nfunc main() {\n  fmt.Printf(\"Hello, Email Verifier\\n\\n\")\n\n  email := \"xyz@\"\n  result, err := service.VerifyEmail(email, service.VerifyEmailOptions{ValidateRegex: true})\n  fmt.Printf(\"Is %+v a Valid Email?: %v\\n\", email, result)\n  fmt.Printf(\"%+v\\n\\n\", err)\n\n  email = \"xyz@example.com\"\n  result, err = service.VerifyEmail(email, service.VerifyEmailOptions{\n    ValidateRegex:       true,\n    ValidateMxRecord:    true,\n    ValidateSmtpRunning: true,\n  },\n  )\n  fmt.Printf(\"Is %+v a Valid Email?: %v\\n\", email, result)\n  fmt.Println(err)\n}\n```\n\n```text\nHello, Email Verifier\n\nIs xyz@ a Valid Email?: false\nInvalid Email Address: Regex check failed\n\nIs xyz@example.com a Valid Email?: false\nInvalid Email Address: Mx record not found\n```\n\n---\n\n## ⚙️ Develop Locally\n\n### Pull the code\n\n```shell\ngit clone git@github.com:hsnice16/email-verifier.git\ncd email-verifier\n```\n\n### Run in a Docker Container or start the server manually\n\n#### ➡️ Run in a Docker Container\n\nYou will need [docker](https://www.docker.com/get-started/) on your local machine for this.\n\n##### • Build the image\n\n```shell\ndocker build -t hsnice16/email-verifier:1.0 .\n```\n\n##### • Run container\n\n```shell\ndocker run -p 8080:8080 hsnice16/email-verifier:1.0 -- service\n```\n\n\u003cdiv align=\"center\"\u003e\n• • •\n\u003c/div\u003e\n\n#### ➡️ Run manually\n\n##### • Install our command to the `$GOPATH/bin` directory\n\n```shell\ngo install\n```\n\n\u003c!--\n\n`go build` vs `go install`:\n\n`go build` just compiles the executable file and moves it to the destination.\n`go install` does a little bit more. It moves the executable file to `$GOPATH/bin`\nand caches all non-main packages which are imported to `$GOPATH/pkg`. The cache\nwill be used during the next compilation provided the source did not change yet.\n\n--\u003e\n\n##### • Run our new command\n\n```shell\ncmd\n```\n\n##### • Start the core service\n\n```shell\ncmd service\n```\n\n---\n\n## 💚 Sponsor\n\nIf you found this project helpful, then do consider sponsoring it - [Sponsor](https://github.com/sponsors/hsnice16)\n\nAnd, give it a star 🌟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsnice16%2Femail-verifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsnice16%2Femail-verifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsnice16%2Femail-verifier/lists"}