@yaghmori/email-service
v0.1.5
Published
Client SDK for email-service — ports, TCP patterns, Kafka topics, Zod DTOs (no hardcoded event names)
Readme
@yaghmori/email-service
Configurable client for email-service (HTTP · TCP · Kafka).
HTTP auth is API key only (x-api-key). Admin JWT is for the admin UI, not this SDK.
Keys are bound to an organization (orgId UUID). Optional body fields orgId / orgSlug (or headers x-org-id / x-org-slug) must match the key’s org when set.
Docs
- docs/PROTOCOL_GUIDE.md — full HTTP / TCP / Kafka for Node and .NET
- docs/USAGE.md — practical usage
- docs/BEST_PRACTICES.md — ops tips
- docs/NUGET_TRUSTED_PUBLISHING.md — publish
Yaghmori.EmailServicewithout API keys
SDKs: packages/client (npm) · sdk/dotnet (NuGet)
30-second HTTP
import { createEmailHttpClient } from '@yaghmori/email-service';
const email = createEmailHttpClient({
baseUrl: process.env.EMAIL_SERVICE_URL,
auth: { apiKey: process.env.EMAIL_SERVICE_API_KEY! },
});
await email.send({ to: '[email protected]', template: 'welcome', data: { name: 'Ada' } });Service: set AUTH_API_KEYS=… or create keys in the admin UI. Health stays public.
