{"_id":"@8xlabsai/hekaya-sdk-react","_rev":"2-b2a8cda8abebbe782e28fad436c11c36","name":"@8xlabsai/hekaya-sdk-react","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@8xlabsai/hekaya-sdk-react","version":"0.2.0","license":"MIT","_id":"@8xlabsai/hekaya-sdk-react@0.2.0","maintainers":[{"name":"batout","email":"amr.z.abdo@gmail.com"}],"homepage":"https://github.com/8xlabs-ai/hekaya.ai#readme","bugs":{"url":"https://github.com/8xlabs-ai/hekaya.ai/issues"},"dist":{"shasum":"0a974ffa633b23b2ac5f167747cde1d6273cacb5","tarball":"https://registry.npmjs.org/@8xlabsai/hekaya-sdk-react/-/hekaya-sdk-react-0.2.0.tgz","fileCount":3,"integrity":"sha512-kbn3HduQezX0GBYS/dUwvw711JWFUsFUMWFR7+l9BlX70Bn/thKrMHmO5eDljGB/plcQY5bWpRIVgu6emjz+lg==","signatures":[{"sig":"MEUCIGszWn4k1BZSfdX44YEyNdFJ1zG4mocUbsY8xfWD/sr9AiEAyRygo1pXzek5b8tmohNqNguU838ZAC3FoN5VzhhMphg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1515},"main":"./dist/index.js","type":"module","_from":"file:8xlabsai-hekaya-sdk-react-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"batout","email":"amr.z.abdo@gmail.com"},"_resolved":"/tmp/b5b3c7a230b8a782b64fc439bd1987eb/8xlabsai-hekaya-sdk-react-0.2.0.tgz","_integrity":"sha512-kbn3HduQezX0GBYS/dUwvw711JWFUsFUMWFR7+l9BlX70Bn/thKrMHmO5eDljGB/plcQY5bWpRIVgu6emjz+lg==","repository":{"url":"git+https://github.com/8xlabs-ai/hekaya.ai.git","type":"git","directory":"packages/sdk-react"},"_npmVersion":"10.8.2","description":"React wrapper around @8xlabsai/hekaya-sdk-core — drop-in <HekayaWidget /> component.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@8xlabsai/hekaya-sdk-core":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","react":"^19.0.0","typescript":"^5.6.3","@types/react":"^19.0.0","@hekaya/config-tsconfig":"0.0.0"},"peerDependencies":{"react":">=18"},"_npmOperationalInternal":{"tmp":"tmp/hekaya-sdk-react_0.2.0_1778374204739_0.014017860411021044","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@8xlabsai/hekaya-sdk-react","version":"0.2.1","description":"React wrapper around @8xlabsai/hekaya-sdk-core — drop-in <HekayaWidget /> component.","license":"MIT","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/8xlabs-ai/hekaya.ai.git","directory":"packages/sdk-react"},"peerDependencies":{"react":">=18"},"dependencies":{"@8xlabsai/hekaya-sdk-core":"0.2.1"},"devDependencies":{"@types/react":"^19.0.0","react":"^19.0.0","tsup":"^8.3.5","typescript":"^5.6.3","@hekaya/config-tsconfig":"0.0.0"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit"},"_id":"@8xlabsai/hekaya-sdk-react@0.2.1","bugs":{"url":"https://github.com/8xlabs-ai/hekaya.ai/issues"},"homepage":"https://github.com/8xlabs-ai/hekaya.ai#readme","_integrity":"sha512-PKW92CWT8hvgiiTS/DZ9rmTe/giRhegi8dlZlkzcv7eXMkJaZTKGsbiiHTbtynO6WTg9Fw5mwoR3ZCiMdVs0ow==","_resolved":"/tmp/dacd8eb5142f94b45da26c801e5f3730/8xlabsai-hekaya-sdk-react-0.2.1.tgz","_from":"file:8xlabsai-hekaya-sdk-react-0.2.1.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-PKW92CWT8hvgiiTS/DZ9rmTe/giRhegi8dlZlkzcv7eXMkJaZTKGsbiiHTbtynO6WTg9Fw5mwoR3ZCiMdVs0ow==","shasum":"013ef9f99078868d682bed8a3d560f8ce37f7509","tarball":"https://registry.npmjs.org/@8xlabsai/hekaya-sdk-react/-/hekaya-sdk-react-0.2.1.tgz","fileCount":4,"unpackedSize":3420,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH0gI31C5g5h0XzILbPtsyCBOAq5ThzSOEd8F03zHKw8AiANnI/dMAg3vxP1uPwd5+5dW/bFLSOfgSVRpBRI10k7iA=="}]},"_npmUser":{"name":"batout","email":"amr.z.abdo@gmail.com"},"directories":{},"maintainers":[{"name":"batout","email":"amr.z.abdo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hekaya-sdk-react_0.2.1_1778374821366_0.6273212758806925"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-10T00:50:04.632Z","modified":"2026-05-10T01:00:21.673Z","0.2.0":"2026-05-10T00:50:04.890Z","0.2.1":"2026-05-10T01:00:21.513Z"},"bugs":{"url":"https://github.com/8xlabs-ai/hekaya.ai/issues"},"license":"MIT","homepage":"https://github.com/8xlabs-ai/hekaya.ai#readme","repository":{"type":"git","url":"git+https://github.com/8xlabs-ai/hekaya.ai.git","directory":"packages/sdk-react"},"description":"React wrapper around @8xlabsai/hekaya-sdk-core — drop-in <HekayaWidget /> component.","maintainers":[{"name":"batout","email":"amr.z.abdo@gmail.com"}],"readme":"# @8xlabsai/hekaya-sdk-react\n\n[![npm version](https://img.shields.io/npm/v/@8xlabsai/hekaya-sdk-react.svg)](https://www.npmjs.com/package/@8xlabsai/hekaya-sdk-react)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nReact 18+ wrapper around [`@8xlabsai/hekaya-sdk-core`](https://www.npmjs.com/package/@8xlabsai/hekaya-sdk-core). Drop a `<HekayaWidget />` anywhere in your tree and the embeddable AI sales agent mounts/unmounts with the component lifecycle.\n\n## Install\n\n```bash\npnpm add @8xlabsai/hekaya-sdk-react @8xlabsai/hekaya-sdk-core\n```\n\nPeer dep: `react >= 18`.\n\n## Quickstart\n\n```tsx\nimport { HekayaWidget } from '@8xlabsai/hekaya-sdk-react';\n\nexport function App() {\n  return (\n    <>\n      <YourApp />\n      <HekayaWidget\n        tenantPublicKey=\"pk_live_…\"\n        orchestratorUrl=\"https://api.hekaya.ai\"\n      />\n    </>\n  );\n}\n```\n\nThe widget mounts on first render, follows the visitor across SPA routes, and unmounts when the component unmounts. Supports the same config surface as `mount()` from sdk-core (branding overrides, position, primary/accent colors, radius).\n\n## Next.js App Router\n\nThe widget is client-only (touches `window`/`document`). Wrap it in a client component:\n\n```tsx\n// app/_components/Hekaya.tsx\n'use client';\nimport { HekayaWidget } from '@8xlabsai/hekaya-sdk-react';\n\nexport function Hekaya() {\n  return (\n    <HekayaWidget\n      tenantPublicKey={process.env.NEXT_PUBLIC_HEKAYA_KEY!}\n      orchestratorUrl=\"https://api.hekaya.ai\"\n    />\n  );\n}\n\n// app/layout.tsx\nimport { Hekaya } from './_components/Hekaya';\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n  return (\n    <html><body>{children}<Hekaya /></body></html>\n  );\n}\n```\n\n## Source\n\nMonorepo: [github.com/8xlabs-ai/hekaya.ai](https://github.com/8xlabs-ai/hekaya.ai) → `packages/sdk-react/`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}