Skip to content
PluginStats

@chat-adapter/gchat weekly downloads statistics

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

Google Chat adapter for Chat SDK — service account auth, Card v2, dialogs, and Workspace Events

View on npm Fresh · Oct 18, 2026

@chat-adapter/gchat has 35,319 recorded weekly downloads on npm, a decrease of 38.6% over the past 30 days, ranking #656 of 2,322 tracked listings.

Weekly downloads
35,319
Official API · Oct 18, 2026
7-day growth
-50.1%
-35.5K weekly downloads
30-day growth
-38.6%
-22.2K weekly downloads
90-day growth
-6.3%
-2.4K weekly downloads
Rank
#656
Among tracked npm listings

About @chat-adapter/gchat

Google Chat adapter for Chat SDK

@chat-adapter/gchat

npm package: @chat-adapter/gchat

Agent Stack MIT License

Google Chat adapter for Chat SDK. Configure with service account authentication and optional Pub/Sub.

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

Installation

pnpm add @chat-adapter/gchat

Scaffold with the CLI

To scaffold a new Google Chat bot with this adapter preselected:

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

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

Usage

The adapter auto-detects credentials from GOOGLE_CHAT_CREDENTIALS or GOOGLE_CHAT_USE_ADC environment variables:

import { Chat } from "chat";
import { createGoogleChatAdapter } from "@chat-adapter/gchat";

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

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

Google Chat setup

1. Create a GCP project
  1. Go to console.cloud.google.com
  2. Click the project dropdown then New Project
  3. Enter project name and click Create
2. Enable required APIs

Go to APIs & Services then Library and enable:

  • Google Chat API
  • Google Workspace Events API (for receiving all messages)
  • Cloud Pub/Sub API (for receiving all messages)
3. Create a service account
  1. Go to IAM & Admin then Service Accounts
  2. Click Create Service Account
  3. Enter name and description
  4. Click Create and Continue
  5. Skip the optional steps, click Done
4. Create service account key
  1. Click on your service account
  2. Go to Keys tab
  3. Click Add Key then Create new key
  4. Select JSON and click Create
  5. Copy the entire JSON content as GOOGLE_CHAT_CREDENTIALS

Note: If your organization has the iam.disableServiceAccountKeyCreation constraint enabled, you need to relax it or add an exception for your project in IAM & Admin then Organization Policies.

5. Configure Google Chat app
  1. Go to the Chat API configuration
  2. Click Configuration and fill in:
    • App name: Your bot's display name
    • Avatar URL: URL to your bot's avatar
    • Description: What your bot does
    • Interactive features: Enable Receive 1:1 messages and Join spaces and group conversations
    • Connection settings: Select App URL
    • App URL: https://your-domain.com/api/webhooks/gchat
    • Visibility: Choose who can discover your app
  3. Click Save
6. Add bot to a space
  1. Open Google Chat
  2. Create or open a Space
  3. Click the space name then Manage apps & integrations
  4. Click Add apps, search for your app, and click Add

Pub/Sub for all messages (optional)

By default, Google Chat only sends webhooks for @mentions. To receive all messages in a space, set up Workspace Events with Pub/Sub.

createGoogleChatAdapter({
  pubsubTopic: process.env.GOOGLE_CHAT_PUBSUB_TOPIC,
  impersonateUser: process.env.GOOGLE_CHAT_IMPERSONATE_USER,
});

GOOGLE_CHAT_PUBSUB_TOPIC and GOOGLE_CHAT_IMPERSONATE_USER are also auto-detected from env vars, so you can omit them from config if the env vars are set.

1. Create Pub/Sub topic
  1. Go to Pub/Sub then Topics
  2. Click Create Topic
  3. Enter topic ID (e.g., chat-events)
  4. Uncheck Add a default subscription
  5. Click Create
  6. Copy the full topic name as GOOGLE_CHAT_PUBSUB_TOPIC (format: projects/your-project-id/topics/chat-events)
2. Grant Chat service account access
  1. Go to your Pub/Sub topic
  2. Click Permissions tab
  3. Click Add Principal
  4. Enter chat-api-push@system.gserviceaccount.com
  5. Select role Pub/Sub Publisher
  6. Click Save
3. Create push subscription
  1. Go to Pub/Sub then Subscriptions
  2. Click Create Subscription
  3. Select your topic
  4. Set Delivery type to Push
  5. Set Endpoint URL to https://your-domain.com/api/webhooks/gchat
  6. Check Enable authentication and pick a service account. This is what signs the OIDC token on each push, and its email is the value you set as GOOGLE_CHAT_PUBSUB_SERVICE_ACCOUNT_EMAIL
  7. Click Create
4. Enable domain-wide delegation

Domain-wide delegation is required for creating Workspace Events subscriptions and initiating DMs.

Step 1 — Enable delegation on the service account:

  1. Go to IAM & Admin then Service Accounts
  2. Click on your service account
  3. Check Enable Google Workspace Domain-wide Delegation and save
  4. Copy the Client ID (a numeric ID, not the email)

Step 2 — Authorize in Google Admin Console:…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • google-chat
  • gchat
  • google-workspace
  • 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/gchat weekly downloads on npm, last 90 days: 35,319 weekly downloads as of Oct 18, 2026, -6.3% over 90 days.@chat-adapter/gchatWeekly downloads on npm · Last 90 days35,319downloads / week-6.3% over 90 days020K40K60K80K100KJul 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/gchat weekly downloads on npm, last 90 days: 35,319 weekly downloads as of Oct 18, 2026, -6.3% over 90 days.

7/30/90-day growth

@chat-adapter/gchat weekly downloads growth on npm: -50.1% over 7 days, -38.6% over 30 days, -6.3% over 90 days.@chat-adapter/gchatWeekly downloads growth on npm35,319downloads / week now7-day growth-35,479 weekly downloads-50.1%30-day growth-22,211 weekly downloads-38.6%90-day growth-2,371 weekly downloads-6.3%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@chat-adapter/gchat weekly downloads growth on npm: -50.1% over 7 days, -38.6% over 30 days, -6.3% over 90 days.

Ranking history

@chat-adapter/gchat npm ranking history: currently #656 (by weekly downloads).@chat-adapter/gchatnpm ranking · by weekly downloads · Last 90 days#656current rank#654#656#658#660#662Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@chat-adapter/gchat npm ranking history: currently #656 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs259 listings · 13 pages · page 3, #2 (overall #42)
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 (122)
Recent weekly downloads observations for @chat-adapter/gchat
Date (UTC)Weekly downloadsChange vs. previous
35,319+4.7K
30,646-7.3K
37,915+681
37,234-14.4K
51,649-18.9K
70,5080
70,508-290
70,798+321
70,477-3.7K
74,144-4.7K
78,887-1.4K
80,281+4.4K
75,882-15.6K
91,441—

Similar npm AI SDKs plugins

All 20 @chat-adapter/gchat alternatives

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