Yesterday's Top Poster

Scaffold your chat apps with create-chat-sdk

Creating a new Chat SDK bot now takes a single command.

create-chat-sdk scaffolds a complete Next.js project with your chosen platform adapters, a state adapter, environment variables, and a webhook route.


The CLI walks you through selecting your platform adapters (e.g., Slack and Discord) and a state adapter (e.g., Redis), then installs the dependencies for you.


  • Everything wired up: src/lib/bot.ts with onNewMention and onSubscribedMessage handlers, a populated .env.example, and a pre-configured next.config.ts.


  • Pick your stack: combine any of the official or vendor-official platform and state adapters into a single project. The CLI installs only what you select.


  • Fully scriptable: every prompt can be skipped with flags, so create-chat-sdk works with your AI agents and in CI. Coding agents are automatically detected, so the CLI runs non-interactively when they scaffold your application.

For example, scaffold a Slack and Discord bot with Redis in one command:


Read the documentation to get started.



Read more

Continue reading...
 
Back
Top