@zebric/notifications
v0.2.3
Published
Notification adapters for Zebric runtimes
Readme
@zebric/notifications
Notification delivery adapters for Zebric. Supports email, Slack, and console output out of the box.
Installation
npm install @zebric/notificationsAdapters
| Adapter | Use Case |
|---------|----------|
| EmailAdapter | Transactional email (SMTP/provider-agnostic) |
| SlackAdapter | Slack webhook notifications |
| ConsoleAdapter | Local development / logging |
Usage
Configure notifications in your blueprint.toml:
[notifications]
adapter = "email"
from = "[email protected]"Or use the NotificationManager directly:
import { NotificationManager } from '@zebric/notifications'
const notifications = new NotificationManager({ adapter: 'console' })
await notifications.send({
to: '[email protected]',
subject: 'Welcome!',
body: 'Thanks for signing up.',
})Documentation
Full docs at docs.zebric.dev
License
MIT
