{"id":31826799,"url":"https://github.com/openai/chatkit-js","last_synced_at":"2025-10-25T14:18:47.389Z","repository":{"id":318357649,"uuid":"1069899547","full_name":"openai/chatkit-js","owner":"openai","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-09T22:31:56.000Z","size":89,"stargazers_count":1421,"open_issues_count":24,"forks_count":86,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-10-14T15:39:32.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://openai.github.io/chatkit-js/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-04T21:00:32.000Z","updated_at":"2025-10-14T14:13:06.000Z","dependencies_parsed_at":"2025-10-06T19:14:47.034Z","dependency_job_id":"382ee8ea-85e4-4bf9-9d62-6bf3d443ccde","html_url":"https://github.com/openai/chatkit-js","commit_stats":null,"previous_names":["openai/chatkit-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openai/chatkit-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fchatkit-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fchatkit-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fchatkit-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fchatkit-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openai","download_url":"https://codeload.github.com/openai/chatkit-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openai%2Fchatkit-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280942553,"owners_count":26417736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-11T17:01:54.273Z","updated_at":"2025-10-25T14:18:47.385Z","avatar_url":"https://github.com/openai.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"ChatKit is a batteries-included framework for building high-quality, AI-powered chat experiences. It’s designed for developers who want to add advanced conversational intelligence to their apps fast—with minimal setup and no reinventing the wheel. ChatKit delivers a complete, production-ready chat interface out of the box.\n\n**Key features include:**\n\n- **Deep UI customization** so that ChatKit feels like a first-class part of your app\n- **Built-in response streaming** for interactive, natural conversations\n- **Tool and workflow integration** for visualizing agentic actions and chain-of-thought reasoning\n- **Rich interactive widgets** rendered directly inside the chat\n- **Attachment handling** with support for file and image uploads\n- **Thread and message management** for organizing complex conversations\n- **Source annotations and entity tagging** for transparency and references\n\nSimply drop the ChatKit component into your app, configure a few options, and you're good to go.\n\n### What makes ChatKit different?\n\nChatKit is a framework-agnostic, drop-in chat solution.\nYou don’t need to build custom UIs, manage low-level chat state, or patch together various features yourself.\nJust add the ChatKit component, give it a client token, and customize the chat experience as needed, no extra work needed.\n\n## Quickstart\n\n1. Generate a client token on your server.\n\n   ```python\n   from fastapi import FastAPI\n   from pydantic import BaseModel\n   from openai import OpenAI\n   import os\n\n   app = FastAPI()\n   openai = OpenAI(api_key=os.environ[\"OPENAI_API_KEY\"])\n\n   @app.post(\"/api/chatkit/session\")\n   def create_chatkit_session():\n       session = openai.chatkit.sessions.create({\n         # ...\n       })\n       return { client_secret: session.client_secret }\n   ```\n\n2. Install the React bindings\n\n   ```bash\n   npm install @openai/chatkit-react\n   ```\n\n3. Add the ChatKit JS script to your page\n\n   ```html\n   \u003cscript\n     src=\"https://cdn.platform.openai.com/deployments/chatkit/chatkit.js\"\n     async\n   \u003e\u003c/script\u003e\n   ```\n\n4. Render ChatKit\n\n   ```tsx\n   import { ChatKit, useChatKit } from '@openai/chatkit-react';\n\n   export function MyChat() {\n     const { control } = useChatKit({\n       api: {\n         async getClientSecret(existing) {\n           if (existing) {\n             // implement session refresh\n           }\n\n           const res = await fetch('/api/chatkit/session', {\n             method: 'POST',\n             headers: {\n               'Content-Type': 'application/json',\n             },\n           });\n           const { client_secret } = await res.json();\n           return client_secret;\n         },\n       },\n     });\n\n     return \u003cChatKit control={control} className=\"h-[600px] w-[320px]\" /\u003e;\n   }\n   ```\n\n## See working examples\n\n- [Starter app](https://github.com/openai/openai-chatkit-starter-app) - Clone a repo to start with a fully working template\n- [Samples](https://github.com/openai/openai-chatkit-advanced-samples) - See working examples of ChatKit and get inspired\n\n## License\n\nThis project is licensed under the [Apache License 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenai%2Fchatkit-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenai%2Fchatkit-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenai%2Fchatkit-js/lists"}