{"id":20548138,"url":"https://github.com/lusingander/asemo","last_synced_at":"2026-05-17T17:02:55.971Z","repository":{"id":169395169,"uuid":"644904749","full_name":"lusingander/asemo","owner":"lusingander","description":"AWS, Amazon SES API(v2) mock library and simple standalone command ✉️","archived":false,"fork":false,"pushed_at":"2023-12-17T23:30:36.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T13:02:39.484Z","etag":null,"topics":["amazon-ses","aws","aws-ses","email","go"],"latest_commit_sha":null,"homepage":"","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/lusingander.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":"2023-05-24T13:50:38.000Z","updated_at":"2024-03-25T13:27:55.000Z","dependencies_parsed_at":"2024-11-16T02:12:25.432Z","dependency_job_id":"bd064385-2844-49bf-bb8e-2f5a15d2d2de","html_url":"https://github.com/lusingander/asemo","commit_stats":null,"previous_names":["lusingander/asemo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lusingander/asemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fasemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fasemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fasemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fasemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lusingander","download_url":"https://codeload.github.com/lusingander/asemo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lusingander%2Fasemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272439635,"owners_count":24935422,"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-08-28T02:00:10.768Z","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":["amazon-ses","aws","aws-ses","email","go"],"created_at":"2024-11-16T02:12:20.378Z","updated_at":"2026-05-17T17:02:55.966Z","avatar_url":"https://github.com/lusingander.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/lusingander/asemo.svg)](https://pkg.go.dev/github.com/lusingander/asemo)\n\n# asemo\n\nAws SEs MOck\n\n## About\n\nasemo provides [Amazon SES API(v2)](https://docs.aws.amazon.com/ses/latest/APIReference-V2/Welcome.html) mock library and simple standalone command\n\n## Usage\n\nrequire Go 1.24+\n\n### As standalone command\n\n#### Installation\n\n`$ go install github.com/lusingander/asemo/cmd/asemo@latest`\n\n#### Run\n\n`$ asemo -port 8080`\n\nThen the mock server will start at http://localhost:8080.\n\n#### API\n\nSent messages can be referenced through the API.\n\n```\n$ curl -s http://localhost:8080/api/messages | jq .\n{\n  \"messages\": [\n    {\n      \"message_id\": \"2653e13d-9144-4627-9806-494c90ecc3b4\",\n      \"from\": \"from@example.com\",\n      \"subject\": \"foo\",\n      \"received_at\": \"2023-12-18T08:24:43+09:00\"\n    },\n    {\n      \"message_id\": \"092f09ba-bb61-4548-beb0-b9fe9a60c344\",\n      \"from\": \"from@example.com\",\n      \"subject\": \"bar\",\n      \"received_at\": \"2023-12-18T08:24:44+09:00\"\n    }\n  ]\n}\n\n$ curl -s http://localhost:8080/api/messages/6d2aed72-62d8-4839-8ee1-19c06751077d | jq .\n{\n  \"message_id\": \"6d2aed72-62d8-4839-8ee1-19c06751077d\",\n  \"from\": \"from@example.com\",\n  \"reply_to\": null,\n  \"to\": [\n    \"to@example.com\"\n  ],\n  \"cc\": null,\n  \"bcc\": null,\n  \"subject\": \"hi\",\n  \"body\": \"hello foo\",\n  \"received_at\": \"2023-05-24T22:41:42+09:00\"\n}\n```\n\n### As library\n\n```go\nserver := asemo.NewServer()\n\nserver.SetSendEmailHandler(\n\tfunc(req *asemo.SendEmailRequest) (*asemo.SendEmailResponse, *asemo.SendEmailError) {\n\t\tfmt.Printf(\"receive: [subject = '%v']\\n\", req.Content.Simple.Subject.Data)\n\t\treturn \u0026asemo.SendEmailResponse{\n\t\t\tMessageId: \"1\",\n\t\t}, nil\n\t},\n)\n\nserver.Start() // mock server starts on localhost:8080\n```\n\nSee [./examples](./examples) for more details.\n\n### Supported actions\n\n- [SendEmail](https://docs.aws.amazon.com/ses/latest/APIReference-V2/API_SendEmail.html)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flusingander%2Fasemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flusingander%2Fasemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flusingander%2Fasemo/lists"}