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

@vibearound/plugin-channel-sdk

v0.5.1

Published

VibeAround Plugin SDK — base classes and utilities for building channel plugins

Readme

@vibearound/plugin-channel-sdk

SDK for building VibeAround channel plugins.

Channel plugins bridge IM platforms (Feishu, Telegram, Slack, Discord, etc.) to the VibeAround agent runtime via ACP. This SDK handles the ACP lifecycle so you only implement platform-specific message transport.

Install

npm install @vibearound/plugin-channel-sdk

Quick start

import { runChannelPlugin, BlockRenderer, type BlockKind, type VerboseConfig } from "@vibearound/plugin-channel-sdk";

// 1. Implement a renderer for your platform
class MyRenderer extends BlockRenderer<string> {
  constructor(private bot: MyBot, log: Function, verbose?: Partial<VerboseConfig>) {
    super({ streaming: true, flushIntervalMs: 500, minEditIntervalMs: 1000, verbose });
  }

  protected async sendText(chatId: string, text: string) {
    await this.bot.send(chatId, text);
  }

  protected async sendBlock(chatId: string, kind: BlockKind, content: string) {
    const msg = await this.bot.send(chatId, content);
    return msg.id;
  }

  protected async editBlock(chatId: string, ref: string, kind: BlockKind, content: string, sealed: boolean) {
    await this.bot.edit(chatId, ref, content);
  }
}

// 2. Run the plugin
runChannelPlugin({
  name: "vibearound-myplatform",
  version: "0.1.0",
  requiredConfig: ["bot_token"],
  createBot: ({ config, agent, log, cacheDir }) =>
    new MyBot(config.bot_token as string, agent, log, cacheDir),
  createRenderer: (bot, log, verbose) =>
    new MyRenderer(bot, log, verbose),
});

That's it. The SDK handles ACP connection, config validation, event routing, and shutdown.

BlockRenderer

Abstract base class that renders agent responses to your IM platform.

Required methods

| Method | Description | |---|---| | sendText(chatId, text) | Send a plain text message (system notifications, errors) | | sendBlock(chatId, kind, content) | Send a new streaming block, return a platform ref for editing |

Optional methods

| Method | Default | Description | |---|---|---| | editBlock(chatId, ref, kind, content, sealed) | — | Edit a message in-place (omit for send-only platforms) | | formatContent(kind, content, sealed) | Emoji prefixes | Format block content before send/edit | | onAfterTurnEnd(chatId) | No-op | Cleanup after turn completes | | onAfterTurnError(chatId, error) | sendText(chatId, "❌ ...") | Custom error rendering | | onCommandMenu(chatId, systemCmds, agentCmds) | Plain text list | Custom command menu rendering |

Constructor options

| Option | Default | Description | |---|---|---| | streaming | true | true: send + edit in real-time. false: hold each block until complete, then send once | | flushIntervalMs | 500 | Debounce interval before flushing | | minEditIntervalMs | 1000 | Minimum gap between edits (rate limit protection) | | verbose.showThinking | false | Show agent thinking blocks | | verbose.showToolUse | false | Show tool call blocks |

ChannelBot interface

Your bot class should implement:

interface ChannelBot {
  setStreamHandler(handler: BlockRenderer): void;
  start(): Promise<void> | void;
  stop(): Promise<void> | void;
}

Advanced usage

For plugins that need custom ACP lifecycle control:

import { connectToHost, stripExtPrefix } from "@vibearound/plugin-channel-sdk/advanced";

License

MIT