AbsoluteJS

@absolutejs/commerce-resend

@absolutejs/commerce-resendv0.19.19-beta.3betaCommerce & Growth

Resend transactional-email adapter for @absolutejs/commerce

#Installation

BASH
bun add @absolutejs/commerce-resend

#Capabilities

Overview

Resend transactional-email adapter for @absolutejs/commerce. Implements the EmailProvider contract so you can send the branded order / shipping / proof / quote emails built with renderEmail from the commerce host.

Sends are best-effort (errors logged, never thrown). Use the Resend test sender onboarding@resend.dev until your domain is verified.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/commerce-resend through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/commerce-resend version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/commerce-resend example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#@absolutejs/commerce-resend quick start

Partial snippet

# @absolutejs/commerce-resend

TS
import { renderEmail, type EmailTheme } from "@absolutejs/commerce";
import { createResendEmailProvider } from "@absolutejs/commerce-resend";

const email = createResendEmailProvider({
  apiKey: process.env.RESEND_API_KEY!,
  from: "The Embroidery Place <hi@shop.com>",
});

await email.send({
  to: customer.email,
  subject: "Order #ABCD1234 confirmed",
  html: renderEmail(theme, {
    preheader: "",
    heading: "Order confirmed",
    intro: "",
  }),
});

#Public entry points

Supported entry points declared by this package manifest.

Package entry point declared in package.json.

@absolutejs/commerce-resend@absolutejs/commerce-resend/manifest@absolutejs/commerce-resend/manifest.json

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build ./src/index.ts ./src/manifest.ts --root ./src --outdir dist --target bun --external @absolutejs/commerce --external '@absolutejs/commerce/*' --external @absolutejs/manifest --external @sinclair/typebox --external resend --external 'resend/*' && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit
bun run check:packagebun run format && bun run typecheck && bun run test && bun run verify-package && bun run build && bun run verify-package --artifacts
bun run formatprettier --write "./**/*.{js,ts,json,md}"
bun run testbun test
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

2 symbols
ResendConfigtypePermalinkSource
TS
type ResendConfig = {
    apiKey: string;
    /** Verified-domain sender, e.g. "The Embroidery Place <hi@shop.com>". */
    from: string;
    /** Route provider failures into the host's safe error tracker. */
    onError?: (error: unknown) => void;
};
Exported from @absolutejs/commerce-resend