Skip to main content

Introducing npm i chat – One codebase, every chat platform

By Steven Van ·

The open-source TypeScript library, in public beta, lets teams write bot logic once for Slack, Teams, Google Chat, Discord, GitHub, and Linear.

Vercel has open sourced Chat SDK, a TypeScript library now in public beta that lets teams write bot logic once and deploy it to Slack, Microsoft Teams, Google Chat, Discord, GitHub, and Linear.

  • Event-driven handlers for mentions, messages, reactions, button clicks, and slash commands
  • JSX cards and modals that render natively on each platform
  • Distributed state via pluggable adapters for Redis, ioredis, and in-memory storage
  • Messages can be posted as strings, objects, ASTs, or JSX, and post() functions accept an AI SDK text stream for streaming AI responses in real time

The SDK starts with a core chat package and adds platform support through modular adapters, with guides for building a Slack bot with Next.js and Redis, a Discord support bot with Nuxt, a GitHub bot with Hono, and automated code review bots. Full details are in the Chat SDK documentation.

Vercel
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →

Read the original announcement →

Read Introducing npm i chat – One codebase, every chat platform on Creators Toolbox