{"_id":"@aiaiai-pt/martha-chat","_rev":"8-28ca29731f2a121b1d0e22a9e1ec3054","name":"@aiaiai-pt/martha-chat","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@aiaiai-pt/martha-chat","version":"0.1.0","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.1.0","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"2941a7a80ef3083e7dceda59bc9a4c15976c652e","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.1.0.tgz","fileCount":21,"integrity":"sha512-mFvZ2Qond638tlaFfSNVMzL7RfFwruj0nB/p4AtMquKZK98BnKeGmu2aQXQJp+E9ZVXDJqjBTtvSScC/DAJ9xA==","signatures":[{"sig":"MEUCIAxuA8gv4USGRhauLd5T0MOBqF7G43RcbYehN930WxbAAiEAt8qSRVFMf9VRP1SePm5jy3YFmGHzG7W9hbQncRETkZ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":441846},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"10.9.7","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.1.0_1778372913849_0.7567124078442244","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@aiaiai-pt/martha-chat","version":"0.2.0","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.2.0","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"ecada1b64f97114e1a960d820a4215bd8eb5b053","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.2.0.tgz","fileCount":21,"integrity":"sha512-hzdCUE6whhf+qjoz0xev/ASFqLwiqHJOyXgl8a54rRuJ7zzZhIXk4DMVRWnvlD2z5Dj5gQed9Sa/ySqix6hERw==","signatures":[{"sig":"MEUCIDN0pjg9Kyh9LwF/YAKecR87aNn5C4rnXJaP4O7mU1T6AiEAvpSf/pOmD9txf8mgqDr0s1PKlDsNj4TrJuJ+H/tX2dM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":442103},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"10.9.8","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.2.0_1779902115171_0.4614891850659999","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aiaiai-pt/martha-chat","version":"0.3.0","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.3.0","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"48dac69095a5aa1942ff4bbfd324e23d99a48ed9","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.3.0.tgz","fileCount":19,"integrity":"sha512-NIMaU1v9PQFmiphB6xty3b6PUp7Z1QJXZ2rxBjUlhB0l8mSXJpVbsb3yiEsCZ/ulvwar55b9Oekhow7M1BgJgg==","signatures":[{"sig":"MEYCIQCN6m+Y2TB1hrXsCDmZRMRUTmx6pz2NTBfF4Chi2Cm/7gIhAKIqOi3nI1ISSGwv5CMzHjQIBpPYxySA13lzfyTvtNhP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":449921},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"10.9.8","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.3.0_1784362174783_0.9431591211508064","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@aiaiai-pt/martha-chat","version":"0.3.1","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.3.1","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"f9c2461f52f8bf600535560acce8f0a909150bdf","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.3.1.tgz","fileCount":19,"integrity":"sha512-6OCAvt+2OzIJG/aZVYhFRzDGHk7baXI6zl2iA293h3Ks8YamxSAWDunCwXinEMitlHj3zNrLrD6TY5a3sOZGeQ==","signatures":[{"sig":"MEUCIB/sE7dSCrzJXI4/ekl0Ykgz+H7QY+L9ml6wsqKK/DwNAiEAtoVoVac1D4fj0ogEi9PClO+x55PzZ7sIu2Khz0Ls6aM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIG4H76LY0UybbLI+9CQ332aDtlVSN6xbjCtmV7veJwZXAiEA2aYRWB/qyGpdZYXjYhKzXRzmStfZDozkUfUNHeR2i/w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":456862},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"gitHead":"d1df1410e586f14992b916c1978a8051aa1c246c","_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"11.4.2","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.3.1_1790847744439_0.31471185208452024","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aiaiai-pt/martha-chat","version":"0.4.0","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.4.0","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"a39f0e7cd0cc069eb25d33f779bccc9bee5c558b","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.4.0.tgz","fileCount":19,"integrity":"sha512-qLeo2+6j9meY1YfLMkzh1EYY0o1QGgmLv/UhEn9ZRF0Gewp4pw3N0kt42ZHK9GN9Q7WjYvm6yQuVE9VjOBoHyg==","signatures":[{"sig":"MEYCIQCD6ibd/n2YhEHFPYA/93eyIxsuLuE36XdOmWcgnkT9TQIhAKonkskQ9DCxqYEmjgKX3/eOaar1XIkSDk3UgqRiEtLV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDkbVAhEILf6EJ6mGmQ13rGWSxMZNjRM7m3maZnaCNe2AIhAIFapClX2o2dnlREXC+4qcGaztbAt1KkEK6aLx+5JUve","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":851775},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"11.4.2","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.4.0_1790952284604_0.5155494494818582","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@aiaiai-pt/martha-chat","version":"0.4.2","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.4.2","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"972b3f4be3a0ac703a73daaf6e84a0ce849cd3d6","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.4.2.tgz","fileCount":19,"integrity":"sha512-6VdDLRSxTDdxKeVq1Hw8vJh1qefaBeXqAAGaUHSDUNRonEyv9eh46dvozE4phngEhtwwqODetOht2nPEwyjGMg==","signatures":[{"sig":"MEQCIGo/EQvol9vincSpWlSdNFMI/UJf/pFg/V1kVyFgtU9BAiBQalU05soZC4y39apSKpFfZ2rnFWrLikX0+NdtKGCuAQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQD803+k/sKVH7b2aWkaw1MzTVZcNnQ45B6mQPuegXk0iQIhAKnSvChpk2WQ01b9dkzL+sFl8arZ+245CynpBg2bZ99C","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":873240},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"11.4.2","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.4.2_1791042190183_0.8353605031864528","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@aiaiai-pt/martha-chat","version":"0.4.3","keywords":["martha","chat","embed","web-component","react","svelte"],"license":"MIT","_id":"@aiaiai-pt/martha-chat@0.4.3","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"homepage":"https://github.com/westeuropeco/martha#readme","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"bc1479f768953c8952e02b3ce9cb1deddeda4a3a","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.4.3.tgz","fileCount":19,"integrity":"sha512-ESsvqcs7KNDI6lM9ZxT3319X77JJtlKtaYqpAyIhlmXyf2tAlUGo1ggNm3GFXYDXtNPIuE1Q1sdAe7cm01wPOA==","signatures":[{"sig":"MEYCIQD29ETJm+s57ArWRIxHOJ7GKWJck2sQK9HIMQyhw2gJNQIhANmpFpJEGt3CHeq24+J+aWb/z25vPclMUoF9n/PbDk1T","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDEZStHhcNDmpliJe9fsL2i7mxHkSIl4IsDPySXDyRsAgIgW4IjKKQq8XHI1gDgmSLJHvF698ZWK7vIWI8SscWJlqo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":874361},"type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"11.4.2","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/martha-chat_0.4.3_1791103739208_0.4629984936462015","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"_id":"@aiaiai-pt/martha-chat@0.5.0","bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"dist":{"shasum":"938d115891a919700614171650cb5b58cb65cac2","tarball":"https://registry.npmjs.org/@aiaiai-pt/martha-chat/-/martha-chat-0.5.0.tgz","fileCount":19,"integrity":"sha512-gla4n1A3GlgIHNYW86h4RjYI5aogsU8Foy9BZn0FEikCHn5uFsavUjNWqltP0koZVe39EVItlOYtG/SFjmsN5A==","signatures":[{"sig":"MEUCIG/zSLfMMh+yF8bu3ASQcg7311BdZU7xJN/j3KYum0mCAiEAsjfSDsa9J91382C4eoqQUpOIqwJKqMeZWRm0Y2MaJ/o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCOd4KhCSKAJOqEZnr/SHr9mUp5HN+McFFpCYbX5143xgIgIGCWyTlMgcPZyebIWlk2FhvxHAHh4XAjcM+yBugOM4g="}],"unpackedSize":943488},"name":"@aiaiai-pt/martha-chat","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/martha-chat.es.js"},"./css":"./dist/martha-chat.css","./react":{"types":"./dist/react.d.ts","import":"./dist/martha-chat.react.js"},"./svelte":{"types":"./dist/svelte.d.ts","import":"./dist/svelte.js","svelte":"./dist/svelte.js"},"./package.json":"./package.json","./web-component":{"types":"./dist/ce.d.ts","import":"./dist/martha-chat.ce.js"}},"license":"MIT","version":"0.5.0","_npmUser":{"name":"colivetree","email":"carlos@nomadriver.co"},"homepage":"https://github.com/westeuropeco/martha#readme","keywords":["martha","chat","embed","web-component","react","svelte"],"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"_npmVersion":"11.4.2","description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","directories":{},"maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"sideEffects":["./dist/martha-chat.css","./dist/martha-chat.ce.js"],"_nodeVersion":"22.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","svelte":">=5"},"peerDependenciesMeta":{"react":{"optional":true},"svelte":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/martha-chat_0.5.0_1791145831218_0.5061374006714461"}}},"time":{"created":"2026-05-10T00:28:33.696Z","modified":"2026-10-04T20:30:31.517Z","0.1.0":"2026-05-10T00:28:34.033Z","0.2.0":"2026-05-27T17:15:15.323Z","0.3.0":"2026-07-18T08:09:34.935Z","0.3.1":"2026-10-01T09:42:24.528Z","0.4.0":"2026-10-02T14:44:44.728Z","0.4.2":"2026-10-03T15:43:10.301Z","0.4.3":"2026-10-04T08:48:59.354Z","0.5.0":"2026-10-04T20:30:31.324Z"},"bugs":{"url":"https://github.com/westeuropeco/martha/issues"},"license":"MIT","homepage":"https://github.com/westeuropeco/martha#readme","keywords":["martha","chat","embed","web-component","react","svelte"],"repository":{"url":"git+https://github.com/westeuropeco/martha.git","type":"git"},"description":"Embeddable Martha chat widget for plain JavaScript, React, and Svelte hosts.","maintainers":[{"name":"colivetree","email":"carlos@nomadriver.co"}],"readme":"# @aiaiai-pt/martha-chat\n\nEmbeddable Martha chat widget for framework apps and modern JavaScript hosts.\n\nUse this package when your app already has a build step and wants typed imports, version pinning, and framework-native wrappers. Plain HTML, CMS, and no-build hosts can keep using the hosted bundle from `https://martha.nomadriver.co/embed/v1/`.\n\n## Install\n\n```bash\nnpm install @aiaiai-pt/martha-chat\n```\n\n## Plain ESM\n\n```ts\nimport \"@aiaiai-pt/martha-chat/css\";\nimport { mountMarthaChat } from \"@aiaiai-pt/martha-chat\";\n\nconst chat = mountMarthaChat(\"#martha-chat\", {\n  apiUrl: \"https://martha.nomadriver.co\",\n  selectedClientId: \"your-client-key\",\n  launcher: true,\n  getAccessToken: async () => {\n    const response = await fetch(\"/api/martha-embed-token\", {\n      method: \"POST\",\n      credentials: \"include\"\n    });\n    const payload = await response.json();\n    return payload.access_token;\n  }\n});\n```\n\n## Web Component\n\n```ts\nimport stylesheetUrl from \"@aiaiai-pt/martha-chat/css?url\";\nimport \"@aiaiai-pt/martha-chat/web-component\";\n\nwindow.MarthaChat = {\n  stylesheetUrl,\n  getAccessToken: async () => {\n    const response = await fetch(\"/api/martha-embed-token\", {\n      method: \"POST\",\n      credentials: \"include\"\n    });\n    const payload = await response.json();\n    return payload.access_token;\n  }\n};\n```\n\n```html\n<martha-chat\n  api-url=\"https://martha.nomadriver.co\"\n  client-key=\"your-client-key\"\n  launcher\n></martha-chat>\n```\n\nThe web component renders inside Shadow DOM, so package consumers should pass a bundled CSS asset URL through `window.MarthaChat.stylesheetUrl` or the `stylesheet-url` attribute. Hosted script-tag installs get the CSS URL automatically because the JavaScript and CSS assets are served from the same `/embed/v1/` folder.\n\n## React\n\n```tsx\nimport \"@aiaiai-pt/martha-chat/css\";\nimport { MarthaChat } from \"@aiaiai-pt/martha-chat/react\";\n\nexport function SupportChat() {\n  return (\n    <MarthaChat\n      apiUrl=\"https://martha.nomadriver.co\"\n      selectedClientId=\"your-client-key\"\n      launcher\n      placement=\"bottom-right\"\n      getAccessToken={async () => {\n        const response = await fetch(\"/api/martha-embed-token\", {\n          method: \"POST\",\n          credentials: \"include\"\n        });\n        const payload = await response.json();\n        return payload.access_token;\n      }}\n    />\n  );\n}\n```\n\nReact is an optional peer dependency and is only required when importing `@aiaiai-pt/martha-chat/react`.\n\n## Svelte\n\n```svelte\n<script lang=\"ts\">\n  import \"@aiaiai-pt/martha-chat/css\";\n  import { MarthaChatLauncher } from \"@aiaiai-pt/martha-chat/svelte\";\n\n  async function getAccessToken() {\n    const response = await fetch(\"/api/martha-embed-token\", {\n      method: \"POST\",\n      credentials: \"include\"\n    });\n    const payload = await response.json();\n    return payload.access_token;\n  }\n</script>\n\n<MarthaChatLauncher\n  apiUrl=\"https://martha.nomadriver.co\"\n  selectedClientId=\"your-client-key\"\n  placement=\"bottom-right\"\n  {getAccessToken}\n/>\n```\n\nSvelte is an optional peer dependency and is only required when importing `@aiaiai-pt/martha-chat/svelte` from a Svelte app.\n\n## Auth Modes\n\nUse `host-token` when the host app already has Martha-compatible user tokens.\n\nUse `embed-token` when the host app has its own auth. In that mode, the host backend authenticates its own user, calls Martha server-to-server to mint a short-lived embed token, and returns that token to the browser. Never expose the Martha embed credential client secret or service-account token to browser code.\n\nStandalone third-party PKCE login is not part of the v1 embed package.\n\n## Package Exports\n\n- `@aiaiai-pt/martha-chat` - imperative mount API, client helpers, Svelte component exports, and shared types.\n- `@aiaiai-pt/martha-chat/web-component` - defines `<martha-chat>` as a side effect and re-exports the base API.\n- `@aiaiai-pt/martha-chat/react` - React wrapper.\n- `@aiaiai-pt/martha-chat/svelte` - Svelte component exports.\n- `@aiaiai-pt/martha-chat/css` - shared widget styles.\n\n## Hosted Alternative\n\nThe hosted bundle remains first-class:\n\n```html\n<script\n  type=\"module\"\n  src=\"https://martha.nomadriver.co/embed/v1/martha-chat.ce.js?v=0.3.0\"\n></script>\n```\n\nThe `v` query is a one-time cache break for hosts that may have stored the\nstable loader under the former one-year immutable policy. If the host sets\n`stylesheet-url` explicitly, apply the same release key to it:\n\n```html\n<martha-chat\n  stylesheet-url=\"https://martha.nomadriver.co/embed/v1/martha-chat.css?v=0.3.0\"\n></martha-chat>\n```\n\nOnce a release-keyed loader reaches the corrected revalidation policy, future\ndeployments are discovered without changing the URL again. The loader query is\nnot inherited by its sibling CSS URL.\n\nChoose hosted scripts for no-build pages. Choose the npm package for framework apps that want typed imports and normal dependency management.\n","readmeFilename":"README.md"}