npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bitbasti/chat-adapter-webex

v0.1.0

Published

Webex adapter for Chat SDK

Readme

@bitbasti/chat-adapter-webex

npm version npm downloads

Community Webex adapter for Chat SDK.

Installation

npm install chat @bitbasti/chat-adapter-webex

Usage

import { Chat } from "chat";
import { createWebexAdapter } from "@bitbasti/chat-adapter-webex";

const bot = new Chat({
  userName: "mybot",
  adapters: {
    webex: createWebexAdapter({
      botToken: process.env.WEBEX_BOT_TOKEN!,
      webhookSecret: process.env.WEBEX_WEBHOOK_SECRET,
    }),
  },
});

bot.onNewMention(async (thread, message) => {
  await thread.post(`Hello from Webex! You said: ${message.text}`);
});

Environment variables

| Variable | Required | Description | |----------|----------|-------------| | WEBEX_BOT_TOKEN | Yes | Bot access token from the Webex Developer Portal | | WEBEX_WEBHOOK_SECRET | Recommended | Shared secret for webhook signature verification | | WEBEX_BASE_URL | No | Override the Webex API base URL (default: https://webexapis.com/v1) | | WEBEX_BOT_USERNAME | No | Override the bot display name |

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | botToken | string | WEBEX_BOT_TOKEN | Bot access token | | webhookSecret | string | WEBEX_WEBHOOK_SECRET | Shared secret for verifying webhook signatures | | baseUrl | string | "https://webexapis.com/v1" | Webex API base URL | | userName | string | "webex-bot" | Bot display name (overridden by the bot's Webex profile on initialization) | | botUserId | string | Auto-detected via /people/me | Webex person ID of the bot (skips the /people/me call if provided) | | logger | Logger | ConsoleLogger | Custom logger instance |

Platform setup

  1. Go to the Webex Developer Portal and sign in.
  2. Navigate to My Webex AppsCreate a New AppCreate a Bot.
  3. Fill in the bot name, username, and icon, then click Add Bot.
  4. Copy the Bot Access Token — this is your WEBEX_BOT_TOKEN. Store it securely; it is only shown once.
  5. Create a webhook pointing to your server:
    • Target URL: https://your-domain.com/api/webhooks/webex
    • Resource: messages | Event: created
    • Resource: attachmentActions | Event: created
    • Secret: a random string — this is your WEBEX_WEBHOOK_SECRET
  6. Add the bot to a Webex space and mention it to verify the integration.

See the Webex Webhooks Guide for details on webhook registration.

Features

  • Mentions and DMs
  • Rich text (bold, italic, code, links) via Markdown
  • Adaptive Cards (buttons, selects, radio selects, fields, sections)
  • Modals (form cards with submit/close actions)
  • File uploads (single file per message)
  • Thread support (parentId-based threading)
  • Webhook signature verification (HMAC-SHA1)

Limitations

  • Reactions are not supported by Webex bot tokens — addReaction / removeReaction throw NotImplementedError
  • Typing indicators are not available in the Webex Messaging API
  • Only one file upload per message is supported
  • Cards and file uploads cannot be combined in the same message

License

MIT