{"id":16183904,"url":"https://github.com/crazymryan/easy-verify","last_synced_at":"2026-02-09T05:06:12.972Z","repository":{"id":240527862,"uuid":"802869150","full_name":"CrazyMrYan/easy-verify","owner":"CrazyMrYan","description":"一个 Nodejs + Redis 的邮箱验证码+验证服务，易移植，易使用。","archived":false,"fork":false,"pushed_at":"2024-05-23T03:24:53.000Z","size":204,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T09:14:10.885Z","etag":null,"topics":["code","email","email-sender","mail","mail-code","nodejs","redis","verify-email","verifycode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/CrazyMrYan.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":"2024-05-19T13:47:17.000Z","updated_at":"2024-05-23T03:24:56.000Z","dependencies_parsed_at":"2024-11-02T23:02:31.950Z","dependency_job_id":"edc16654-4578-4b63-910d-ac558bcb91a0","html_url":"https://github.com/CrazyMrYan/easy-verify","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"b2378321f8eed39b2e1b2e871b3a9f6917330495"},"previous_names":["crazymryan/easy-verify"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Feasy-verify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Feasy-verify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Feasy-verify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyMrYan%2Feasy-verify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrazyMrYan","download_url":"https://codeload.github.com/CrazyMrYan/easy-verify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200679,"owners_count":20576673,"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":["code","email","email-sender","mail","mail-code","nodejs","redis","verify-email","verifycode"],"created_at":"2024-10-10T07:08:08.326Z","updated_at":"2026-02-09T05:06:12.901Z","avatar_url":"https://github.com/CrazyMrYan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EasyVerify\n\n![GitHub License](https://img.shields.io/github/license/CrazyMrYan/easy-verify)\n![GitHub Tag](https://img.shields.io/github/v/tag/CrazyMrYan/easy-verify)\n![GitHub last commit](https://img.shields.io/github/last-commit/CrazyMrYan/easy-verify)\n![GitHub package.json version](https://img.shields.io/github/package-json/v/CrazyMrYan/easy-verify)\n![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/CrazyMrYan/easy-verify)\n\nEasyVerify 是一个基于 Node.js 和 Redis 的开源邮件验证码服务，提供发送和校验验证码的功能。\n\n![preview](./assets/code-verify.png)\n## 功能\n\n- 生成并发送验证码到指定邮箱\n- 验证用户输入的验证码是否正确\n- 可配置的验证码有效期\n\n## 配置\n\n在根目录创建一个 .env.local 环境变量，配置以下内容\n\n```env\nEMAIL_SERVICE=\nEMAIL_USERNAME=\nEMAIL_PASSWORD=\nEMAIL_SEND_NAME=\nREDIS_HOST=127.0.0.1\nREDIS_PORT=6379\nPORT=3000\nCODE_EXPIRE_TIME=120\n```\n\n## 使用\n\n```shell\ncd verify-code\nyarn install\n```\n\n## 启动\n\n```shell\nyarn dev\n```\n\n## API 文档\n### 1. 发送验证码\n\n请求\n\n方法：POST\n\n路径：/send-code\n\n参数：\n\n- email (string): 接收验证码的邮箱地址\n- username (string): 用户名称（非必填）\n\n示例\n```bash\ncurl -X POST http://localhost:3000/send-code -d \"email=example@example.com\"\n```\n\n### 2. 校验验证码\n\n请求\n\n方法：POST\n\n路径：/verify-code\n\n参数：\nemail (string): 接收验证码的邮箱地址\ncode (string): 用户输入的验证码\n\n示例\n\n```bash\ncurl -X POST http://localhost:3000/verify-code -d \"email=example@example.com\u0026code=123456\"\n```\n\n## 贡献\n欢迎贡献代码！请提交 Pull Request 或报告问题到 issues。\n\n## 许可证\n本项目使用 MIT 许可证。请参阅 LICENSE 文件了解更多信息。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazymryan%2Feasy-verify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazymryan%2Feasy-verify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazymryan%2Feasy-verify/lists"}