What problem does it solve?
It streamlines sending transactional emails from the loyalty-app monorepo while keeping provider configuration, template rendering, and delivery debugging consistent across environments.
Core Features & Use Cases
- Provider-agnostic sending: Use
@loyalty/email to send via resend, log, folder, or outbox depending on environment and needs.
- Typed email classes and fluent builder: Send one-off emails or reusable
BaseEmail subclasses for welcome messages, password resets, OTPs, and points notifications.
- React Email templates with branded layout: Author and preview templates in
@loyalty/email-templates using React Email and a shared EmailLayout.
- Dev and test workflows: Capture emails with
FakeSender, view an outbox UI at /email-outbox, and support Playwright/e2e via the email outbox endpoint.
Quick Start
Send a transactional welcome email by telling the AI: "Use the email Skill to send a WelcomeEmail to [email protected] with a name and a CTA URL."