█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

CopilotKit

इन-ऐप AI copilots और agent-driven generative UI को React और उससे आगे तक जोड़ें

Generative UI SDKsओपन सोर्स
भाषा
TypeScript
लाइसेंस
MIT
कवरेज
2 stories
$npx copilotkit@latest create
संक्षेप में

CopilotKit क्या है?

CopilotKit इन-ऐप AI copilots और agent-driven generative UI को React और उससे आगे तक जोड़ें. यह App UIs & Builders टूल्स की Generative UI SDKs श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: प्रोजेक्ट बनाएं.

सारांश

CopilotKit एक ओपन सोर्स SDK है, जिससे full-stack agentic ऐप्लिकेशन, generative UI और चैट फ़ीचर आपके प्रोडक्ट में जोड़े जा सकते हैं। यह React लाइब्रेरी के रूप में शुरू हुआ था और अब React/Next.js, Angular, Vue और React Native सहित कई frontend पर चलता है, और हर frontend को एक ही agent backend पावर देता है।

यह frontend और full-stack डेवलपर्स के लिए बना है, जो LLM-संचालित agent को अपने UI से जोड़ना चाहते हैं। CopilotKit UI लेयर (चैट, streaming, tool-call rendering, shared state) संभालता है, जबकि वह जिस AG-UI protocol का रखरखाव करता है, वह आपके agent और ऐप के बीच का wire format संभालता है।

Generative-UI श्रेणी में यह वहाँ फ़िट होता है जहाँ agents को रनटाइम पर असली UI components render और update करने हों, उपयोगकर्ता की पुष्टि के लिए रुकना हो, और shared state पढ़ना या लिखना हो, न कि सिर्फ सादा चैट टेक्स्ट लौटाना हो।

यह क्या करता है

  • message streaming, tool-call rendering और agent responses के साथ कस्टमाइज़ेबल चैट UI
  • Generative UI: उपयोगकर्ता के इरादे और agent state के आधार पर agents रनटाइम पर UI components को गतिशील रूप से बनाते और अपडेट करते हैं
  • Backend tool rendering, ताकि agents backend tools कॉल कर सकें जो क्लाइंट में दिखाए जाने वाले UI components लौटाते हैं
  • Shared state layer, जिससे agents और UI components दोनों रीयल टाइम में इसे पढ़ते और लिखते हैं
  • Human-in-the-loop: agents आगे बढ़ने से पहले उपयोगकर्ता से इनपुट, पुष्टि या संपादन माँगने के लिए रुक सकते हैं
  • Multi-framework सपोर्ट (React/Next.js, Angular, Vue, React Native) और ब्राउज़र से आगे की integrations, जैसे Slack और Microsoft Teams (beta)

शुरू करें

कुछ मिनटों में CopilotKit ऐप तैयार किया जा सकता है; बस एक LLM API key चाहिए (OpenAI, Anthropic, Gemini, आदि)।

प्रोजेक्ट बनाएं

create command चलाएं, जो core packages सेट करता है, provider कॉन्फ़िगर करता है, agent को UI से जोड़ता है और ऐप को deployment के लिए तैयार छोड़ता है।

bashbash
npx copilotkit@latest create

Agent skills जोड़ें (वैकल्पिक)

CopilotKit के agent skills को अपने प्रोजेक्ट में इंस्टॉल करें, ताकि आपका coding agent (Claude Code, Cursor, Codex, Gemini और अन्य) जान सके कि CopilotKit कैसे सेट करना है, उसके साथ कैसे बनाना है और उसमें debug कैसे करना है। नवीनतम skills पाने के लिए इसे कभी भी फिर से चलाएं।

bashbash
npx copilotkit@latest skills install

Framework quickstart का पालन करें

अपने platform के लिए docs quickstart इस्तेमाल करें (React/Next.js GA है; Angular, Vue और React Native सपोर्टेड हैं), ताकि provider, चैट UI और आपका agent जुड़ सकें।

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • मौजूदा React या Next.js ऐप्लिकेशन में इन-ऐप AI copilot या assistant चैट पैनल जोड़ें
  • Generative UI बनाएं, जहाँ agent रनटाइम पर असली components (forms, cards, dashboards) render और update करता है
  • Human-in-the-loop workflows बनाएं, जहाँ agent कार्रवाई से पहले उपयोगकर्ता की मंज़ूरी या संपादन के लिए रुकता है
  • एक ही agent backend को web, mobile (React Native) और Slack या Microsoft Teams जैसे team chat tools में दोबारा इस्तेमाल करें

How CopilotKit compares

CopilotKit alongside other open-source generative ui sdks tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
CopilotKit★ 39.1kइन-ऐप AI copilots और agent-driven generative UI को React और उससे आगे तक जोड़ें
Vercel AI SDK★ 28.3kProvider-agnostic TypeScript टूलकिट, AI ऐप्स, agents और chat UI बनाने के लिए
OpenUI★ 22.8kसादे शब्दों में UI का वर्णन करें और LLM को उसे लाइव रेंडर होते देखें
AG-UI प्रोटोकॉल★ 22.5kAI एजेंट को यूज़र-फेसिंग ऐप्स से जोड़ने वाला एक ओपन, इवेंट-आधारित प्रोटोकॉल
json-render★ 19.9kमॉडल से कॉम्पोनेंट नहीं, JSON लिखवाएं, और उसे अपने ख़ुद के UI में रेंडर करें
A2UI★ 19.2kएजेंट्स के लिए एक ओपन प्रोटोकॉल, जिससे वे declarative UI भेजते हैं और ऐप्स उसे अपने native components से render करते हैं
OpenUI (Thesys)★ 16.1kमॉडल से बनी UI को स्ट्रीम करने के लिए एक खुला स्टैंडर्ड और React रनटाइम
assistant-ui★ 13.5kChatGPT जैसा UX, composable React primitives के रूप में