Skip to content
PluginStats

@chat-adapter/discord weekly downloads statistics

By chat-adapter (14 listings) · npm · AI SDKs

Discord adapter for Chat SDK — HTTP interactions, Gateway events, slash commands, and embeds

View on npm Fresh · Oct 18, 2026

@chat-adapter/discord has 147,948 recorded weekly downloads on npm, an increase of 12.6% over the past 30 days, ranking #428 of 2,322 tracked listings.

Weekly downloads
147,948
Official API · Oct 18, 2026
7-day growth
-38.9%
-94.3K weekly downloads
30-day growth
+12.6%
+16.6K weekly downloads
90-day growth
+91.3%
+70.6K weekly downloads
Rank
#428
Among tracked npm listings

About @chat-adapter/discord

Discord adapter for Chat SDK

@chat-adapter/discord

npm package: @chat-adapter/discord

Agent Stack MIT License

Discord adapter for Chat SDK. Configure with HTTP Interactions and Gateway WebSocket support.

Documentation: chat-sdk.dev/adapters/official/discord · Guides: vercel.com/kb/chat-sdk

Installation

pnpm add @chat-adapter/discord

Scaffold with the CLI

To scaffold a new Discord bot with this adapter preselected:

npx create-chat-sdk@latest my-bot --adapter discord memory

Visit the adapters directory to see other available official and vendor-official adapters.

Quick start

For managed credentials and webhook verification, see Vercel Connect.

The adapter auto-detects DISCORD_BOT_TOKEN, DISCORD_PUBLIC_KEY, DISCORD_APPLICATION_ID, and DISCORD_MENTION_ROLE_IDS from environment variables:

import { Chat } from "chat";
import { createDiscordAdapter } from "@chat-adapter/discord";

const discord = createDiscordAdapter();
const bot = new Chat({
  userName: "mybot",
  adapters: {
    discord,
  },
});

bot.onNewMention(async (thread, message) => {
  await thread.post("Hello from Discord!");
});

Configuration

All options are auto-detected from environment variables when not provided.

OptionRequiredDescription
botTokenNo*Discord bot token or async resolver. Auto-detected from DISCORD_BOT_TOKEN
publicKeyNo*Application public key. Auto-detected from DISCORD_PUBLIC_KEY
applicationIdNo*Discord application ID or async resolver. Auto-detected from DISCORD_APPLICATION_ID
webhookVerifierNoCustom webhook verifier that replaces Discord's Ed25519 publicKey verification
contentFormatNoRender Chat SDK cards as DiscordContentFormat.Embeds or DiscordContentFormat.ComponentsV2. Defaults to DiscordContentFormat.Embeds
mentionRoleIdsNoArray of role IDs that trigger mention handlers. Auto-detected from DISCORD_MENTION_ROLE_IDS (comma-separated)
respondToChannelIdsNoParent channel IDs whose non-bot messages, including messages in child threads, trigger mention handlers without an @mention. Top-level messages use the adapter's normal per-message Discord thread. Auto-detected from DISCORD_RESPOND_TO_CHANNEL_IDS (comma-separated). Defaults to []
respondToGlobalMentionsNoTreat @everyone/@here pings as mentions of the bot. Defaults to false
interactionFlagsNoFunction returning Discord interaction flags for the initial deferred slash command response
apiUrlNoOverride the Discord API base URL. Auto-detected from DISCORD_API_URL
loggerNoLogger instance (defaults to ConsoleLogger("info"))

*botToken and applicationId are required via config or env vars. Provide either publicKey or webhookVerifier for inbound webhook verification.

Authentication

Option A — Vercel Connect

Use connectDiscordAdapter to resolve the bot token and application ID from a Vercel Connect Discord connector and verify trigger-forwarded interactions with Vercel OIDC:

import { createDiscordAdapter } from "@chat-adapter/discord";
import { connectDiscordAdapter } from "@vercel/connect/chat";

const discord = createDiscordAdapter({
  ...connectDiscordAdapter("discord/acme-discord"),
});

No DISCORD_BOT_TOKEN, DISCORD_PUBLIC_KEY, or DISCORD_APPLICATION_ID is needed in this mode.

Regular messages and reactions still require a Gateway connection.

Option B — Discord app credentials
1. Create application
  1. Go to the Discord Developer Portal
  2. Click New Application and give it a name
  3. Note the Application ID from the General Information page
  4. Copy the Public Key from the General Information page
2. Create bot
  1. Go to the Bot section in the left sidebar
  2. Click Reset Token to generate a new bot token
  3. Copy and save the token (you won't see it again)
  4. Enable these Privileged Gateway Intents:
    • Message Content Intent
    • Server Members Intent (if needed)
3. Configure interactions endpoint
  1. Go to General Information
  2. Set Interactions Endpoint URL to https://your-domain.com/api/webhooks/discord
  3. Discord sends a PING to verify the endpoint
4. Add bot to server
  1. Go to OAuth2 then URL Generator
  2. Select scopes: bot, applications.commands
  3. Select bot permissions: Send Messages, Send Messages in Threads, Create Public Threads, Manage Threads, Read Message History, Add Reactions, Attach Files
  4. Copy the generated URL and open it to invite the bot to your server

Architecture: HTTP Interactions vs Gateway

Discord has two ways to receive events:

HTTP Interactions (default):

  • Receives button clicks, slash commands, and verification pings
  • Works out of the box with serverless
  • Does not receive regular messages

Gateway WebSocket (required for messages):

  • Receives regular messages and reactions
  • Receives slash commands and button clicks when no Interactions Endpoint URL is configured
  • Requires a persistent connection
  • In serverless environments, use a cron job to maintain the connection…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • discord
  • discord-bot
  • bot
  • adapter
  • slash-commands
  • interactions
  • messaging
  • ai-agent
  • ai-sdk
  • vercel

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@chat-adapter/discord weekly downloads on npm, last 90 days: 147,948 weekly downloads as of Oct 18, 2026, +91.3% over 90 days.@chat-adapter/discordWeekly downloads on npm · Last 90 days147,948downloads / week+91.3% over 90 days050K100K150K200K250K300KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@chat-adapter/discord weekly downloads on npm, last 90 days: 147,948 weekly downloads as of Oct 18, 2026, +91.3% over 90 days.

7/30/90-day growth

@chat-adapter/discord weekly downloads growth on npm: -38.9% over 7 days, +12.6% over 30 days, +91.3% over 90 days.@chat-adapter/discordWeekly downloads growth on npm147,948downloads / week now7-day growth-94,260 weekly downloads-38.9%30-day growth+16,576 weekly downloads+12.6%90-day growth+70,629 weekly downloads+91.3%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@chat-adapter/discord weekly downloads growth on npm: -38.9% over 7 days, +12.6% over 30 days, +91.3% over 90 days.

Ranking history

@chat-adapter/discord npm ranking history: currently #428 (by weekly downloads).@chat-adapter/discordnpm ranking · by weekly downloads · Last 90 days#428current rank#100#150#200#250#300#350#400#450Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@chat-adapter/discord npm ranking history: currently #428 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 22, #8 (overall #428)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 1, #18 (overall #18)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (544)
Recent weekly downloads observations for @chat-adapter/discord
Date (UTC)Weekly downloadsChange vs. previous
147,948+36.6K
111,392-32.3K
143,653-5.3K
148,987-48.2K
197,216-42K
239,2270
239,227-3K
242,208-4.6K
246,830-4.7K
251,558+4.5K
247,028-465
247,493+570
246,923-51.9K
298,852—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@chat-adapter/discord. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.