New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@opentag/slack

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentag/slack

Slack app mention normalization and callback helpers for OpenTag.

latest
npmnpm
Version
0.10.0
Version published
Weekly downloads
11
-64.52%
Maintainers
2
Weekly downloads
 
Created
Source

@opentag/slack

Slack adapter helpers for OpenTag.

Use this package to normalize Slack app_mention events into OpenTagEvent objects, encode or parse Slack source-thread keys, and adapt unified delivery presentations for Slack.

Install

pnpm add @opentag/slack

Exports

  • normalizeSlackAppMention: converts a Slack app mention into an OpenTagEvent.
  • slackThreadKey: encodes team, channel, and thread timestamp for source-thread delivery.
  • parseSlackThreadKey: decodes a Slack thread key for chat.postMessage.
  • SlackChannelBinding: Slack compatibility binding contract that maps into the generic channel binding layer.

Example

import { normalizeSlackAppMention } from "@opentag/slack";

const event = normalizeSlackAppMention({
  teamId: "T123",
  channelId: "C123",
  userId: "U456",
  text: "<@U_APP> investigate this deploy failure",
  ts: "1710000000.000100",
  eventId: "Ev123",
  eventTime: 1710000000,
  botUserId: "U_APP",
  binding: {
    teamId: "T123",
    channelId: "C123",
    repoProvider: "github",
    owner: "acme",
    repo: "demo"
  }
});

if (event) {
  // Send event to @opentag/client or your own OpenTag-compatible control plane.
}

Stability

Thread key format is part of the source-thread identity used by ingress and the delivery adapter. A breaking format change must update both sides atomically.

Keywords

opentag

FAQs

Package last updated on 17 Aug 2026

Related posts