{"_id":"@deskcrew/sveltekit","_rev":"2-da2aa67801233444858d92234d6b918b","name":"@deskcrew/sveltekit","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@deskcrew/sveltekit","version":"1.0.0","keywords":["svelte","sveltekit","svelte-kit","hooks","vite","support","helpdesk","help desk","customer support","live chat","chat widget","support widget","ai chat","ai support","ticketing","support tickets","knowledge base","deskcrew"],"author":{"url":"https://deskcrew.io","name":"DeskCrew","email":"hello@deskcrew.io"},"license":"MIT","_id":"@deskcrew/sveltekit@1.0.0","maintainers":[{"name":"petebellis","email":"webmillsauto@gmail.com"}],"homepage":"https://deskcrew.io/integrations/sveltekit","bugs":{"url":"https://github.com/webmilmind1/sveltekit-deskcrew/issues","email":"hello@deskcrew.io"},"dist":{"shasum":"7135cfd3a95e32c51f6772dba2e426dd537b9016","tarball":"https://registry.npmjs.org/@deskcrew/sveltekit/-/sveltekit-1.0.0.tgz","fileCount":6,"integrity":"sha512-I4dArNVp9jY4ItIOMVQlr0qazKtkP1iQpydSDv9WEAbQXju8+WDKWfPoj17U62fOWS/71fh7YCW4BTZZKmfHIw==","signatures":[{"sig":"MEQCIFsK5qE/GhGTHiIn7ZKgaseTPrb7Y4nb5+TJclojsPirAiBiE3A9rzTdcDYF5Fa9CSzTdjhNxQuS7QUcVSkLWyyU9Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12127},"main":"index.js","type":"module","types":"index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"gitHead":"65b2d45f50dd95abed97e3faf67d358e8f1d85ef","scripts":{"test":"node --test"},"_npmUser":{"name":"petebellis","email":"webmillsauto@gmail.com"},"repository":{"url":"git+https://github.com/webmilmind1/sveltekit-deskcrew.git","type":"git"},"_npmVersion":"10.9.0","description":"SvelteKit server hook that adds the DeskCrew support widget (live chat, AI answers from your knowledge base, a help center) to every page.","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/sveltekit_1.0.0_1788430967226_0.6601337859476708","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@deskcrew/sveltekit","version":"1.0.1","description":"SvelteKit server hook that adds the DeskCrew support widget (live chat, AI answers from your knowledge base, a help center) to every page.","keywords":["svelte","sveltekit","svelte-kit","hooks","vite","support","helpdesk","help desk","customer support","live chat","chat widget","support widget","ai chat","ai support","ticketing","support tickets","knowledge base","deskcrew"],"repository":{"type":"git","url":"git+https://github.com/webmilmind1/sveltekit-deskcrew.git"},"homepage":"https://deskcrew.io/integrations/sveltekit","bugs":{"url":"https://github.com/webmilmind1/sveltekit-deskcrew/issues","email":"hello@deskcrew.io"},"author":{"name":"DeskCrew","email":"hello@deskcrew.io","url":"https://deskcrew.io"},"license":"MIT","type":"module","exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"main":"index.js","types":"index.d.ts","engines":{"node":">=18"},"scripts":{"test":"node --test"},"publishConfig":{"access":"public"},"_id":"@deskcrew/sveltekit@1.0.1","gitHead":"5aec975be7f7eeb470e19e4b5ca8725eaff1f956","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-+9SIVecdPiqO5H/cAVLgd1QB8ejmpGYlRUFtkimBXdRuMa66YAlZysbqvUhtvWAhRje+nENqAtyiWC5wUGnD7A==","shasum":"a57b590fc3ffe280475f038e26ba935fa28d2450","tarball":"https://registry.npmjs.org/@deskcrew/sveltekit/-/sveltekit-1.0.1.tgz","fileCount":6,"unpackedSize":12292,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE2Ylk9MTIYuCY0O6ao1xcAysHCvVRW+pxwCNzw06GrUAiA5j2q1gayYT96WXTuSF5D59kI7C81hDRZBFqYbW8K3xw=="}]},"_npmUser":{"name":"petebellis","email":"webmillsauto@gmail.com"},"directories":{},"maintainers":[{"name":"petebellis","email":"webmillsauto@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sveltekit_1.0.1_1788432097545_0.9824570640042218"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-03T10:22:47.034Z","modified":"2026-09-03T10:41:37.850Z","1.0.0":"2026-09-03T10:22:47.369Z","1.0.1":"2026-09-03T10:41:37.686Z"},"bugs":{"url":"https://github.com/webmilmind1/sveltekit-deskcrew/issues","email":"hello@deskcrew.io"},"author":{"name":"DeskCrew","email":"hello@deskcrew.io","url":"https://deskcrew.io"},"license":"MIT","homepage":"https://deskcrew.io/integrations/sveltekit","keywords":["svelte","sveltekit","svelte-kit","hooks","vite","support","helpdesk","help desk","customer support","live chat","chat widget","support widget","ai chat","ai support","ticketing","support tickets","knowledge base","deskcrew"],"repository":{"type":"git","url":"git+https://github.com/webmilmind1/sveltekit-deskcrew.git"},"description":"SvelteKit server hook that adds the DeskCrew support widget (live chat, AI answers from your knowledge base, a help center) to every page.","maintainers":[{"name":"petebellis","email":"webmillsauto@gmail.com"}],"readme":"# @deskcrew/sveltekit\n\n![DeskCrew widget for sveltekit: install @deskcrew/sveltekit, one import, live chat and tickets on every page](https://deskcrew.io/packages/deskcrew-sveltekit.gif)\n\nAdd the [DeskCrew](https://deskcrew.io) support widget to a SvelteKit app: live chat, AI answers grounded in your knowledge base, and a help center. One server hook, and every page (server-rendered or prerendered) carries the widget, isolated in a Shadow DOM.\n\n## Install\n\n```\nnpm install @deskcrew/sveltekit\n```\n\nIn `src/hooks.server.js` (or `.ts`):\n\n```js\nimport { deskcrewHandle } from '@deskcrew/sveltekit'\n\nexport const handle = deskcrewHandle({ widgetKey: 'pub_your_widget_key', board: 'your-board' })\n```\n\nAlready have a `handle`? Compose them:\n\n```js\nimport { sequence } from '@sveltejs/kit/hooks'\nimport { deskcrewHandle } from '@deskcrew/sveltekit'\n\nexport const handle = sequence(myHandle, deskcrewHandle({ widgetKey: 'pub_your_widget_key' }))\n```\n\nPrefer a static tag? Paste the output of `buildTag(options).tag` into `src/app.html` before `</body>`; the hook does the same thing at request time.\n\nGet the key from the Install page of your DeskCrew dashboard.\n\n## What you get\n\n- **AI answers grounded in your own help articles.** The assistant only answers from the knowledge base you publish, so it cannot invent product facts.\n- **A human approves before anything sends.** Every AI draft waits in an approval queue. Nothing reaches a customer unreviewed.\n- **Every conversation becomes a ticket.** Widget chats, emails and board posts land in one dashboard with full history.\n- **Visitors who leave still get answered.** Leave an email address and the reply arrives by email.\n\n## Options\n\n| Option      | Required | Notes                                                                                |\n| ----------- | -------- | ------------------------------------------------------------------------------------ |\n| `widgetKey` | yes      | Your public widget key, `pub_...`, from the Install page of your DeskCrew dashboard. |\n| `board`     | no       | Your board slug (lowercase letters, numbers, dashes). Enables the feedback link.     |\n| `color`     | no       | Accent colour as a 6-digit hex value, e.g. `#4f46e5`.                                |\n| `position`  | no       | `right` (default) or `left`.                                                         |\n| `greeting`  | no       | First line the launcher shows.                                                       |\n\nInvalid optional values are dropped with a console warning; a missing or malformed key means the widget is not added at all, so a bad config can never put arbitrary markup on your page.\n\n## Privacy\n\nThe only thing this package adds to your site is one `<script>` tag that loads `https://deskcrew.io/desk.js` with your public key. The widget runs inside a Shadow DOM and does not touch your styles. Terms: https://deskcrew.io/terms. Privacy: https://deskcrew.io/privacy.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}