@sealpost/core
v0.1.0
Published
Zero-dependency email engine: block-based template compiler, pre-flight deliverability gate, MIME, RFC 6376 DKIM signing and verification, suppression handling and signed delivery receipts. Node 20+, edge runtimes and browsers.
Maintainers
Readme
@sealpost/core
Zero-dependency email engine: block compiler, EW-101…108 deliverability gate, RFC 5322/2045 MIME, RFC 6376 DKIM (sign and verify), evw_ ECDSA receipts and a hash-chained delivery ledger. Runs on Web Crypto, so it works in Node 20+, browsers and edge runtimes.
npm i @sealpost/core zodimport { TEMPLATE_PACKS, SAMPLE_DOMAIN, evaluateDispatchPreflight } from "@sealpost/core";
const pre = await evaluateDispatchPreflight(
{ to: "[email protected]", variables: { userName: "Ada", otpCode: "482913", signInUrl: "https://app.example.com/in" } },
{ template: TEMPLATE_PACKS[0], domain: SAMPLE_DOMAIN },
);
pre.gate; // "CLEAR" | "WARN" | "BLOCKED"
pre.score; // 0..100Then composeSignedMessage turns a cleared result into DKIM-signed bytes ready for SMTP. See the spec and embedding guide.
Peer dependency: zod ^3.23.0 || ^4.0.0. MIT.
