Skip to content
PluginStats

@chat-adapter/whatsapp weekly downloads statistics

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

WhatsApp adapter for Chat SDK — Business Cloud API webhooks, interactive messages, and templates

View on npm Fresh · Oct 18, 2026

@chat-adapter/whatsapp has 140,960 recorded weekly downloads on npm, an increase of 3.3% over the past 30 days, ranking #430 of 2,322 tracked listings.

Weekly downloads
140,960
Official API · Oct 18, 2026
7-day growth
-43.1%
-106.9K weekly downloads
30-day growth
+3.3%
+4.5K weekly downloads
90-day growth
+152%
+85K weekly downloads
Rank
#430
Among tracked npm listings

About @chat-adapter/whatsapp

WhatsApp Business Cloud adapter for Chat SDK

@chat-adapter/whatsapp

npm package: @chat-adapter/whatsapp

Agent Stack MIT License

WhatsApp Business Cloud adapter for Chat SDK, using the WhatsApp Business Cloud API.

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

Installation

pnpm add @chat-adapter/whatsapp

Scaffold with the CLI

To scaffold a new WhatsApp bot with this adapter preselected:

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

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

Usage

import { Chat } from "chat";
import { createWhatsAppAdapter } from "@chat-adapter/whatsapp";

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

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

When using createWhatsAppAdapter() without arguments, credentials are auto-detected from environment variables.

WhatsApp Business setup

1. Create a Meta app
  1. Go to developers.facebook.com/apps
  2. Click Create App, select Business type
  3. Add the WhatsApp product to your app
  4. Go to WhatsApp > API Setup and note your Phone Number ID and Access Token
2. Configure webhooks
  1. Go to WhatsApp > Configuration in your Meta app
  2. Set Callback URL to https://your-domain.com/api/webhooks/whatsapp
  3. Set Verify Token to a secret string of your choice (this becomes WHATSAPP_VERIFY_TOKEN)
  4. Subscribe to the messages webhook field
3. Get credentials

From your Meta app dashboard, copy:

  • App Secret (under App Settings > Basic) as WHATSAPP_APP_SECRET
  • Access Token (under WhatsApp > API Setup) as WHATSAPP_ACCESS_TOKEN
  • Phone Number ID (under WhatsApp > API Setup) as WHATSAPP_PHONE_NUMBER_ID

For production, generate a permanent System User Token instead of the temporary access token.

Inbound attachments

Incoming media attachments expose a lazy fetchData(). Media is downloaded only from Meta's fbcdn.net and fbsbx.com hosts or the configured Graph origin. Downloads refuse private and internal addresses, are limited to 25 MB, and time out after 30 seconds, and the access token never follows a redirect off those hosts. Pass a custom transport to downloadMedia() to route downloads through a proxy.

Configuration

All options are auto-detected from environment variables when not provided. You can call createWhatsAppAdapter() with no arguments if the env vars are set.

OptionRequiredDescription
accessTokenNo*Meta access token. Auto-detected from WHATSAPP_ACCESS_TOKEN
appSecretNo*App secret for webhook verification. Auto-detected from WHATSAPP_APP_SECRET
phoneNumberIdNo*Bot's phone number ID. Auto-detected from WHATSAPP_PHONE_NUMBER_ID
verifyTokenNo*Webhook verification secret. Auto-detected from WHATSAPP_VERIFY_TOKEN
apiVersionNoGraph API version (defaults to v25.0)
userNameNoBot username for self-message detection. Auto-detected from WHATSAPP_BOT_USERNAME (defaults to whatsapp-bot)
apiUrlNoOverride the Meta Graph API base URL. Auto-detected from WHATSAPP_API_URL
loggerNoLogger instance (defaults to ConsoleLogger("info"))

*Required at runtime — either via config or environment variable.

Environment variables

WHATSAPP_ACCESS_TOKEN=...          # Meta access token (permanent or system user token)
WHATSAPP_APP_SECRET=...            # App secret for X-Hub-Signature-256 verification
WHATSAPP_PHONE_NUMBER_ID=...       # Bot's phone number ID from Meta dashboard
WHATSAPP_VERIFY_TOKEN=...          # User-defined secret for webhook verification
WHATSAPP_BOT_USERNAME=...          # Optional, defaults to "whatsapp-bot"
WHATSAPP_API_URL=...               # Optional, override the Meta Graph API base URL

Webhook setup

WhatsApp uses two webhook mechanisms:

  1. Verification handshake (GET) — Meta sends a hub.verify_token challenge that must match your WHATSAPP_VERIFY_TOKEN.
  2. Event delivery (POST) — incoming messages, reactions, and interactive responses, verified via X-Hub-Signature-256.
// Next.js App Router example
import { bot } from "@/lib/bot";

export async function GET(request: Request) {
  return bot.webhooks.whatsapp(request);
}

export async function POST(request: Request) {
  return bot.webhooks.whatsapp(request);
}

Features

Messaging
FeatureSupported
Post messageYes
Edit messageNo (WhatsApp limitation)
Delete messageNo (WhatsApp limitation)
StreamingBuffered (accumulates then sends)
Mark as readYes
Auto-chunkingYes (splits at 4096 chars)
Template messagesYes (via sendTemplate)
Rich content…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • whatsapp
  • whatsapp-business
  • bot
  • adapter
  • messaging
  • meta
  • cloud-api
  • 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/whatsapp weekly downloads on npm, last 90 days: 140,960 weekly downloads as of Oct 18, 2026, +152% over 90 days.@chat-adapter/whatsappWeekly downloads on npm · Last 90 days140,960downloads / week+152% 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/whatsapp weekly downloads on npm, last 90 days: 140,960 weekly downloads as of Oct 18, 2026, +152% over 90 days.

7/30/90-day growth

@chat-adapter/whatsapp weekly downloads growth on npm: -43.1% over 7 days, +3.3% over 30 days, +152% over 90 days.@chat-adapter/whatsappWeekly downloads growth on npm140,960downloads / week now7-day growth-106,937 weekly downloads-43.1%30-day growth+4,466 weekly downloads+3.3%90-day growth+84,964 weekly downloads+152%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@chat-adapter/whatsapp weekly downloads growth on npm: -43.1% over 7 days, +3.3% over 30 days, +152% over 90 days.

Ranking history

@chat-adapter/whatsapp npm ranking history: currently #430 (by weekly downloads).@chat-adapter/whatsappnpm ranking · by weekly downloads · Last 90 days#430current 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/whatsapp npm ranking history: currently #430 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs259 listings · 13 pages · page 1, #19 (overall #19)
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/whatsapp
Date (UTC)Weekly downloadsChange vs. previous
140,960+26.4K
114,546-42.9K
157,445-5.9K
163,297-54.5K
217,756-38.9K
256,6210
256,621+8.7K
247,897+16.2K
231,695+24.3K
207,425+13.9K
193,536+25.7K
167,830-434
168,264-37.7K
205,942—

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/whatsapp. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.