{"id":45699737,"url":"https://github.com/vercel/chat","last_synced_at":"2026-06-02T03:05:37.269Z","repository":{"id":340419728,"uuid":"1120872920","full_name":"vercel/chat","owner":"vercel","description":"A unified TypeScript SDK for building chat bots across Slack, Microsoft Teams, Google Chat, Discord, and more.","archived":false,"fork":false,"pushed_at":"2026-03-26T01:41:10.000Z","size":3294,"stargazers_count":1548,"open_issues_count":57,"forks_count":131,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-03-26T02:56:43.446Z","etag":null,"topics":["ai","chat","discord","google-chat","slack","teams","vercel"],"latest_commit_sha":null,"homepage":"https://chat-sdk.dev/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vercel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-22T04:45:42.000Z","updated_at":"2026-03-26T02:04:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vercel/chat","commit_stats":null,"previous_names":["vercel/chat"],"tags_count":411,"template":false,"template_full_name":null,"purl":"pkg:github/vercel/chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel","download_url":"https://codeload.github.com/vercel/chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chat","discord","google-chat","slack","teams","vercel"],"created_at":"2026-02-24T22:02:20.386Z","updated_at":"2026-06-02T03:05:37.253Z","avatar_url":"https://github.com/vercel.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","IM Bot Platforms"],"sub_categories":[],"readme":"# Chat SDK\n\n[![npm version](https://img.shields.io/npm/v/chat)](https://www.npmjs.com/package/chat)\n[![npm downloads](https://img.shields.io/npm/dm/chat)](https://www.npmjs.com/package/chat)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nA unified TypeScript SDK for building chat bots across Slack, Microsoft Teams, Google Chat, Discord, Telegram, GitHub, Linear, and WhatsApp. Write your bot logic once, deploy everywhere.\n\n## Installation\n\n```bash\nnpm install chat\n```\n\nInstall adapters for your platforms:\n\n```bash\nnpm install @chat-adapter/slack @chat-adapter/teams @chat-adapter/gchat @chat-adapter/discord @chat-adapter/telegram\n```\n\n## Usage\n\n```typescript\nimport { Chat } from \"chat\";\nimport { createSlackAdapter } from \"@chat-adapter/slack\";\nimport { createRedisState } from \"@chat-adapter/state-redis\";\n\nconst bot = new Chat({\n  userName: \"mybot\",\n  adapters: {\n    slack: createSlackAdapter(),\n  },\n  state: createRedisState(),\n});\n\nbot.onNewMention(async (thread) =\u003e {\n  await thread.subscribe();\n  await thread.post(\"Hello! I'm listening to this thread.\");\n});\n\nbot.onSubscribedMessage(async (thread, message) =\u003e {\n  await thread.post(`You said: ${message.text}`);\n});\n```\n\nSee the [Getting Started guide](https://chat-sdk.dev/docs/getting-started) for a full walkthrough.\n\n## Adapters\n\nBrowse official, vendor-official, and community adapters on [chat-sdk.dev/adapters](https://chat-sdk.dev/adapters). A cross-platform feature matrix is available at [chat-sdk.dev/docs/adapters](https://chat-sdk.dev/docs/adapters).\n\n## Features\n\n- [**Event handlers**](https://chat-sdk.dev/docs/usage) — mentions, messages, reactions, button clicks, slash commands, modals\n- [**AI streaming**](https://chat-sdk.dev/docs/streaming) — stream LLM responses with native Slack streaming, Telegram private chat draft previews, and post+edit fallback\n- [**Cards**](https://chat-sdk.dev/docs/cards) — JSX-based interactive cards (Block Kit, Adaptive Cards, Google Chat Cards)\n- [**Actions**](https://chat-sdk.dev/docs/actions) — handle button clicks and dropdown selections\n- [**Modals**](https://chat-sdk.dev/docs/modals) — form dialogs with text inputs, dropdowns, and validation\n- [**Slash commands**](https://chat-sdk.dev/docs/slash-commands) — handle `/command` invocations\n- [**Emoji**](https://chat-sdk.dev/docs/emoji) — type-safe, cross-platform emoji with custom emoji support\n- [**File uploads**](https://chat-sdk.dev/docs/files) — send and receive file attachments\n- [**Direct messages**](https://chat-sdk.dev/docs/direct-messages) — initiate DMs programmatically\n- [**Ephemeral messages**](https://chat-sdk.dev/docs/ephemeral-messages) — user-only visible messages with DM fallback\n- [**Overlapping messages**](https://chat-sdk.dev/docs/concurrency) - burst, queue, debounce, drop, or process concurrent messages on the same thread\n\n## AI coding agent support\n\nIf you use an AI coding agent like [Claude Code](https://docs.anthropic.com/en/docs/claude-code), you can teach it about Chat SDK:\n\n```bash\nnpx skills add vercel/chat\n```\n\n## Documentation\n\nFull documentation is available at [chat-sdk.dev/docs](https://chat-sdk.dev/docs).\n\n## Contributing\n\nSee [CONTRIBUTING.md](./.github/CONTRIBUTING.md) for development setup and the release process.\n\n## Support\n\nFor help or questions, see [SUPPORT.md](./.github/SUPPORT.md). To report a security vulnerability, see [SECURITY.md](./.github/SECURITY.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Fchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercel%2Fchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Fchat/lists"}