@aarekaz/switchboard
v0.3.5
Published
Universal SDK for chat platforms - build bots once, deploy everywhere
Maintainers
Readme
Switchboard (v0.3.3)
Build chat bots once, deploy everywhere.
Switchboard is a universal SDK for chat platforms that enables developers to build bots once and deploy them seamlessly across Slack, Teams, Discord, and Google Chat.
Installation
pnpm add @aarekaz/switchboardQuick Start
import { createBot } from '@aarekaz/switchboard';
import '@aarekaz/switchboard/discord';
const bot = createBot({
token: process.env.DISCORD_TOKEN,
platform: 'discord',
});Swap platforms by changing one line:
import '@aarekaz/switchboard/slack';Design Philosophy that I am drilling in this SDK
"Pit of Success" - Make the right thing the easiest thing.
- Platforms are implementation details - Your bot logic should be platform-agnostic
- One Line Swap - Switching platforms should require changing exactly one line
- Progressive Disclosure - Start simple (90% use cases), add power when needed (10% use cases)
- Type Safety as a Feature - Full TypeScript support without manual type annotations
