@lacspace/email-templates
Compose bulletproof, responsive, dark-mode-aware HTML emails from simple blocks — buttons, OTP codes, invoices — with ready-made OTP/welcome/alert/invoice templates. Zero-dependency, isomorphic.
npm i @lacspace/email-templatesUsage
import { otpEmail, welcomeEmail, alertEmail, invoiceEmail } from "@lacspace/email-templates";
const html = otpEmail({
code: "482913",
brandName: "Lacspace",
expiresMinutes: 10,
});
welcomeEmail({ name: "Aayush", ctaLabel: "Open dashboard", ctaHref: "https://one.lacspace.com" });
alertEmail({ title: "Server is back up", message: "api.lacspace.com recovered at 14:32." });
invoiceEmail({
heading: "Payment receipt",
rows: [["Plan", "Pro"], ["Period", "Aug 2026"]],
total: ["Total", "₹1,499.00"],
ctaHref: "https://one.lacspace.com/invoices/123",
});Exports 17
alertEmailbuttoncodedefaultThemedividerescapeHtmlheadinghtmlimageinvoiceEmailkeyValuelistotpEmailrenderspacertextwelcomeEmailKeywords
email-templatehtml-emailresponsive-emailtransactional-emailemail-builderotp-email
More in Mail Kit
@lacspace/email-validate
Smart email validation — syntax, disposable/temp-mail detection, role & free-provider flags, Gmail normalization and 'did you mean?' typo suggestions. Zero-dependency, isomorphic.
@lacspace/email-verifyBest-effort email deliverability checks for Node — syntax + disposable, MX record lookup and an optional SMTP RCPT probe (no mail sent). Zero npm dependencies.
@lacspace/mailerA tiny zero-dependency SMTP client for Node backends — send email over raw net/tls with STARTTLS, AUTH, attachments and provider presets (Hostinger, Gmail, Outlook, Zoho…). One-line setup.