Slack

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/slack

Quick 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

Read the docsGet started

Related integrations