{"_id":"@all2cf/shopify-send","name":"@all2cf/shopify-send","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@all2cf/shopify-send","version":"0.1.0","description":"CFsend adapter for transactional email and consented customer events in Shopify apps","type":"module","main":"index.js","license":"MIT","homepage":"https://send.all2cf.com/docs/integrations/","repository":{"type":"git","url":"git+https://github.com/alex887885/a2c.git","directory":"send/integrations/shopify"},"engines":{"node":">=20"},"publishConfig":{"access":"public","provenance":true},"_id":"@all2cf/shopify-send@0.1.0","bugs":{"url":"https://github.com/alex887885/a2c/issues"},"_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-5CDY0RFmIbfwoNxtxKSiSxeN0csL2/UYqYoQ50PeR0Pq4tQ/ERu0cyQPnVPCVH0w6LNeOwdKlntdqlbHuN5rDw==","shasum":"2de0c4eb0cb99b00936d46caf80ca382a6a4165c","tarball":"https://registry.npmjs.org/@all2cf/shopify-send/-/shopify-send-0.1.0.tgz","fileCount":4,"unpackedSize":5017,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID9vTVhLT9wjrZiy8O3dtLVsDwKfKt2HmpUAQQ4RwfEoAiEAqW6TrdxpqmjsUN3nM3IElapcWLmzQdBvXCQVg4NRFuY="}]},"_npmUser":{"name":"alex887885","email":"alex887885@gmail.com"},"directories":{},"maintainers":[{"name":"alex887885","email":"alex887885@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shopify-send_0.1.0_1786832818941_0.3443814842724353"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-15T22:26:58.740Z","0.1.0":"2026-08-15T22:26:59.108Z","modified":"2026-08-15T22:26:59.428Z"},"maintainers":[{"name":"alex887885","email":"alex887885@gmail.com"}],"description":"CFsend adapter for transactional email and consented customer events in Shopify apps","homepage":"https://send.all2cf.com/docs/integrations/","repository":{"type":"git","url":"git+https://github.com/alex887885/a2c.git","directory":"send/integrations/shopify"},"bugs":{"url":"https://github.com/alex887885/a2c/issues"},"license":"MIT","readme":"# All2CF Send for Shopify apps\n\nThis adapter sends transactional email created by a custom or public Shopify\napp, including webhook and Shopify Flow action handlers. Use the webhook/event\nID as the idempotency key.\n\nIt does **not** claim to replace Shopify-owned order, shipping or account\nnotifications. Shopify does not expose a global third-party mail transport for\nthose platform messages.\n\n```bash\nnpm install @all2cf/shopify-send\n```\n\n```js\nimport { createShopifyMailer } from \"@all2cf/shopify-send\";\n\nconst mail = createShopifyMailer({\n  runtimeUrl: process.env.ALL2CF_SEND_URL,\n  apiKey: process.env.ALL2CF_SEND_KEY,\n  defaultFrom: \"shop@example.com\",\n});\n\nawait mail.send({\n  eventId: webhookId,\n  shop: shopDomain,\n  to: customer.email,\n  template: { id: \"back-in-stock\", variables: { product: title } },\n});\n\n// Optional audience/event sync. CFsend owns consent, segments, campaigns and\n// unsubscribe state; the app only forwards normalized Shopify data.\nawait mail.sync({\n  audienceName: \"Shopify customers\",\n  contacts: [{ email: customer.email, firstName: customer.first_name, properties: { shopifyId: customer.id } }],\n  events: [{ id: `order:${order.id}`, type: \"order.created\", email: customer.email, properties: { orderId: order.id, total: order.total_price } }],\n});\n```\n","readmeFilename":"README.md","_rev":"1-daf965bb863f5b04aac661f20c36c855"}