{"_id":"emdash-resend","name":"emdash-resend","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"emdash-resend","version":"1.0.0","description":"Resend email provider plugin for EmDash CMS","type":"module","exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"build":"tsdown","dev":"tsdown --watch","test":"vitest run","typecheck":"tsc --noEmit","check":"publint && attw --pack --ignore-rules=cjs-resolves-to-esm --ignore-rules=no-resolution","prepublishOnly":"pnpm run build && pnpm run typecheck && pnpm run test && pnpm run check"},"repository":{"type":"git","url":"git+https://github.com/bison-digital/emdash-resend.git"},"homepage":"https://github.com/bison-digital/emdash-resend#readme","bugs":{"url":"https://github.com/bison-digital/emdash-resend/issues"},"license":"MIT","author":{"name":"Zach Bimson"},"keywords":["emdash","emdash-plugin","resend","email","transactional-email"],"peerDependencies":{"emdash":">=0.23.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.18.2","emdash":"^0.29.0","publint":"0.3.17","tsdown":"0.20.3","typescript":"^5.9.2","vitest":"^4.1.5"},"_id":"emdash-resend@1.0.0","gitHead":"be71703a51dfb92b1469b219e8bce2be6d033fea","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-heR40eu75SBag6sKBngNVw1tVa5VifEqwS6Aj2/IgesUb+RN1kzvxsx/lTsAy3md1yYJg3TAhjF82tomECB3YA==","shasum":"6f3d9da200eed8cc11e3ca6770b80d816ae46078","tarball":"https://registry.npmjs.org/emdash-resend/-/emdash-resend-1.0.0.tgz","fileCount":6,"unpackedSize":16426,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD4XB7BLLVpkbEhY6RQ/X01nrwTwEKorGruh5jJhk6g8gIhAJrUzRMJ1ML1szXyHy4H6NukVD6mH/u2oEZJAH6+CMsA"}]},"_npmUser":{"name":"zach.bison","email":"zach@bison.digital"},"directories":{},"maintainers":[{"name":"zach.bison","email":"zach@bison.digital"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/emdash-resend_1.0.0_1783803594421_0.28475432218934094"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T20:59:54.292Z","1.0.0":"2026-07-11T20:59:54.561Z","modified":"2026-07-11T20:59:54.717Z"},"maintainers":[{"name":"zach.bison","email":"zach@bison.digital"}],"description":"Resend email provider plugin for EmDash CMS","homepage":"https://github.com/bison-digital/emdash-resend#readme","keywords":["emdash","emdash-plugin","resend","email","transactional-email"],"repository":{"type":"git","url":"git+https://github.com/bison-digital/emdash-resend.git"},"author":{"name":"Zach Bimson"},"bugs":{"url":"https://github.com/bison-digital/emdash-resend/issues"},"license":"MIT","readme":"# emdash-resend\n\nResend email provider plugin for [EmDash CMS](https://github.com/emdash-cms/emdash).\n\nEmDash ships no production email transport — only a dev-console stub — so magic-link login, invites,\npassword recovery and comment notifications all fail with *\"Email is not configured\"* until you add a\nprovider. This plugin delivers them through [Resend](https://resend.com).\n\nIf you deploy on Cloudflare Workers, consider the first-party\n[`cloudflareEmail()`](https://docs.emdashcms.com/deployment/cloudflare/) provider instead — it uses the\nnative `send_email` binding and needs no API key at all. Use this plugin when you want Resend\nspecifically, or when you are not on Workers.\n\n## Install\n\n```bash\nnpm install emdash-resend\n```\n\nRequires EmDash `>=0.23.0`.\n\n## Setup\n\n### 1. Verify your sending domain in Resend\n\nAdd and verify the domain you will send from at [resend.com/domains](https://resend.com/domains). Resend\nrejects mail from an unverified sender. Then create an API key at\n[resend.com/api-keys](https://resend.com/api-keys).\n\n### 2. Register the plugin\n\n```js\n// astro.config.mjs\nimport emdash from \"emdash/astro\";\nimport { resendEmail } from \"emdash-resend\";\n\nexport default defineConfig({\n  integrations: [\n    emdash({\n      plugins: [\n        resendEmail({\n          apiKey: process.env.RESEND_API_KEY,\n          from: { email: \"cms@mail.example.com\", name: \"My Site CMS\" },\n          replyTo: \"hello@example.com\", // optional\n        }),\n      ],\n    }),\n  ],\n});\n```\n\nProvide `RESEND_API_KEY` the way your platform does secrets — `wrangler secret put RESEND_API_KEY` on\nCloudflare, or your host's environment settings elsewhere. **The key is read from the environment and is\nnever written to the database.**\n\nMisconfiguration fails fast: a missing or malformed `apiKey` or `from` throws at config time rather than\non the first send.\n\n### 3. Activate and select it\n\n1. **Admin → Extensions** — activate **emdash-resend**.\n2. **Settings → Email** — select it as the email provider, then use the test-send to confirm delivery.\n\nIn development EmDash also registers its console provider, so two providers are available and neither is\nauto-selected. You must pick one in Settings → Email.\n\n## Configuration\n\n| Option | Type | Required | Description |\n| --- | --- | --- | --- |\n| `apiKey` | `string` | Yes | Resend API key. Source from the environment. |\n| `from` | `string \\| { email, name? }` | Yes | Sender address. Must be on a domain verified in Resend. |\n| `replyTo` | `string` | No | Reply-To address, for when `from` is a no-reply address. |\n\n`replyTo` is configured per-site rather than per-message because EmDash's `EmailMessage` carries only\n`to`, `subject`, `text` and `html` — there is no per-message reply-to to forward.\n\n## License\n\nMIT © Zach Bimson\n","readmeFilename":"README.md","_rev":"1-2463806995284374958245b442f77b47"}