Add Chat SDK template for multi-platform bots#1
Draft
teallarson wants to merge 3 commits intomainfrom
Draft
Conversation
New template option for create-arcade-agent that generates a chat bot using Vercel's Chat SDK (npm i chat). Deploys to Slack, Discord, Teams, GitHub, and Linear from a single codebase with AI-powered responses and Arcade tool integration. Key features: - Chat SDK event handlers (onNewMention, onSubscribedMessage) - AI SDK streaming responses with Arcade MCP tools - Slack adapter with webhook endpoint (/api/chat-webhook) - Arcade OAuth flow with auth URL surfaced directly in chat - Simple ~10 file project (no web UI, no database needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
File-based OAuth storage fails on Vercel's read-only filesystem. This adds ioredis for persisting OAuth tokens, PKCE verifiers, and client info in Redis when REDIS_URL is set, with file-based fallback for local dev. Also switches Chat SDK state to Redis when available and rewrites README with clear local (ngrok) and Vercel deploy paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cleaner flow: create Redis via Vercel dashboard (Storage → Upstash Redis) instead of signing up for Upstash separately. REDIS_URL is auto-injected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chat-sdk) tocreate-arcade-agentthat scaffolds a multi-platform chat bot using Vercel's Chat SDKTest plan
npm run buildcompiles the CLInode dist/index.js test-bot --template chat-sdkscaffolds correctlynpx tsc --noEmitwith zero errorsnpm run devstarts Next.js, webhook endpoint responds🤖 Generated with Claude Code