Skip to content
PluginStats

@chat-adapter/twilio weekly downloads statistics

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

Twilio adapter for Chat SDK — SMS and MMS bots with Messaging webhooks and the Messages API

View on npm Fresh · Dec 6, 2026

@chat-adapter/twilio has 162,265 recorded weekly downloads on npm, an increase of 0.8% over the past 30 days, ranking #563 of 3,247 tracked listings.

Weekly downloads
162,265
Official API · Dec 5, 2026
7-day growth
+22.0%
+29.3K weekly downloads
30-day growth
+0.8%
+1.3K weekly downloads
90-day growth
+969%
+147.1K weekly downloads
Rank
#563
▲ 15 in 7 days

About @chat-adapter/twilio

Twilio adapter for Chat SDK

@chat-adapter/twilio

npm package: @chat-adapter/twilio

Agent Stack MIT License

Twilio adapter for Chat SDK. Build SMS and MMS bots with Twilio Messaging webhooks and the Messages API.

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

Installation

pnpm add @chat-adapter/twilio

Scaffold with the CLI

To scaffold a new Twilio bot with this adapter preselected:

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

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

Usage

The adapter auto-detects TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER, and TWILIO_MESSAGING_SERVICE_SID from environment variables:

import { createTwilioAdapter } from "@chat-adapter/twilio";
import { Chat } from "chat";

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

bot.onDirectMessage(async (thread, message) => {
  await thread.post(`You said: ${message.text}`);
});

Point your Twilio Messaging webhook to a route that calls bot.webhooks.twilio(request):

import { bot } from "@/lib/bot";

export async function POST(request: Request): Promise<Response> {
  return bot.webhooks.twilio(request);
}

Configuration

createTwilioAdapter({
  accountSid: process.env.TWILIO_ACCOUNT_SID,
  authToken: process.env.TWILIO_AUTH_TOKEN,
  phoneNumber: process.env.TWILIO_PHONE_NUMBER,
  messagingServiceSid: process.env.TWILIO_MESSAGING_SERVICE_SID,
  webhookUrl: "https://your-domain.com/api/webhooks/twilio",
});

Use phoneNumber for a single Twilio number, or messagingServiceSid when sending through a Twilio Messaging Service.

Typing indicators

WhatsApp and RCS conversations can show a typing indicator via thread.startTyping(). Twilio's v3 Indicators API uses one URL with channel-specific JSON:

  • WhatsApp: { channel: "WHATSAPP", messageId } (inbound Message SID)
  • RCS: { channel: "RCS", from: "rcs:<agent_id>", to: "rcs:+E164", event: "START" }

On WhatsApp, Twilio also marks the referenced message as read. Phone-number threads are SMS and never send typing. Messaging Service (MG…) threads send RCS typing only when rcsSenderId is set and the thread has an inbound message; rcs: threads always do. If Twilio rejects the request, the adapter logs a warning instead of throwing. Set messagingApiUrl (or apiUrl) to point typing requests at a proxy or emulator.

Media

Inbound MMS media is exposed as attachments. Twilio media URLs are private, so attachments include fetchData() for authenticated downloads.

Outbound MMS supports attachments with public url values. Chat SDK cannot upload binary files to Twilio because Twilio's Messages API requires media URLs that Twilio can fetch.

Templates

Cards create Content API templates on demand for RCS senders only. To send a template on any channel, such as an approved WhatsApp template, pass its ContentSid to sendTemplate:

const twilio = bot.getAdapter("twilio");

const threadId = twilio.encodeThreadId({
  sender: "whatsapp:+15550000001",
  recipient: "whatsapp:+15551234567",
});

await twilio.sendTemplate(threadId, {
  contentSid: "HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  contentVariables: { "1": "Tomorrow at 2pm" },
});

WhatsApp templates need a whatsapp: sender or a Messaging Service with a WhatsApp sender. Quick-reply taps on templates sent this way are not decoded as Chat SDK actions: taps that carry a message body arrive as regular messages, and taps without one reach onAction with the raw ButtonPayload as actionId.

Low-level helpers

Runtime-light api, format, voice, and webhook subpaths are available for apps that only need Twilio primitives. These subpaths do not import the full Chat SDK adapter or the twilio npm package.

Voice

Voice calls are exposed as low-level helpers, not routed through the SMS/MMS adapter. Use @chat-adapter/twilio/voice with @chat-adapter/twilio/webhook when your app owns the voice route and wants reusable TwiML or call-update helpers.

Custom voice routes should verify the Twilio signature and apply your own caller allow-list before returning TwiML.

AI Coding Agents

If you use an AI coding agent such as OpenAI Codex, Claude Code, or Cursor, install the Chat SDK skill so it knows the SDK APIs, adapter patterns, and project conventions before writing code.

npx skills add vercel/chat

The skill references bundled documentation in node_modules/chat/docs, plus adapter guides and starter templates in the published package.

You can also install the Vercel Plugin for a broader agent toolkit — it includes the Chat SDK skill alongside specialist agents, agent slash commands, and more:

npx plugins add vercel/vercel-plugin

The plugin is optional; the skill alone is enough to build with Chat SDK.

For agent-readable documentation, see chat-sdk.dev/llms.txt (page index) or chat-sdk.dev/llms-full.txt (full text).

License

MIT

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • twilio
  • sms
  • mms
  • 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/twilio weekly downloads on npm, last 90 days: 162,265 weekly downloads as of Dec 5, 2026, +969% over 90 days.@chat-adapter/twilioWeekly downloads on npm · Last 90 days162,265downloads / week+969% over 90 days050K100K150K200KSep 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/twilio weekly downloads on npm, last 90 days: 162,265 weekly downloads as of Dec 5, 2026, +969% over 90 days.

7/30/90-day growth

@chat-adapter/twilio weekly downloads growth on npm: +22.0% over 7 days, +0.8% over 30 days, +969% over 90 days.@chat-adapter/twilioWeekly downloads growth on npm162,265downloads / week now7-day growth+29,286 weekly downloads+22.0%30-day growth+1,341 weekly downloads+0.8%90-day growth+147,079 weekly downloads+969%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@chat-adapter/twilio weekly downloads growth on npm: +22.0% over 7 days, +0.8% over 30 days, +969% over 90 days.

Ranking history

@chat-adapter/twilio npm ranking history: currently #563 (by weekly downloads).@chat-adapter/twilionpm ranking · by weekly downloads · Last 90 days#563current rank#520#540#560#580#600#620Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@chat-adapter/twilio npm ranking history: currently #563 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 2, #12 (overall #32)
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/twilio
Date (UTC)Weekly downloadsChange vs. previous
162,265+5.9K
156,368+20.6K
135,802+20.6K
115,218+6.9K
108,313-6.6K
114,940-13.5K
128,398-4.6K
132,979-16.1K
149,065-18.4K
167,439-14.1K
181,501+30
181,471+6.5K
174,965+13.2K
161,812—

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