{"id":15509643,"url":"https://github.com/willin/resend-cloudflare-service-worker","last_synced_at":"2026-05-05T05:37:56.646Z","repository":{"id":254123333,"uuid":"845558353","full_name":"willin/resend-cloudflare-service-worker","owner":"willin","description":"A Resend Email Service Worker For Cloudflare Workers/Pages Service Binding","archived":false,"fork":false,"pushed_at":"2024-08-21T14:10:48.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-26T15:16:55.457Z","etag":null,"topics":["binding","cloudflare","resend","service-worker","worker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/willin.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},"funding":{"github":"willin","custom":"https://afdian.net/@willin"}},"created_at":"2024-08-21T13:33:55.000Z","updated_at":"2024-08-21T14:10:18.000Z","dependencies_parsed_at":"2024-08-21T15:32:11.631Z","dependency_job_id":null,"html_url":"https://github.com/willin/resend-cloudflare-service-worker","commit_stats":null,"previous_names":["willin/resend-cloudflare-service-worker"],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fresend-cloudflare-service-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fresend-cloudflare-service-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fresend-cloudflare-service-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fresend-cloudflare-service-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/resend-cloudflare-service-worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246085645,"owners_count":20721213,"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":["binding","cloudflare","resend","service-worker","worker"],"created_at":"2024-10-02T09:43:24.884Z","updated_at":"2026-05-05T05:37:51.622Z","avatar_url":"https://github.com/willin.png","language":"TypeScript","funding_links":["https://github.com/sponsors/willin","https://afdian.net/@willin"],"categories":[],"sub_categories":[],"readme":"# Resend Cloudflare Worker Service\n\n[中文版](./README.zh-cn.md) / [English](./README.md)\n\n## Prepare\n\n1. `Use this template` to fork this repository to create your project\n2. Set `Actions Secrets` in the project `Settings`, add the following environment variables:\n\n```bash\n### Only For Github Actions\nCLOUDFLARE_ACCOUNT_ID=\"xxx\"\nCLOUDFLARE_API_TOKEN=\"xxx\"\n\n### Resend mail sending service, you can register for free sending\nRESEND_API_KEY=\"re_xxxx\"\n### The username of the email sent\nEMAIL_USERNAME=\"No-Reply \u003cno-reply@system.example.com\u003e\"\n### Address to receive test emails\nTEST_EMAIL_ADDRESS=\"your@email.com\"\n```\n\n## Use in Worker / Pages\n\nModify the `wrangler.toml` configuration in the project, add:\n\n```toml\n[[services]]\nbinding = \"RESEND\"\nservice = \"email-sender-worker\"\n```\n\nThen use in the code:\n\n```ts\nawait ctx.env.RESEND.sendEmail({\n  to: ['address@example.com'], // or just a string\n  subject: 'Hello, World!',\n  html: '\u003ch1\u003eHello, World!\u003c/h1\u003e'\n}); // returns b\n```\n\nWhere the parameter of `sendEmail` is of type `SendEmailOptions`:\n\n```ts\ntype SendEmailProps = {\n  to: string | string[];\n  subject: string;\n  html: string;\n};\n```\n\n## Local Development\n\n```bash\n# npm, yarn, or pnpm\nbun install\nbun run dev\n```\n\nThen visit \u003chttp://localhost:8787\u003e, a test email will be sent to `TEST_EMAIL_ADDRESS` mailbox.\n\n## Sponsor\n\nDonation ways:\n\n- Github: \u003chttps://github.com/sponsors/willin\u003e [![github](https://img.shields.io/github/followers/willin.svg?style=social\u0026label=Followers)](https://github.com/willin)\n- Alipay or Wechat Pay: [QRCode](https://user-images.githubusercontent.com/1890238/89126156-0f3eeb80-d516-11ea-9046-5a3a5d59b86b.png)\n- ETH: `0x6D877f96198E55085CEb56097B099cc7bb814263`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fresend-cloudflare-service-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fresend-cloudflare-service-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fresend-cloudflare-service-worker/lists"}