{"_id":"@bs-core/svelte-kit","_rev":"6-3f9e678e435b654bf6c80ef2a15463d7","name":"@bs-core/svelte-kit","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.0":{"name":"@bs-core/svelte-kit","version":"0.0.0","keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"author":{"name":"Black Eye Technology"},"license":"MIT","_id":"@bs-core/svelte-kit@0.0.0","maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"homepage":"https://github.com/blackeyetech/bamboo-mono#readme","bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"dist":{"shasum":"c59817ac65a7ab70eb55fb2d3046ca3fd146c077","tarball":"https://registry.npmjs.org/@bs-core/svelte-kit/-/svelte-kit-0.0.0.tgz","fileCount":5,"integrity":"sha512-sen0pq0Ni8Pkp6jibreSwALMYf1+0b2o4GndFKSPFvFuGD/SqMhvX7J3De5wIwBTaK2ERnLPK2PeoCpBcAdbAA==","signatures":[{"sig":"MEUCIGp5FKxYvPRdUrBgJ4JP0o9o2aVu8F5o64rNE4WES1WQAiEAvnCYahBKuTqDKbNLavV6FUUecLhO+L3EQ/qdWViDuo0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10235},"type":"module","_from":"file:bs-core-svelte-kit-0.0.0.tgz","types":"./dist/svelte-kit.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/svelte-kit.d.ts","import":"./dist/svelte-kit.js"}},"private":false,"scripts":{"test":"echo \"No tests\" && exit 0","clean":"rm -rf ./dist ./out","build-dev":"tsc","format-js":"prettier --write 'dist/**/*.{js,ts}'","format-ts":"prettier --write 'src/**/*.ts'","build-prod":"pnpm run clean && tsc","format-misc":"prettier --write '**/*.{json,md,yaml}'","install-bin":"pnpm install -g $(pnpm pack . | tail -1)"},"_npmUser":{"name":"techiekayen","email":"kieran@blackeyetech.com"},"_resolved":"/tmp/4af99b4afd6d2d58fc3ce31833451f9f/bs-core-svelte-kit-0.0.0.tgz","_integrity":"sha512-sen0pq0Ni8Pkp6jibreSwALMYf1+0b2o4GndFKSPFvFuGD/SqMhvX7J3De5wIwBTaK2ERnLPK2PeoCpBcAdbAA==","repository":{"url":"git+https://github.com/blackeyetech/bamboo-mono.git","type":"git"},"_npmVersion":"11.3.0","description":"The Bamboo Shell SvelteKit Adapter","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.3","@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.11"},"peerDependencies":{"@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.11"},"_npmOperationalInternal":{"tmp":"tmp/svelte-kit_0.0.0_1756557018771_0.649990089521552","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@bs-core/svelte-kit","version":"1.0.0","keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"author":{"name":"Black Eye Technology"},"license":"MIT","_id":"@bs-core/svelte-kit@1.0.0","maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"homepage":"https://github.com/blackeyetech/bamboo-mono#readme","bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"dist":{"shasum":"29b0d93d612934b262fc1fe3924a123d1b69ed27","tarball":"https://registry.npmjs.org/@bs-core/svelte-kit/-/svelte-kit-1.0.0.tgz","fileCount":5,"integrity":"sha512-ihqFDjure9Axm0OULM0Wx2BF1y9qhpPUhmpoB4mS/X8UcolCL7Zd+xbWn/kwRNDhjHRJqu5YuFqJi1cdudehOA==","signatures":[{"sig":"MEUCIBcs6kOvO2mEm8WZdrh2fXjTqsPWLPhSCrrCu7sdhLA+AiEA2Tv32spX6AZTLZPKgWx/9Ipg4Sotx1sgF9G3LLxU1PE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10235},"type":"module","_from":"file:bs-core-svelte-kit-1.0.0.tgz","types":"./dist/svelte-kit.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/svelte-kit.d.ts","import":"./dist/svelte-kit.js"}},"private":false,"scripts":{"test":"echo \"No tests\" && exit 0","clean":"rm -rf ./dist ./out","build-dev":"tsc","format-js":"prettier --write 'dist/**/*.{js,ts}'","format-ts":"prettier --write 'src/**/*.ts'","build-prod":"pnpm run clean && tsc","format-misc":"prettier --write '**/*.{json,md,yaml}'","install-bin":"pnpm install -g $(pnpm pack . | tail -1)"},"_npmUser":{"name":"techiekayen","email":"kieran@blackeyetech.com"},"_resolved":"/tmp/cbdc7beb76ce81c4b41f49214d8de830/bs-core-svelte-kit-1.0.0.tgz","_integrity":"sha512-ihqFDjure9Axm0OULM0Wx2BF1y9qhpPUhmpoB4mS/X8UcolCL7Zd+xbWn/kwRNDhjHRJqu5YuFqJi1cdudehOA==","repository":{"url":"git+https://github.com/blackeyetech/bamboo-mono.git","type":"git"},"_npmVersion":"11.3.0","description":"The Bamboo Shell SvelteKit Adapter","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.3","@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.11"},"peerDependencies":{"@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.11"},"_npmOperationalInternal":{"tmp":"tmp/svelte-kit_1.0.0_1756557222669_0.9060551496089426","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bs-core/svelte-kit","version":"1.0.1","keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"author":{"name":"Black Eye Technology"},"license":"MIT","_id":"@bs-core/svelte-kit@1.0.1","maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"homepage":"https://github.com/blackeyetech/bamboo-mono#readme","bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"dist":{"shasum":"b960c104a01204c52a6614ef77a452c1f0b8c3b4","tarball":"https://registry.npmjs.org/@bs-core/svelte-kit/-/svelte-kit-1.0.1.tgz","fileCount":5,"integrity":"sha512-uWy5PaI0iJySdxOr/X3jTMikaJmanmGkXjRJC4bkGpBD1asN5jWiolks34Z+OIPWhocbAP0jPfBCUunyV6EKEw==","signatures":[{"sig":"MEYCIQCwTJult17Bd/m6E7ZZuqiXWvqMGgJnHtAViWb9JuY8cwIhAK2+VZEYa8gb8QNCis3jkhYWwKvFMl111pM9aNHrVleU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13530},"type":"module","_from":"file:bs-core-svelte-kit-1.0.1.tgz","types":"./dist/svelte-kit.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/svelte-kit.d.ts","import":"./dist/svelte-kit.js"}},"private":false,"scripts":{"test":"echo \"No tests\" && exit 0","clean":"rm -rf ./dist ./out","build-dev":"tsc","format-js":"prettier --write 'dist/**/*.{js,ts}'","format-ts":"prettier --write 'src/**/*.ts'","build-prod":"pnpm run clean && tsc","format-misc":"prettier --write '**/*.{json,md,yaml}'","install-bin":"pnpm install -g $(pnpm pack . | tail -1)"},"_npmUser":{"name":"techiekayen","email":"kieran@blackeyetech.com"},"_resolved":"/tmp/09fbe041ac0b39cccdbdbe020e1cb4bf/bs-core-svelte-kit-1.0.1.tgz","_integrity":"sha512-uWy5PaI0iJySdxOr/X3jTMikaJmanmGkXjRJC4bkGpBD1asN5jWiolks34Z+OIPWhocbAP0jPfBCUunyV6EKEw==","repository":{"url":"git+https://github.com/blackeyetech/bamboo-mono.git","type":"git"},"_npmVersion":"11.3.0","description":"The Bamboo Shell SvelteKit Adapter","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.5","@sveltejs/kit":"^2.37.1","@bs-core/shell":"^1.21.19"},"peerDependencies":{"@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.19"},"_npmOperationalInternal":{"tmp":"tmp/svelte-kit_1.0.1_1760963070642_0.15335677905863765","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bs-core/svelte-kit","version":"1.0.2","keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"author":{"name":"Black Eye Technology"},"license":"MIT","_id":"@bs-core/svelte-kit@1.0.2","maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"homepage":"https://github.com/blackeyetech/bamboo-mono#readme","bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"dist":{"shasum":"b47446bcadce830888b47ffcad1cf455bdbfffbc","tarball":"https://registry.npmjs.org/@bs-core/svelte-kit/-/svelte-kit-1.0.2.tgz","fileCount":5,"integrity":"sha512-VjChJ0XIyhOBbbeyv8ueaDJN3TsuBohTj6+GRSuYym5sBohLbbM14dRMoram7gqoomfc2rIhChd6F8H8fRYUtQ==","signatures":[{"sig":"MEQCIAX5KfqF6cfs9PZbSRHo+fzFmdxOT2WBGU4wql977VgNAiAYniKPqZ3daRg/PXwvH1crjc068ITf0El/NfRpvjwoQQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13522},"type":"module","_from":"file:bs-core-svelte-kit-1.0.2.tgz","types":"./dist/svelte-kit.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/svelte-kit.d.ts","import":"./dist/svelte-kit.js"}},"private":false,"scripts":{"test":"echo \"No tests\" && exit 0","clean":"rm -rf ./dist ./out","build-dev":"tsc","format-js":"prettier --write 'dist/**/*.{js,ts}'","format-ts":"prettier --write 'src/**/*.ts'","build-prod":"pnpm run clean && tsc","format-misc":"prettier --write '**/*.{json,md,yaml}'","install-bin":"pnpm install -g $(pnpm pack . | tail -1)"},"_npmUser":{"name":"techiekayen","email":"kieran@blackeyetech.com"},"_resolved":"/tmp/cc3d61cdee2d19c3400eb5b06f4f2afb/bs-core-svelte-kit-1.0.2.tgz","_integrity":"sha512-VjChJ0XIyhOBbbeyv8ueaDJN3TsuBohTj6+GRSuYym5sBohLbbM14dRMoram7gqoomfc2rIhChd6F8H8fRYUtQ==","repository":{"url":"git+https://github.com/blackeyetech/bamboo-mono.git","type":"git"},"_npmVersion":"11.3.0","description":"The Bamboo Shell SvelteKit Adapter","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.5","@sveltejs/kit":"^2.37.1","@bs-core/shell":"^1.21.20"},"peerDependencies":{"@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.20"},"_npmOperationalInternal":{"tmp":"tmp/svelte-kit_1.0.2_1761049589439_0.2854432092324788","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@bs-core/svelte-kit","version":"1.0.3","keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"author":{"name":"Black Eye Technology"},"license":"MIT","_id":"@bs-core/svelte-kit@1.0.3","maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"homepage":"https://github.com/blackeyetech/bamboo-mono#readme","bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"dist":{"shasum":"d4a5ff7ba792fc59d6fc053a3a7709ed654caea8","tarball":"https://registry.npmjs.org/@bs-core/svelte-kit/-/svelte-kit-1.0.3.tgz","fileCount":5,"integrity":"sha512-SrtAmV59UFDCRU3i/yWrzslf2UKcGc60QepgqCWrkyviKkbnnyh9qatYy1f7LRFVVloaDUch2A/LuNIgkjuZVw==","signatures":[{"sig":"MEUCIQD2klJOdQBNPFElsle/DwdBAVWlVCvDvDvrwmSF0/pcEAIgO60qcxCGhrNZPzwIWiUNMkvRyI8UOCmGila29XdKWKw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13535},"type":"module","_from":"file:bs-core-svelte-kit-1.0.3.tgz","types":"./dist/svelte-kit.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/svelte-kit.d.ts","import":"./dist/svelte-kit.js"}},"private":false,"scripts":{"test":"echo \"No tests\" && exit 0","clean":"rm -rf ./dist ./out","build-dev":"tsc","format-js":"prettier --write 'dist/**/*.{js,ts}'","format-ts":"prettier --write 'src/**/*.ts'","build-prod":"pnpm run clean && tsc","format-misc":"prettier --write '**/*.{json,md,yaml}'","install-bin":"pnpm install -g $(pnpm pack . | tail -1)"},"_npmUser":{"name":"techiekayen","email":"kieran@blackeyetech.com"},"_resolved":"/tmp/21bb168d8cfdf0aff06488e857f25ce8/bs-core-svelte-kit-1.0.3.tgz","_integrity":"sha512-SrtAmV59UFDCRU3i/yWrzslf2UKcGc60QepgqCWrkyviKkbnnyh9qatYy1f7LRFVVloaDUch2A/LuNIgkjuZVw==","repository":{"url":"git+https://github.com/blackeyetech/bamboo-mono.git","type":"git"},"_npmVersion":"11.3.0","description":"The Bamboo Shell SvelteKit Adapter","directories":{},"_nodeVersion":"24.1.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.5","@sveltejs/kit":"^2.37.1","@bs-core/shell":"^1.21.20"},"peerDependencies":{"@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.20"},"_npmOperationalInternal":{"tmp":"tmp/svelte-kit_1.0.3_1761214227526_0.03905902857867538","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"version":"1.0.4","name":"@bs-core/svelte-kit","description":"The Bamboo Shell SvelteKit Adapter","type":"module","exports":{".":{"import":"./dist/svelte-kit.js","types":"./dist/svelte-kit.d.ts"}},"types":"./dist/svelte-kit.d.ts","engines":{"node":">=24.0.0"},"keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"author":{"name":"Black Eye Technology"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/blackeyetech/bamboo-mono.git"},"bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"homepage":"https://github.com/blackeyetech/bamboo-mono#readme","peerDependencies":{"@sveltejs/kit":"^2.36.1","@bs-core/shell":"^1.21.21"},"private":false,"devDependencies":{"@sveltejs/kit":"^2.37.1","vite":"^7.1.5","@bs-core/shell":"^1.21.21"},"scripts":{"build-dev":"tsc","build-prod":"pnpm run clean && tsc","format-ts":"prettier --write 'src/**/*.ts'","format-js":"prettier --write 'dist/**/*.{js,ts}'","format-misc":"prettier --write '**/*.{json,md,yaml}'","install-bin":"pnpm install -g $(pnpm pack . | tail -1)","test":"echo \"No tests\" && exit 0","clean":"rm -rf ./dist ./out"},"_id":"@bs-core/svelte-kit@1.0.4","_integrity":"sha512-Wf+2BKPfaPctUIlgPesxGLsdr/aVKaXvr0LVIyTjcZ1OkbPnR3cyvouiGQJlxZ6b+yMEn0KNBj/HBg2/DXf44g==","_resolved":"/tmp/2730e362bce787b030e0c9a966fa1149/bs-core-svelte-kit-1.0.4.tgz","_from":"file:bs-core-svelte-kit-1.0.4.tgz","_nodeVersion":"24.1.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-Wf+2BKPfaPctUIlgPesxGLsdr/aVKaXvr0LVIyTjcZ1OkbPnR3cyvouiGQJlxZ6b+yMEn0KNBj/HBg2/DXf44g==","shasum":"1e7d9ba634e5e38e8d6f1be812f1604eb79b5d37","tarball":"https://registry.npmjs.org/@bs-core/svelte-kit/-/svelte-kit-1.0.4.tgz","fileCount":5,"unpackedSize":13564,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFf1IBTk5kmUXI6slBsElarvtpz7ep91+nB4bvJ6IlPHAiA7EnStKpDCBbHjYhJMtDp2+p19mWxPjkwMisSs4I/IoA=="}]},"_npmUser":{"name":"techiekayen","email":"kieran@blackeyetech.com"},"directories":{},"maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/svelte-kit_1.0.4_1763222949027_0.3995132596063913"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-30T12:30:18.687Z","modified":"2025-11-15T16:09:09.558Z","0.0.0":"2025-08-30T12:30:18.972Z","1.0.0":"2025-08-30T12:33:42.868Z","1.0.1":"2025-10-20T12:24:30.846Z","1.0.2":"2025-10-21T12:26:29.623Z","1.0.3":"2025-10-23T10:10:27.720Z","1.0.4":"2025-11-15T16:09:09.326Z"},"bugs":{"url":"https://github.com/blackeyetech/bamboo-mono/issues"},"author":{"name":"Black Eye Technology"},"license":"MIT","homepage":"https://github.com/blackeyetech/bamboo-mono#readme","keywords":["Bamboo","Shell","Framework","SvelteKit","selve-kit-adapter"],"repository":{"type":"git","url":"git+https://github.com/blackeyetech/bamboo-mono.git"},"description":"The Bamboo Shell SvelteKit Adapter","maintainers":[{"name":"techiekayen","email":"kieran@blackeyetech.com"}],"readme":"[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nIn order to use the adapter you must setup the a few things.\n\n- svelte.config.ts\n\nSetup your Svelte config file to look like below. This will start of the HTTP\nserver on the interafce a port specified, it will also handle CSP headers for\nprerendered files and set the base patht to be _/base_. Change as required.\n\nThis will also set up Svelte to add a CSP header for SSR generated HTML\n\n```\nimport { vitePreprocess } from '@sveltejs/vite-plugin-svelte';\nimport adapter from '@bs-core/svelte-kit';\nimport { bs } from '@bs-core/shell';\n\nconst HTTP_IF = bs.getConfigStr('HTTP_IF');\nconst HTTP_PORT = bs.getConfigStr('HTTP_PORT');\n\n/** @type {import('@sveltejs/kit').Config} */\nconst config = {\n\t// Consult https://svelte.dev/docs/kit/integrations\n\t// for more information about preprocessors\n\tpreprocess: vitePreprocess(),\n\n\tkit: {\n\t\tadapter: adapter({\n\t\t\tnetworkInterface: HTTP_IF,\n\t\t\tnetworkPort: HTTP_PORT,\n\t\t\tstaticFileServer: {\n\t\t\t\tcspHeader: {\n\t\t\t\t\tinlineScriptHashes: true\n\t\t\t\t}\n\t\t\t}\n\t\t}),\n\t\tpaths: {\n\t\t\tbase: '/base',\n\t\t\trelative: false\n\t\t},\n\t\tcsp: {\n\t\t\tmode: 'auto',\n\t\t\tdirectives: {\n\t\t\t\t'script-src': ['self']\n\t\t\t}\n\t\t}\n\t}\n};\n\nexport default config;\n```\n\n- vite.config.js\n\nYou Vite config file shold look like this to use the adapter in dev mode:\n\n```\nimport { sveltekit } from '@sveltejs/kit/vite';\nimport { defineConfig } from 'vite';\n\nimport { viteDevPlugin } from '@bs-core/svelte-kit';\n\nexport default defineConfig({\n\tplugins: [sveltekit(), viteDevPlugin()]\n});\n```\n\n- hooks.server.ts\n\nIf you have a backend and want to tie it up then set up an init hook for\nthe server, something like below.\n\nThe convention is to put your backend code in the dir _src/backend_ and to\nexport an init function called _start_ from a file called _setup.ts_\nNOTE: setup.ts gets complied to _setup.js_\n\nWhat will happen here is when the server is started then the function setup\nwill be called allowing you to setup your endpoints\n\n```\nimport type { ServerInit } from '@sveltejs/kit';\nimport { start } from '$lib/server/backend/setup.js';\n\nexport const init: ServerInit = async () => {\n\tawait start();\n};\n```\n","readmeFilename":"README.md"}