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

@opentag/discord

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentag/discord

Discord interactions normalization and callback rendering for OpenTag.

latest
npmnpm
Version
0.10.0
Version published
Maintainers
2
Created
Source

@opentag/discord

Discord interactions normalization and presentation rendering for OpenTag.

Turns a Discord /opentag slash-command interaction into an OpenTagEvent, verifies the Ed25519 request signature, and renders acknowledgement / progress / final presentations. The interactions app is a Hono application meant to be mounted into the OpenTag dispatcher process (see @opentag/local-runtime), mirroring the GitLab webhook ingress.

Exports

  • verifyDiscordSignature — Ed25519 verification over timestamp + rawBody (uses node:crypto, no third-party dependency).
  • normalizeDiscordInteractionAPPLICATION_COMMANDOpenTagEvent.
  • encodeDiscordThreadKey / parseDiscordThreadKeyguildId|channelId|anchorId.
  • renderDiscord* / createDiscordSendMessagePayload — presentation rendering.
  • createDiscordInteractionsApp — Hono app handling PING / signature / command.

Slash-command MVP (Interactions Webhook route). The @mention (Gateway) route is not implemented in this slice.

Keywords

opentag

FAQs

Package last updated on 17 Aug 2026

Related posts