{"id":45699737,"url":"https://github.com/vercel/chat","last_synced_at":"2026-04-02T01:00:02.314Z","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-04-02T01:00:02.306Z","avatar_url":"https://github.com/vercel.png","language":"TypeScript","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## Supported platforms\n\n| Platform | Package | Mentions | Reactions | Cards | Modals | Streaming | DMs |\n|----------|---------|----------|-----------|-------|--------|-----------|-----|\n| Slack | `@chat-adapter/slack` | Yes | Yes | Yes | Yes | Native | Yes |\n| Microsoft Teams | `@chat-adapter/teams` | Yes | Read-only | Yes | No | Post+Edit | Yes |\n| Google Chat | `@chat-adapter/gchat` | Yes | Yes | Yes | No | Post+Edit | Yes |\n| Discord | `@chat-adapter/discord` | Yes | Yes | Yes | No | Post+Edit | Yes |\n| Telegram | `@chat-adapter/telegram` | Yes | Yes | Partial | No | Post+Edit | Yes |\n| GitHub | `@chat-adapter/github` | Yes | Yes | No | No | No | No |\n| Linear | `@chat-adapter/linear` | Yes | Yes | No | No | No | No |\n| WhatsApp | `@chat-adapter/whatsapp` | N/A | Yes | Partial | No | No | Yes |\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 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\n## Packages\n\n| Package | Description |\n|---------|-------------|\n| `chat` | Core SDK with `Chat` class, types, JSX runtime, and utilities |\n| `@chat-adapter/slack` | [Slack adapter](https://chat-sdk.dev/adapters/slack) |\n| `@chat-adapter/teams` | [Teams adapter](https://chat-sdk.dev/adapters/teams) |\n| `@chat-adapter/gchat` | [Google Chat adapter](https://chat-sdk.dev/adapters/gchat) |\n| `@chat-adapter/discord` | [Discord adapter](https://chat-sdk.dev/adapters/discord) |\n| `@chat-adapter/telegram` | [Telegram adapter](https://chat-sdk.dev/adapters/telegram) |\n| `@chat-adapter/github` | [GitHub adapter](https://chat-sdk.dev/adapters/github) |\n| `@chat-adapter/linear` | [Linear adapter](https://chat-sdk.dev/adapters/linear) |\n| `@chat-adapter/whatsapp` | [WhatsApp adapter](https://chat-sdk.dev/adapters/whatsapp) |\n| `@chat-adapter/state-redis` | [Redis state adapter](https://chat-sdk.dev/docs/state/redis) (production) |\n| `@chat-adapter/state-ioredis` | [ioredis state adapter](https://chat-sdk.dev/docs/state/ioredis) (alternative) |\n| `@chat-adapter/state-pg` | [PostgreSQL state adapter](https://chat-sdk.dev/docs/state/postgres) (production) |\n| `@chat-adapter/state-memory` | [In-memory state adapter](https://chat-sdk.dev/docs/state/memory) (development) |\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](./CONTRIBUTING.md) for development setup and the release process.\n\n## License\n\nMIT\n","funding_links":[],"categories":["IM Bot Platforms","TypeScript"],"sub_categories":[],"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"}