Slack + Better-Notify
Post typed notifications to Slack channels using the Bot API. Supports Block Kit, file uploads, and threading — all type-safe from your catalog.
Install
npm install @betternotify/slackQuick start
import { createClient } from '@betternotify/core';
import { slackTransport } from '@betternotify/slack';
const mail = createClient({
catalog,
transportsByChannel: {
slack: slackTransport({ token: process.env.SLACK_BOT_TOKEN }),
},
});
await mail.deployNotice.send({
to: '#engineering',
input: { service: 'api', version: '2.1.0' },
});Features
- Slack Bot API integration
- Block Kit message formatting
- File uploads
- Thread replies via threadTs
- Permalink retrieval