{"_id":"@aireact/chatbot","_rev":"4-7a7190495f31e77616d208fbd0c1ef35","name":"@aireact/chatbot","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@aireact/chatbot","version":"1.0.0","keywords":["react","chatbot","ai","openai","gpt","conversational-ai","chat-component"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/chatbot@1.0.0","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"homepage":"https://github.com/reachbrt/reactai#readme","bugs":{"url":"https://github.com/reachbrt/reactai/issues"},"dist":{"shasum":"055edb3e1f1e1d567ab98158e7cb4607bb0b8888","tarball":"https://registry.npmjs.org/@aireact/chatbot/-/chatbot-1.0.0.tgz","fileCount":12,"integrity":"sha512-7CxOPa1LO3x2tGWfI0wP7avrqvD2r80Q9W37BTLkXUPqAxqEx/bRxBvjT73CqtONYcOEqhsXSTZ0uZ48KSzWQg==","signatures":[{"sig":"MEYCIQCulWYOVaDmaKXqSJdg7/8eKpc6XGj/wTWBhdzV31wSeAIhAObom+YEfwkhjR1qK257k/xc80asdJ8+DvhnjQcPd7hU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":131213},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/chatbot.css":"./dist/chatbot.css"},"gitHead":"3578555f09dd610edce51f84a4d6d27a6b2146bd","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"repository":{"url":"git+https://github.com/reachbrt/reactai.git","type":"git"},"_npmVersion":"10.9.2","description":"Enterprise AI chatbot component for React with multi-provider support","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chatbot_1.0.0_1765693658596_0.10549267190433098","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aireact/chatbot","version":"1.0.1","keywords":["react","chatbot","ai","openai","gpt","conversational-ai","chat-component"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/chatbot@1.0.1","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"homepage":"https://github.com/reachbrt/reactai#readme","bugs":{"url":"https://github.com/reachbrt/reactai/issues"},"dist":{"shasum":"135dc92bef4eca7658ff46cbdfea66ab315d77f5","tarball":"https://registry.npmjs.org/@aireact/chatbot/-/chatbot-1.0.1.tgz","fileCount":13,"integrity":"sha512-GncGjiyjT0yEBqe44BBUxSTTXeqf17djCQ4Brsg9Ft4jjReegNW/KtCAI0MVybkTBSWXNDavWd4pZ9Ga7kIsSw==","signatures":[{"sig":"MEUCIHANhMdeUiFcLLIN5doK8h6PvvckR0yUK/EpTDFsQNnUAiEA5MJTlYALjl/UvFvx9OjSouhriCug4neoIgRZqsJglO4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134604},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/chatbot.css":"./dist/chatbot.css"},"gitHead":"6857364eda430b8e9222514d3a5eeb6a5175c5b7","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"repository":{"url":"git+https://github.com/reachbrt/reactai.git","type":"git"},"_npmVersion":"10.9.2","description":"Enterprise AI chatbot component for React with multi-provider support","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chatbot_1.0.1_1765694942073_0.9957527352710831","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aireact/chatbot","version":"1.0.2","keywords":["react","chatbot","ai","openai","gpt","conversational-ai","chat-component"],"author":{"name":"reachbrt"},"license":"MIT","_id":"@aireact/chatbot@1.0.2","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"homepage":"https://github.com/reachbrt/AIReact#readme","bugs":{"url":"https://github.com/reachbrt/AIReact/issues"},"dist":{"shasum":"950d753190fc0ef1c7aef61fda74c85d5fd554a0","tarball":"https://registry.npmjs.org/@aireact/chatbot/-/chatbot-1.0.2.tgz","fileCount":13,"integrity":"sha512-apBlOJ46//6crzfb706rBklUaQD+ZFBAB0RjGFFXDnGqIU/V8Ht0yFio/D1vQP6XLPm9IvPLw+TukAOv+HTEdg==","signatures":[{"sig":"MEUCIHB1RT+K5sIWcs+NKEHoFF6Gw4P5HOPM81HseJUKc9rnAiEA1mwhjs4C/E0S+UbYUXQiAcae//5Z1xkkA4JSv1s5T2w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134604},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./dist/chatbot.css":"./dist/chatbot.css"},"gitHead":"6857364eda430b8e9222514d3a5eeb6a5175c5b7","scripts":{"dev":"vite build --watch","build":"tsc && vite build"},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"repository":{"url":"git+https://github.com/reachbrt/AIReact.git","type":"git"},"_npmVersion":"10.9.2","description":"Enterprise AI chatbot component for React with multi-provider support","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.14.0","dependencies":{"@aireact/core":"*"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.10","typescript":"^5.3.3","@types/react":"^18.2.45","vite-plugin-dts":"^3.7.0","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/chatbot_1.0.2_1765696308112_0.7551829681286764","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aireact/chatbot","version":"1.0.3","description":"Enterprise AI chatbot component for React with multi-provider support","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./dist/chatbot.css":"./dist/chatbot.css"},"scripts":{"build":"tsc && vite build","dev":"vite build --watch"},"peerDependencies":{"react":"^18.0.0","react-dom":"^18.0.0"},"dependencies":{"@aireact/core":"*"},"devDependencies":{"@types/react":"^18.2.45","@types/react-dom":"^18.2.18","@vitejs/plugin-react":"^4.2.1","typescript":"^5.3.3","vite":"^5.0.10","vite-plugin-dts":"^3.7.0"},"keywords":["react","chatbot","ai","openai","gpt","conversational-ai","chat-component"],"author":{"name":"reachbrt"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/reachbrt/AIReact.git"},"sideEffects":["*.css"],"_id":"@aireact/chatbot@1.0.3","gitHead":"eb0d57118209adc317afca9ec14db9074a14377b","bugs":{"url":"https://github.com/reachbrt/AIReact/issues"},"homepage":"https://github.com/reachbrt/AIReact#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-jyoJM/KKp3BmWVUPKgE7JtdnBNnHMe4PoXPMGsD7QtS41mL+hisLnW/ONmjy4Nel9VOniCa/PAFTXxDiOPwwjA==","shasum":"a650e414b8ed0d0d4db01ef7c159f424c7a6a876","tarball":"https://registry.npmjs.org/@aireact/chatbot/-/chatbot-1.0.3.tgz","fileCount":15,"unpackedSize":176381,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCnh0LR4eWVJ272zMXcmDG3awmBAwsv/WMQ5u4GtiukzQIhALBQZ/JyVR8VCP4T6H/xyXz732jay+dnpzb3m7Dt0sa8"}]},"_npmUser":{"name":"aivue","email":"reachbrt@gmail.com"},"directories":{},"maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chatbot_1.0.3_1766466240842_0.4984445746498176"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-14T06:27:38.528Z","modified":"2025-12-23T05:04:01.218Z","1.0.0":"2025-12-14T06:27:38.735Z","1.0.1":"2025-12-14T06:49:02.216Z","1.0.2":"2025-12-14T07:11:48.278Z","1.0.3":"2025-12-23T05:04:01.014Z"},"bugs":{"url":"https://github.com/reachbrt/AIReact/issues"},"author":{"name":"reachbrt"},"license":"MIT","homepage":"https://github.com/reachbrt/AIReact#readme","keywords":["react","chatbot","ai","openai","gpt","conversational-ai","chat-component"],"repository":{"type":"git","url":"git+https://github.com/reachbrt/AIReact.git"},"description":"Enterprise AI chatbot component for React with multi-provider support","maintainers":[{"name":"aivue","email":"reachbrt@gmail.com"}],"readme":"# @aireact/chatbot\n\n🚀 **AI Chat Components for React**\n\nEnterprise-grade conversational AI with streaming responses, multi-provider support, and beautiful UI.\n\n<p>\n  <a href=\"https://www.npmjs.com/package/@aireact/chatbot\"><img src=\"https://img.shields.io/npm/v/@aireact/chatbot.svg?style=flat-square\" alt=\"npm version\"></a>\n  <a href=\"https://www.npmjs.com/package/@aireact/chatbot\"><img src=\"https://img.shields.io/npm/dm/@aireact/chatbot\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact/blob/main/LICENSE\"><img src=\"https://img.shields.io/npm/l/@aireact/chatbot.svg?style=flat-square\" alt=\"MIT License\"></a>\n  <a href=\"https://github.com/reachbrt/AIReact\"><img src=\"https://img.shields.io/github/stars/reachbrt/AIReact?style=social\" alt=\"GitHub Stars\"></a>\n</p>\n\n## ✨ Features\n\n- **💬 Ready-to-use Chat UI**: Beautiful, responsive chat interface\n- **🔄 Real-time Streaming**: See AI responses token by token\n- **📱 Mobile-friendly**: Responsive design for all devices\n- **🎨 Customizable**: Style with CSS variables or custom components\n- **🧠 Multi-Provider**: OpenAI, Claude, Gemini, Ollama, and more\n- **📝 Markdown Support**: Rich text with code highlighting\n- **🔧 TypeScript**: Full TypeScript support\n\n## 📦 Installation\n\n```bash\nnpm install @aireact/chatbot @aireact/core\n```\n\n## 🚀 Quick Start\n\n```tsx\nimport { ChatWindow, useChatbot } from '@aireact/chatbot';\nimport '@aireact/chatbot/style.css';\n\nfunction App() {\n  return (\n    <ChatWindow\n      provider=\"openai\"\n      apiKey={process.env.REACT_APP_OPENAI_API_KEY}\n      model=\"gpt-4o\"\n      title=\"AI Assistant\"\n      placeholder=\"Ask me anything...\"\n    />\n  );\n}\n```\n\n### Using the Hook\n\n```tsx\nimport { useChatbot } from '@aireact/chatbot';\n\nfunction CustomChat() {\n  const {\n    messages,\n    isLoading,\n    error,\n    sendMessage,\n    clearMessages\n  } = useChatbot({\n    provider: 'openai',\n    apiKey: process.env.REACT_APP_OPENAI_API_KEY,\n    model: 'gpt-4o',\n    systemPrompt: 'You are a helpful assistant.',\n    streaming: true\n  });\n\n  return (\n    <div>\n      {messages.map((msg, i) => (\n        <div key={i} className={msg.role}>\n          {msg.content}\n        </div>\n      ))}\n      <input\n        onKeyDown={(e) => {\n          if (e.key === 'Enter') {\n            sendMessage(e.target.value);\n            e.target.value = '';\n          }\n        }}\n        disabled={isLoading}\n      />\n    </div>\n  );\n}\n```\n\n## 🤖 Supported Providers\n\n| Provider | Models | Streaming |\n|----------|--------|-----------|\n| OpenAI | GPT-4, GPT-4o, GPT-3.5 | ✅ |\n| Anthropic | Claude 3, Claude 3.5 | ✅ |\n| Google | Gemini Pro, Ultra | ✅ |\n| Ollama | Llama, Mistral | ✅ |\n\n## 📖 Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `provider` | string | - | AI provider |\n| `apiKey` | string | - | API key |\n| `model` | string | - | Model name |\n| `title` | string | 'Chat' | Window title |\n| `placeholder` | string | 'Type...' | Input placeholder |\n| `systemPrompt` | string | - | System prompt |\n| `streaming` | boolean | true | Enable streaming |\n| `theme` | 'light' \\| 'dark' | 'light' | Theme |\n\n## 🎨 Customization\n\n```css\n:root {\n  --aireact-chat-bg: #ffffff;\n  --aireact-chat-text: #333333;\n  --aireact-chat-user-bg: #e1f5fe;\n  --aireact-chat-assistant-bg: #f5f5f5;\n  --aireact-chat-button-bg: #2196f3;\n}\n```\n\n## 📦 Related Packages\n\n### React (@aireact)\n- [@aireact/core](https://www.npmjs.com/package/@aireact/core) - Core AI Client\n- [@aireact/autosuggest](https://www.npmjs.com/package/@aireact/autosuggest) - AI Suggestions\n- [@aireact/smartform](https://www.npmjs.com/package/@aireact/smartform) - AI Form Validation\n- [@aireact/smart-datatable](https://www.npmjs.com/package/@aireact/smart-datatable) - AI Data Tables\n\n### Vue.js (@aivue)\n- [@aivue/chatbot](https://www.npmjs.com/package/@aivue/chatbot) - Vue Chat Components\n- [@aivue/core](https://www.npmjs.com/package/@aivue/core) - Vue Core AI Client\n\n### Angular (@aiangular) - Coming Soon\n- @aiangular/chatbot - Angular Chat Components\n\n## 🔗 More Information\n\n- [GitHub Repository](https://github.com/reachbrt/AIReact)\n- [Full Documentation](https://github.com/reachbrt/AIReact/wiki)\n- [Report Issues](https://github.com/reachbrt/AIReact/issues)\n\n## 📄 License\n\nMIT © [Bharatkumar Subramanian](https://github.com/reachbrt)\n\n","readmeFilename":"README.md"}