MVFM

resend

Implementation of the Resend API. There is no default interpreter because this plugin requires an API key.

Examples are wired to fixture-backed mocks so request/response behavior is reproducible in the playground.

import { resend, wrapResendSdk, createResendInterpreter } from "@mvfm/plugin-resend";
import { Resend } from "resend";

// 1. Create a Resend SDK client
const sdk = new Resend(process.env.RESEND_API_KEY);
const client = wrapResendSdk(sdk);

// 2. Build the interpreter
const resendInterp = createResendInterpreter(client);

// 3. Merge and run
const app = mvfm(prelude, resend);
const baseInterp = defaults(app, { resend: resendInterp });
await fold(baseInterp, prog);