{"id":15645331,"url":"https://github.com/webbertakken/email-worker","last_synced_at":"2025-04-10T01:09:56.810Z","repository":{"id":118617064,"uuid":"605248704","full_name":"webbertakken/email-worker","owner":"webbertakken","description":"Lightweight tool to process emails directly from Cloudflare","archived":false,"fork":false,"pushed_at":"2025-04-09T17:00:08.000Z","size":392,"stargazers_count":62,"open_issues_count":3,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T01:09:50.587Z","etag":null,"topics":["cloudflare-workers","discord","email","email-forwarding","email-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/webbertakken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"webbertakken","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-02-22T19:04:37.000Z","updated_at":"2025-04-07T03:02:15.000Z","dependencies_parsed_at":"2023-10-03T01:04:51.880Z","dependency_job_id":"ff118b3f-5821-4d33-914f-b40ab927d6a5","html_url":"https://github.com/webbertakken/email-worker","commit_stats":{"total_commits":92,"total_committers":2,"mean_commits":46.0,"dds":0.25,"last_synced_commit":"7f6c2ac07c807551841359db55e402eb2be020e8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Femail-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Femail-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Femail-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webbertakken%2Femail-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webbertakken","download_url":"https://codeload.github.com/webbertakken/email-worker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137886,"owners_count":21053775,"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":["cloudflare-workers","discord","email","email-forwarding","email-worker"],"created_at":"2024-10-03T12:06:28.236Z","updated_at":"2025-04-10T01:09:56.790Z","avatar_url":"https://github.com/webbertakken.png","language":"TypeScript","funding_links":["https://github.com/sponsors/webbertakken"],"categories":[],"sub_categories":[],"readme":"# Email worker \u0026middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/webbertakken/email-worker/blob/main/LICENSE) [![codecov](https://codecov.io/gh/webbertakken/email-worker/branch/main/graph/badge.svg?token=vWf0M5qX20)](https://codecov.io/gh/webbertakken/email-worker) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/webbertakken/email-worker/blob/main/CONTRIBUTING.md)\n\nSend emails to Cloudflare and forward them to different channels using an email worker.\n\n## Setup\n\n#### Prerequisites\n\n- Cloudflare [account](https://dash.cloudflare.com/sign-up) (free)\n- [Volta](https://volta.sh/) installed (for managing correct Node and Yarn versions)\n- Wrangler installed [globally](https://developers.cloudflare.com/workers/wrangler/install-and-update/#install-wrangler-globally)\n\n#### Install dependencies\n\n```bash\nyarn install\n```\n\n#### Deploy the worker\n\n```bash\nyarn deploy\n```\n\n#### Set up a webhook\n\n- Right-click on a Discord channel then click `Edit Channel`, then `Integrations`.\n- Create a webhook, then copy the URL.\n- Add this url to your secrets:\n\n```bash\nwrangler secret put DISCORD_WEBHOOK_URL\n```\n\nYou should see something like this\n\n```console\n🌀 Creating the secret for the Worker \"email-worker\"\n✨ Success! Uploaded secret DISCORD_WEBHOOK_URL\n```\n\n#### Set up a route\n\n- Go to your [zone's Email Workers settings](https://dash.cloudflare.com/?to=/:account).\n- Click the zone (e.g. `example.com`), then `Email`, `Email Routing`.\n- On the `Email Workers` tab, register an email route.\n\n[![Register an email route](./assets/email-routing.png)](./assets/email-routing.png)\n\n#### Verify\n\n- Send an email to the email address you registered.\n- Check the channel you registered the webhook to.\n\n## Tips\n\n- Change the `name` field in `wrangler.toml` to deploy a separate worker with a separate secret (e.g. with a separate webhook for a test channel). \n\n\n## License\n\nThis package is [MIT](./LICENSE) licensed.\n\n#### Sub licenses\n\n- [`mat-sz/letterparser`](https://github.com/mat-sz/letterparser): [BSD-3 Clause Clear](https://github.com/mat-sz/letterparser/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebbertakken%2Femail-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebbertakken%2Femail-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebbertakken%2Femail-worker/lists"}