{"_id":"@agentforgelab/chat-widget","_rev":"2-f8aad4aeaf82a232499ca49db1583b8e","name":"@agentforgelab/chat-widget","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@agentforgelab/chat-widget","version":"1.0.0","keywords":["chat","widget","ai","agentforge","embeddable"],"author":{"name":"AgentForge"},"license":"MIT","_id":"@agentforgelab/chat-widget@1.0.0","maintainers":[{"name":"nagagovindarajan","email":"nagarajan@agentforgelab.com"}],"homepage":"https://github.com/agentforgelab/chat-widget#readme","bugs":{"url":"https://github.com/agentforgelab/chat-widget/issues"},"dist":{"shasum":"4cd559ed4a24d4c79207c12fc72b7a57fb00ada6","tarball":"https://registry.npmjs.org/@agentforgelab/chat-widget/-/chat-widget-1.0.0.tgz","fileCount":6,"integrity":"sha512-4vh2231Gbzepka+hUxxTSJicayILhGQx+BDHs/vbUouGUVb35i76y4ooO9xgsr7HV40bDoixZPeRVWNHpiYrig==","signatures":[{"sig":"MEYCIQDvYxjdThn1ZQ0H4x0vryTvOAb77/HOIHzzIsj4ORZMUgIhAK9ADJkRp9YjRwmtykCApgpV7nRhHZuMZgLlufOpIfEf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":129686},"main":"dist/index.cjs","type":"module","types":"dist/types/main.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/types/main.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./style.css":"./dist/style.css"},"gitHead":"bbf12f21a4bd447aff66f92ead46522635df48bc","scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview","typecheck":"tsc --noEmit"},"_npmUser":{"name":"nagagovindarajan","email":"nagarajan@agentforgelab.com"},"repository":{"url":"git+https://github.com/agentforgelab/chat-widget.git","type":"git"},"_npmVersion":"10.8.2","description":"Embeddable AI chat widget for AgentForge","directories":{},"_nodeVersion":"20.19.6","dependencies":{"preact":"^10.19.3"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^5.0.11","typescript":"^5.3.3","@types/node":"^25.0.8","@preact/preset-vite":"^2.8.2"},"_npmOperationalInternal":{"tmp":"tmp/chat-widget_1.0.0_1768377101766_0.0017862302032907174","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@agentforgelab/chat-widget","version":"1.0.1","description":"Embeddable AI chat widget for AgentForge","type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/types/main.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","types":"./dist/types/main.d.ts"},"./style.css":"./dist/style.css"},"scripts":{"dev":"vite","build":"tsc && vite build","preview":"vite preview","typecheck":"tsc --noEmit"},"dependencies":{"preact":"^10.19.3"},"devDependencies":{"@preact/preset-vite":"^2.8.2","@types/node":"^25.0.8","typescript":"^5.3.3","vite":"^5.0.11"},"keywords":["chat","widget","ai","agentforge","embeddable"],"author":{"name":"AgentForge"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/agentforgelab/chat-widget.git"},"_id":"@agentforgelab/chat-widget@1.0.1","gitHead":"6fde5e422384951dcdd51d5f369deafbb5d17d8a","bugs":{"url":"https://github.com/agentforgelab/chat-widget/issues"},"homepage":"https://github.com/agentforgelab/chat-widget#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-pN5U3v8G9dGIR7H1iSiBKIRSB54QZqfSrpAu0yyyC+SNqCRAzFRNFGsyXYOLHxBjCdYPrWa8JN+rPqfHc3VYIw==","shasum":"0335cd70d7f2266537f210c298e756d778506b67","tarball":"https://registry.npmjs.org/@agentforgelab/chat-widget/-/chat-widget-1.0.1.tgz","fileCount":6,"unpackedSize":130910,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFfQC4DtlvaGRRmKb904jtl2rPxJGmYIHYhOeqXTGbA9AiEAlZSLDTrhm/hOKCLUTR6o6J5LYa2OmJcY6YF3OLmvVyw="}]},"_npmUser":{"name":"nagagovindarajan","email":"nagarajan@agentforgelab.com"},"directories":{},"maintainers":[{"name":"nagagovindarajan","email":"nagarajan@agentforgelab.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chat-widget_1.0.1_1768380795592_0.3508684472726711"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-14T07:51:41.662Z","modified":"2026-01-14T08:53:15.854Z","1.0.0":"2026-01-14T07:51:41.931Z","1.0.1":"2026-01-14T08:53:15.721Z"},"bugs":{"url":"https://github.com/agentforgelab/chat-widget/issues"},"author":{"name":"AgentForge"},"license":"MIT","homepage":"https://github.com/agentforgelab/chat-widget#readme","keywords":["chat","widget","ai","agentforge","embeddable"],"repository":{"type":"git","url":"git+https://github.com/agentforgelab/chat-widget.git"},"description":"Embeddable AI chat widget for AgentForge","maintainers":[{"name":"nagagovindarajan","email":"nagarajan@agentforgelab.com"}],"readme":"# AgentForge Chat Widget\n\nEmbeddable AI chat widget with premium glassmorphism design.\n\n## Installation\n\n### CDN (Recommended)\n\n```html\n<script>\n  window.AgentForgeConfig = { apiKey: 'wk_pub_your_key_here' };\n</script>\n<script src=\"https://unpkg.com/@agentforgelab/chat-widget@latest/dist/index.global.js\" async></script>\n```\n\n### npm\n\n```bash\nnpm install @agentforgelab/chat-widget\n```\n\n```javascript\nimport { initWidget } from '@agentforgelab/chat-widget';\n// Initialize (appends to document.body)\ninitWidget(document.body, { apiKey: 'wk_pub_your_key_here' });\n```\n\n## Configuration\n\n```javascript\nwindow.AgentForgeConfig = {\n  apiKey: 'wk_pub_...',      // Required: Your public API key\n  apiUrl: 'https://...',     // Optional: Custom API URL\n  position: 'bottom-right',  // Optional: 'bottom-right' | 'bottom-left'\n};\n```\n\n## Public API\n\n```javascript\n// Control widget\nAgentForgeChat.open();\nAgentForgeChat.close();\nAgentForgeChat.toggle();\nAgentForgeChat.isOpen(); // Returns boolean\n\n// Identify user\nAgentForgeChat.identify({ email: 'user@example.com', name: 'John' });\n\n// Send message programmatically\nAgentForgeChat.sendMessage('Hello!');\n\n// Clear history (start fresh)\nAgentForgeChat.clearHistory();\n\n// Events\nAgentForgeChat.on('open', () => console.log('Widget opened'));\nAgentForgeChat.on('close', () => console.log('Widget closed'));\nAgentForgeChat.on('ready', ({ sessionId }) => console.log('Ready:', sessionId));\nAgentForgeChat.on('message:sent', ({ content }) => console.log('Sent:', content));\nAgentForgeChat.on('message:received', ({ content }) => console.log('Received:', content));\n```\n\n\n","readmeFilename":"README.md"}