Skip to content
PluginStats

@chat-adapter/messenger weekly downloads statistics

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

Facebook Messenger adapter for Chat SDK — Send API webhooks, templates, and postbacks

View on npm Fresh · Dec 6, 2026

@chat-adapter/messenger has 49,903 recorded weekly downloads on npm, an increase of 76.7% over the past 30 days, ranking #785 of 3,247 tracked listings.

Weekly downloads
49,903
Official API · Dec 5, 2026
7-day growth
+44.0%
+15.2K weekly downloads
30-day growth
+76.7%
+21.7K weekly downloads
90-day growth
+231%
+34.8K weekly downloads
Rank
#785
▲ 74 in 7 days

About @chat-adapter/messenger

Facebook Messenger adapter for Chat SDK

@chat-adapter/messenger

npm package: @chat-adapter/messenger

Agent Stack MIT License

Facebook Messenger adapter for Chat SDK, using the Messenger Platform API.

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

Building for Instagram Direct Messages? Use @chat-adapter/instagram instead. It connects through Instagram API with Instagram Login and does not require a Facebook Page.

Installation

pnpm add @chat-adapter/messenger @chat-adapter/state-memory

Scaffold with the CLI

To scaffold a new Messenger bot with this adapter preselected:

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

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

Usage

import { Chat } from "chat";
import { createMessengerAdapter } from "@chat-adapter/messenger";
import { createMemoryState } from "@chat-adapter/state-memory";

const bot = new Chat({
  userName: "mybot",
  adapters: {
    messenger: createMessengerAdapter(),
  },
  state: createMemoryState(),
});

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

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

The memory state adapter keeps subscriptions and locks in process memory, which suits local development. Use a Redis or PostgreSQL state adapter in production.

Facebook Messenger setup

1. Create a Meta app
  1. Go to developers.facebook.com/apps
  2. Click Create App
  3. Select the use case "Engage with customers on Messenger from Meta"
  4. Enter your app name and contact email, then create the app
  5. Go to App > App Settings > Basic and copy your App Secret — this becomes FACEBOOK_APP_SECRET
2. Create a Facebook Page

Your Messenger bot needs a Facebook Page to send and receive messages. If you don't have one:

  1. The easiest approach is to create a Facebook Business profile first
  2. Then create a Page under that business profile
  3. Note the Page name — users will message this Page to interact with your bot
3. Configure Messenger API
  1. In your Meta app dashboard, go to Use Cases
  2. Find "Engage with customers on Messenger from Meta" and click Customize
  3. Then open Messenger API Settings
Configure webhooks
  1. Under Configure webhooks, click Add Callback URL
  2. Enter your webhook URL: https://your-domain.com/api/webhooks/messenger
  3. Enter a Verify Token — this is a secret string you create (this becomes FACEBOOK_VERIFY_TOKEN)
  4. Click Verify and Save
  5. After verification, click Add Subscriptions and enable:
    • messages
    • messaging_postbacks
    • messaging_reactions
    • message_deliveries
    • message_reads
Generate a Page Access Token
  1. Under Generate access tokens, click Add or remove Pages
  2. Your Pages should populate — select the Page you created
  3. Assign the standard permissions when prompted
  4. Click Generate Token
  5. Copy the token — this becomes FACEBOOK_PAGE_ACCESS_TOKEN

Configuration

You can call createMessengerAdapter() with no arguments when the environment variables are set.

OptionRequiredDescription
appSecretNo*App secret for webhook signature verification. Auto-detected from FACEBOOK_APP_SECRET
pageAccessTokenNo*Page access token. Auto-detected from FACEBOOK_PAGE_ACCESS_TOKEN
verifyTokenNo*Webhook verify token. Auto-detected from FACEBOOK_VERIFY_TOKEN
apiVersionNoGraph API version (defaults to v21.0)
userNameNoBot username. Defaults to the Page name, or to the userName passed to Chat when the Page lookup fails
loggerNoLogger instance (defaults to ConsoleLogger("info"))

*Required at runtime, either in config or as an environment variable.

Environment variables

FACEBOOK_APP_SECRET=...              # App secret from App Settings > Basic
FACEBOOK_PAGE_ACCESS_TOKEN=...       # Generated Page access token
FACEBOOK_VERIFY_TOKEN=...            # Webhook verify token that you choose

All three are required unless you pass the matching option to createMessengerAdapter().

Webhook setup

Messenger uses two webhook mechanisms:

  1. Verification handshake (GET). Meta sends hub.mode=subscribe and a hub.verify_token that must match your FACEBOOK_VERIFY_TOKEN. A mismatch gets a 403 response.
  2. Event delivery (POST). Incoming messages, reactions, and postbacks are verified with the X-Hub-Signature-256 header. A missing or wrong signature gets a 403 response.
// Next.js App Router example
import { after } from "next/server";
import { bot } from "@/lib/bot";

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

export async function POST(request: Request) {
  return bot.webhooks.messenger(request, {
    waitUntil: (task) => after(() => task),
  });
}
```…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • messenger
  • facebook-messenger
  • meta
  • bot
  • adapter
  • 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/messenger weekly downloads on npm, last 90 days: 49,903 weekly downloads as of Dec 5, 2026, +231% over 90 days.@chat-adapter/messengerWeekly downloads on npm · Last 90 days49,903downloads / week+231% over 90 days010K20K30K40K50KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@chat-adapter/messenger weekly downloads on npm, last 90 days: 49,903 weekly downloads as of Dec 5, 2026, +231% over 90 days.

7/30/90-day growth

@chat-adapter/messenger weekly downloads growth on npm: +44.0% over 7 days, +76.7% over 30 days, +231% over 90 days.@chat-adapter/messengerWeekly downloads growth on npm49,903downloads / week now7-day growth+15,247 weekly downloads+44.0%30-day growth+21,662 weekly downloads+76.7%90-day growth+34,815 weekly downloads+231%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@chat-adapter/messenger weekly downloads growth on npm: +44.0% over 7 days, +76.7% over 30 days, +231% over 90 days.

Ranking history

@chat-adapter/messenger npm ranking history: currently #785 (by weekly downloads).@chat-adapter/messengernpm ranking · by weekly downloads · Last 90 days#785current rank#750#800#850#900#950#1000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@chat-adapter/messenger npm ranking history: currently #785 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 40, #5 (overall #785)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 3, #11 (overall #51)
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 (170)
Recent weekly downloads observations for @chat-adapter/messenger
Date (UTC)Weekly downloadsChange vs. previous
49,903+1.3K
48,647+5.7K
42,934+5.3K
37,656+614
37,042-228
37,270+1.6K
35,628+972
34,656+1.2K
33,462-2.1K
35,525-965
36,490+4.4K
32,048+4.2K
27,815+1.1K
26,721—

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