Skip to content

Channels

Channels are npm connector components that plug messaging platforms into the unified communication bus. Official channels distribute via an npm registry (default registry.npmjs.org; configure npmmirror or a private registry — see Configuration), install in one command, and appear in the web console catalogue automatically.

First-party channels

ChannelModeGuide
Feishu / LarkWebSocket long connection or WebhookSetup guide
WeComIntelligent-bot WebSocket long connectionSetup guide

Other channels are reserved for later guides: see the list.

Every channel follows the same lifecycle: install → configure credentials → start → running/stopped → uninstall. Installation and configuration are available in Web Console or through the CLI.

Web Console channel installation and configuration

bash
baize add feishu                    # default npm registry
baize add wecom --registry https://registry.npmmirror.com  # temporary source
baize search                        # dynamic catalogue from the active registry

Dynamic discovery

The catalogue is dynamically discovered: publish a channel package with the baize-channel keyword and it appears — in CLI baize search and the web console — with no code change. Custom/private channels can be added via config.json channels.

Communication bus protocol

All channels connect through the communication bus protocol: a simple HTTP interface that pushes messages into the unified gateway. Custom channels get the same unified session, audit trail and memory as the official ones.