{"_id":"@aparsoft/chatbot-react","name":"@aparsoft/chatbot-react","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aparsoft/chatbot-react","version":"1.0.0","description":"React component for the Aparsoft AI Chatbot Widget -- embeddable, customizable, SSR-safe.","main":"src/index.js","module":"src/index.tsx","types":"src/index.tsx","exports":{".":{"import":"./src/index.tsx","require":"./src/index.js","types":"./src/index.tsx","default":"./src/index.js"}},"sideEffects":false,"keywords":["aparsoft","chatbot","ai-chatbot","react-chatbot","react-chat-widget","react-component","chat-widget","embeddable-chatbot","rag-chatbot","llm-chatbot","customer-support","live-chat","website-chatbot"],"author":{"name":"Aparsoft Private Limited","email":"hello@aparsoft.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aparsoft/chatbot-widgets.git","directory":"packages/react"},"homepage":"https://chatbot.aparsoft.com","peerDependencies":{"react":">=17.0.0","react-dom":">=17.0.0"},"peerDependenciesMeta":{"react-dom":{"optional":true}},"gitHead":"83d720692c52c785327cf3a42f4ae5bf8ee859be","_id":"@aparsoft/chatbot-react@1.0.0","bugs":{"url":"https://github.com/aparsoft/chatbot-widgets/issues"},"_nodeVersion":"22.22.2","_npmVersion":"11.14.0","dist":{"integrity":"sha512-V7dAEhy+nWYCkLiQcGW9gqKSZEJrmD756rr0gGBgF8T0su7NPYLCeWg6sCcA8hP6/XMTWwUO1HorrR2wHm33cg==","shasum":"77adafdbbdc6568454f651ed96adbc6eb3923699","tarball":"https://registry.npmjs.org/@aparsoft/chatbot-react/-/chatbot-react-1.0.0.tgz","fileCount":4,"unpackedSize":14299,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC52kc0g+yqnDGqGeLy9bzQTmvgfFuTCGEEYnLeeOpEqAiBbZBecnWlHJBbxZjZuud8QBkygnWCynz2E0yVG7ypLUw=="}]},"_npmUser":{"name":"rampal-punia","email":"rampalsinghpunia@gmail.com"},"directories":{},"maintainers":[{"name":"rampal-punia","email":"rampalsinghpunia@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chatbot-react_1.0.0_1779386991717_0.0824958436458918"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-21T18:09:51.557Z","1.0.0":"2026-05-21T18:09:51.862Z","modified":"2026-05-21T18:09:52.087Z"},"maintainers":[{"name":"rampal-punia","email":"rampalsinghpunia@gmail.com"}],"description":"React component for the Aparsoft AI Chatbot Widget -- embeddable, customizable, SSR-safe.","homepage":"https://chatbot.aparsoft.com","keywords":["aparsoft","chatbot","ai-chatbot","react-chatbot","react-chat-widget","react-component","chat-widget","embeddable-chatbot","rag-chatbot","llm-chatbot","customer-support","live-chat","website-chatbot"],"repository":{"type":"git","url":"git+https://github.com/aparsoft/chatbot-widgets.git","directory":"packages/react"},"author":{"name":"Aparsoft Private Limited","email":"hello@aparsoft.com"},"bugs":{"url":"https://github.com/aparsoft/chatbot-widgets/issues"},"license":"MIT","readme":"# @aparsoft/chatbot-react\n\nReact component for the [Aparsoft AI Chatbot Widget](https://chatbot.aparsoft.com).\n\n## Install\n\n```bash\nnpm install @aparsoft/chatbot-react\n```\n\n## Usage\n\n```jsx\nimport AparsoftChatbot from '@aparsoft/chatbot-react';\n\nexport default function App() {\n  return (\n    <>\n      <main>Your page content</main>\n      <AparsoftChatbot apiKey=\"YOUR_PUBLIC_API_KEY\" />\n    </>\n  );\n}\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|---|---|---|---|\n| `apiKey` | `string` | *(required)* | Public widget API key from dashboard |\n| `position` | `'bottom-right' \\| 'bottom-left'` | `'bottom-right'` | Launcher placement |\n| `showBranding` | `boolean` | `true` | Show \"Powered by Aparsoft\" footer |\n| `autoOpenDelay` | `number` | `0` | Auto-open after N ms |\n| `primaryColor` | `string` | Dashboard config | Override primary theme color |\n| `secondaryColor` | `string` | Dashboard config | Override secondary theme color |\n| `widgetTitle` | `string` | Dashboard config | Override header title |\n| `widgetSubtitle` | `string` | Dashboard config | Override header subtitle |\n| `welcomeMessage` | `string` | Dashboard config | Override welcome message |\n| `onReady` | `(widget) => void` | -- | Callback when widget is mounted |\n\n## Programmatic Control\n\n```jsx\nimport { useAparsoftChatbot } from '@aparsoft/chatbot-react';\n\nfunction SupportButton() {\n  const { openChat, closeChat, sendMessage } = useAparsoftChatbot();\n  return (\n    <button onClick={() => { sendMessage('I need help'); openChat(); }}>\n      Get Help\n    </button>\n  );\n}\n```\n\n## Get Your API Key\n\n1. Sign up at [chatbot.aparsoft.com](https://chatbot.aparsoft.com)\n2. Register your website URL\n3. Copy the API key from the dashboard\n\nFree tier: 50 messages/month. No credit card required.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-ceea79c57772e944022d49a601fb2329"}