{"_id":"@aparsoft/chatbot-nextjs","name":"@aparsoft/chatbot-nextjs","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aparsoft/chatbot-nextjs","version":"1.0.0","description":"Next.js component for the Aparsoft AI Chatbot Widget -- App Router, Pages Router, TypeScript, SSR-safe.","main":"src/index.tsx","module":"src/index.tsx","types":"src/index.tsx","exports":{".":{"types":"./src/index.tsx","import":"./src/index.tsx","require":"./src/index.tsx","default":"./src/index.tsx"}},"sideEffects":false,"keywords":["aparsoft","chatbot","ai-chatbot","nextjs-chatbot","nextjs-chat-widget","nextjs-component","app-router","chat-widget","embeddable-chatbot","rag-chatbot","llm-chatbot","customer-support","live-chat"],"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/nextjs"},"homepage":"https://chatbot.aparsoft.com","peerDependencies":{"react":">=18.0.0","next":">=13.0.0"},"gitHead":"5453a9094f55c04f5b79a0c1ac4c3d55eab942e8","_id":"@aparsoft/chatbot-nextjs@1.0.0","bugs":{"url":"https://github.com/aparsoft/chatbot-widgets/issues"},"_nodeVersion":"22.22.2","_npmVersion":"11.14.0","dist":{"integrity":"sha512-UixXa7Xsdb3OrSuf0RSxZZ5/ZxUJ3wsuMA2SV2KH6UYAUHUYbu6HU/Y/XPWSMJiQVdBgzJAp5TI7HdBBCkXBaA==","shasum":"5133da0e0bfda4446081f5698220f27dc49fec8f","tarball":"https://registry.npmjs.org/@aparsoft/chatbot-nextjs/-/chatbot-nextjs-1.0.0.tgz","fileCount":3,"unpackedSize":8512,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDYYqWU5guOAoRUCoTtgMovMivZ0434vndPn85yQDi4LQIgcfHiQDEidFSkQGKlBktJv/PBotyV/5Qta6TPOP2FuFk="}]},"_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-nextjs_1.0.0_1779387134625_0.2534731805727073"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-21T18:12:14.441Z","1.0.0":"2026-05-21T18:12:14.780Z","modified":"2026-05-21T18:12:15.015Z"},"maintainers":[{"name":"rampal-punia","email":"rampalsinghpunia@gmail.com"}],"description":"Next.js component for the Aparsoft AI Chatbot Widget -- App Router, Pages Router, TypeScript, SSR-safe.","homepage":"https://chatbot.aparsoft.com","keywords":["aparsoft","chatbot","ai-chatbot","nextjs-chatbot","nextjs-chat-widget","nextjs-component","app-router","chat-widget","embeddable-chatbot","rag-chatbot","llm-chatbot","customer-support","live-chat"],"repository":{"type":"git","url":"git+https://github.com/aparsoft/chatbot-widgets.git","directory":"packages/nextjs"},"author":{"name":"Aparsoft Private Limited","email":"hello@aparsoft.com"},"bugs":{"url":"https://github.com/aparsoft/chatbot-widgets/issues"},"license":"MIT","readme":"# @aparsoft/chatbot-nextjs\n\nNext.js (App Router) component for the [Aparsoft AI Chatbot Widget](https://chatbot.aparsoft.com). Written in TypeScript.\n\n## Install\n\n```bash\nnpm install @aparsoft/chatbot-nextjs\n```\n\n## Usage\n\n```tsx\n'use client';\nimport AparsoftChatbot from '@aparsoft/chatbot-nextjs';\n\nexport default function Page() {\n  return (\n    <>\n      <main>Your page content</main>\n      <AparsoftChatbot apiKey=\"YOUR_PUBLIC_API_KEY\" />\n    </>\n  );\n}\n```\n\nThe `'use client'` directive is included in the package -- you do not need to add it yourself.\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: AparsoftChatbotInstance) => void` | -- | Callback when widget is mounted |\n\n## Programmatic Control\n\n```tsx\n'use client';\nimport { useAparsoftChatbot } from '@aparsoft/chatbot-nextjs';\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## Exports\n\n- `AparsoftChatbot` (default) -- The component\n- `useAparsoftChatbot` -- Hook for programmatic control\n- `AparsoftChatbotConfig` -- TypeScript config interface\n- `AparsoftChatbotInstance` -- TypeScript widget instance interface\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-ec739a4abe1a42a65c5bf0c1c25a4550"}