{"_id":"@papit/server","_rev":"41-cf85f462bba3f2444aa649bee7d52157","name":"@papit/server","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.0":{"name":"@papit/server","version":"1.0.0","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.0","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"d702a91e1824201954e15aeb8a044861909e9fc4","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.0.tgz","fileCount":15,"integrity":"sha512-Oe0161EWC/tngvGeyn1fVPUOl3CXGGt32V3lmDwZJq4HpguSQuaVz9i01eDA5BM28E4dXN0WErraTasvSo/KGQ==","signatures":[{"sig":"MEUCIQC2zbTyOuzNmv1zGvGHN7rm1ZIG9BWT4+u3KIfJv5VGBwIgclyRM0TvHOCiwz2uKkxO7dN47692SuAW920ikaGkHOs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":283097},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"da6bf9d32aadc4dff48e3d9219f14782ef741281","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"papit","email":"onkelhoy.pap@gmail.com"},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"10.9.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"23.11.0","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.1","@papit/terminal":"0.0.1","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.0_1777288323579_0.1706326080030276","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@papit/server","version":"1.0.1","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.1","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"e27fd5792f4b9e0b84b32719c67d45459378b3f4","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.1.tgz","fileCount":15,"integrity":"sha512-i8kwWIgkJ1G6jO6xW4Cc/wvhhPIzN13T/ZUODhr+Y6JvRmDnuRzRTfhc/gK7fYd5ItgPAI69Xi6N+Z+F8YhYsA==","signatures":[{"sig":"MEYCIQDPLO2dyhow9bPQ5Tu63yG2eErP1CNo2+xEjtLRRa0yrwIhANNXkqzVmeNiHUrpS9dCw7lJKysYyS+UlANXWfeh4cPz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":283125},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"1086bf35180e326291591656d30ffb68c0c4338c","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.2","@papit/terminal":"0.0.1","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.1_1777451053042_0.6232393252266071","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@papit/server","version":"1.0.2","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.2","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"a55bceba82d991229a08834d9d2a994731546f88","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.2.tgz","fileCount":15,"integrity":"sha512-f6IuokBbHu/A2fNbTRwYoxwzybqsMmCz179eotnuN4G7ts5A9PdnDPAcCXQR7nCxFuuNC0EecexS9DgYgrIpsw==","signatures":[{"sig":"MEUCIQDBy+iQMJMrUSoUOqJFqnNaB1MCowa8hMfRRPIgO5C0gAIgX3wfCBAcEXJRoTFwfvbxUJs4IL6wEw/CGyPgz6Yi4qo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":283125},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"60ea1383e57b7a2adb7e0c71c012b3dacf13ccb3","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.3","@papit/terminal":"0.0.2","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.2_1777552126147_0.5056226068979415","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@papit/server","version":"1.0.3","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.3","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"55937e5ea8372612f14954702fd40908fbb3eb32","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.3.tgz","fileCount":15,"integrity":"sha512-Hvim8O76o+Y3w6ZufYrfkVWp1z5B7myDPRRPsRmeoFRaSqhxB/YWv52+z/hur29FhGhs/vgVcTZf97Dv1h8CCA==","signatures":[{"sig":"MEUCIEMC6acqsAxQ2EFR65YSI54CZuGND9cxNuGgyl+oufiYAiEA95eSAegWYbB8RQzzserkpFIvKeWymbwUMrxWvO9zy9w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":283429},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"952ebfab639314794a12e084cc8c38a92e25d660","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.3","@papit/terminal":"0.0.2","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.3_1778430384520_0.652617859168592","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@papit/server","version":"1.0.4","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.4","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"641b4871579669c52472e62d7151c510f61afefb","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.4.tgz","fileCount":15,"integrity":"sha512-bV51PNM6Y6a/HwZSn4vkPtcWXu46NIwWzFq0BFc5gCtRTETdRi849K1PkWplm074BCXVQZ8CYuX1RiKRnfKp0w==","signatures":[{"sig":"MEQCIGwTt3zFSYvQEapS0e+QnLvmqFrL3IcAsk+XZH93PORYAiBwjq0sR4VRJ4G5s+XlNuEZhevgv5e9traZJ9qabGb8pw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":283796},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"e0c387970dbcd5d2e1d22febd49c10bee733f79c","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.4","@papit/terminal":"0.0.2","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.3","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.4_1778702470781_0.0839481942764897","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@papit/server","version":"1.0.5","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.5","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"4bad5817c79b7e5589f7524721bc89aa41575549","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.5.tgz","fileCount":15,"integrity":"sha512-Hhrz2UZHj5auiBjIML+lP7Ia+Sq/X5+bB5KO4QliZCL/CG/G2Mv+qtY6IKRHuPzEe1TN1l07TicTTzze8Vyl+w==","signatures":[{"sig":"MEQCICl5ICFcUqZ+2O/auRIgwkwR4nRxj8xFPsY/WDApsghZAiA2fsd3ucxdSEvqRiwUYNGazzw6p2jEx0WlpvMVpG3OLw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":283573},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"b93e34ac95f73d8bae2c1fd132dc748afa9aee90","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.5","@papit/terminal":"0.0.2","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.4","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.5_1778762127803_0.5834542078514859","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@papit/server","version":"1.0.6","keywords":["papit","node","typescript","dev-server"],"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","_id":"@papit/server@1.0.6","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"bin":{"papit-server":"lib/bin.js"},"dist":{"shasum":"d6c480bb35714712e2842861f140023c3ee419b6","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.6.tgz","fileCount":15,"integrity":"sha512-SKfkGRmvojF8K1QqqaBtipHfL4ea5ttVPmloyBOfyHcE14r5m2FjP6K608qHVwwUF774Qyv0ArVvHvM4WLdlpQ==","signatures":[{"sig":"MEUCIBHOE/5ptr1sP8v5CdMizOkw6QU/jX7TfY50DV3fIc1uAiEAyhbBu8mX7QHHlORRN6XwH4wlS89Fb1WhTtAHJb/d4vc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":284389},"main":"./lib/bundle.js","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"ff10bf16b22997075436adc0e98d3007c475e797","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.6","@papit/terminal":"0.0.2","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.2","@papit/deep-merge":"0.0.1","@papit/information":"0.0.7"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.5","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.6_1785228691138_0.27629882314075105","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"_id":"@papit/server@1.0.7","bin":{"papit-server":"lib/bin.js"},"bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"dist":{"shasum":"8a0c82238225107cdfa1c21b92a5b06eaa194a97","tarball":"https://registry.npmjs.org/@papit/server/-/server-1.0.7.tgz","fileCount":15,"integrity":"sha512-ducl08G0/u0dtQpsjN85feM2blbamxADpRVc/wyJm/VI8N9ojhtphgVcOW7VBXHdj6EmUoZgOmttDf98pR+edQ==","signatures":[{"sig":"MEQCIGpN0WcLuAK3N3N80GQQLvhqwpIX2bANsLhLHmKVe3iZAiAiPbPNAgW6cgnqlTJGFKcJlMUeEddJjxypnQghTlcynQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDZZXlAU7Vp4B7mrRtYZtTce9Anrlpk0oy4wiVnkHpxSAiBjb+sqBDpZ5ME/q3vXgen9UdIKodqb5OcEgc64hXLIfQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@papit%2fserver@1.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":288064},"main":"./lib/bundle.js","name":"@papit/server","type":"module","papit":{"main":"server","type":"node","publish":true,"priority":5,"components":{"util":{"className":"Util"},"server":{"className":"Server"},"socket":{"className":"Socket"},"request":{"className":"Request"},"translation":{"className":"Translation"}}},"types":"./lib/bundle.d.ts","author":{"name":"henry"},"engines":{"node":">=18"},"exports":{".":{"types":"./lib/bundle.d.ts","import":"./lib/bundle.js"}},"gitHead":"15364c8662fd150cffb1849a8674c1bfafbc4c7b","license":"LicenseRef-Papit-1.0","private":false,"scripts":{"test":"node --test tests/**/*.test.js","build":"npx @papit/build -- --error --ancestors","start":"npx @papit/build -- --no-install --info --live --execute ./lib/bundle.js","watch":"tsc -w","component":"npm create @papit -- --component","preversion":"papit-version","postversion":"papit-version","generate-explorer-icons":"npx @papit/svg-spritesheet --input ./explorer-icons --output ./asset/icons/explorer-spritesheet.svg"},"version":"1.0.7","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:75392da6-dcd0-4407-b627-6738f865a954"}},"homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","keywords":["papit","node","typescript","dev-server"],"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"_npmVersion":"11.6.2","description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","directories":{},"maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"sideEffects":true,"_nodeVersion":"25.2.1","browserslist":["defaults","not IE 11","not dead"],"dependencies":{"esbuild":"0.27.2","chokidar":"^5.0.0","@papit/html":"0.0.1","@papit/build":"0.0.7","@papit/terminal":"0.0.2","@papit/arguments":"0.0.1","@papit/bundle-js":"0.0.3","@papit/deep-merge":"0.0.1","@papit/information":"0.0.8"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"remoteVersion":"1.0.6","_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3","@types/node":"22.10.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/server_1.0.7_1790271121939_0.027465080785753493"}}},"time":{"created":"2026-04-27T11:12:03.475Z","modified":"2026-09-24T17:32:02.379Z","0.0.0":"2024-07-24T06:46:03.890Z","0.0.1":"2024-07-24T08:28:27.025Z","0.0.2":"2024-07-25T10:18:49.492Z","0.0.3":"2024-07-25T10:49:39.980Z","0.0.4":"2024-07-25T11:06:29.959Z","0.0.5":"2024-07-31T20:48:32.179Z","0.0.6":"2024-08-01T08:01:48.565Z","0.0.7":"2024-08-02T10:11:58.427Z","0.0.8":"2024-08-02T21:58:02.976Z","0.0.9":"2024-08-04T23:39:36.345Z","0.0.10":"2024-08-08T14:55:39.002Z","0.0.11":"2024-08-08T17:15:17.014Z","0.0.12":"2024-08-08T23:35:57.014Z","0.0.13":"2024-08-09T13:27:39.761Z","0.0.14":"2024-08-09T18:49:46.036Z","0.0.15":"2024-08-10T14:53:17.767Z","0.0.16":"2024-08-11T02:07:29.235Z","0.0.17":"2024-08-11T02:12:28.406Z","0.0.18":"2024-08-21T09:02:33.509Z","0.0.19":"2024-08-21T09:15:23.534Z","0.0.20":"2024-08-24T19:56:31.395Z","0.0.21":"2024-08-28T09:55:18.140Z","0.0.22":"2024-08-28T19:47:25.505Z","0.0.23":"2024-09-15T04:01:20.110Z","0.0.24":"2024-09-19T15:37:26.461Z","0.0.25":"2024-12-22T12:41:29.232Z","0.0.26":"2025-01-05T00:39:02.383Z","0.0.27":"2025-07-24T08:18:34.138Z","0.0.28":"2025-08-23T04:56:00.143Z","1.0.0":"2026-04-27T11:12:03.730Z","1.0.1":"2026-04-29T08:24:13.188Z","1.0.2":"2026-04-30T12:28:46.316Z","1.0.3":"2026-05-10T16:26:24.678Z","1.0.4":"2026-05-13T20:01:10.924Z","1.0.5":"2026-05-14T12:35:27.951Z","1.0.6":"2026-07-28T08:51:31.276Z","1.0.7":"2026-09-24T17:32:02.047Z"},"bugs":{"url":"https://github.com/onkelhoy/papit/issues"},"author":{"name":"henry"},"license":"LicenseRef-Papit-1.0","homepage":"https://github.com/onkelhoy/papit/tree/main/packages/network/dev-server","keywords":["papit","node","typescript","dev-server"],"repository":{"url":"git+https://github.com/onkelhoy/papit.git","type":"git","directory":"packages/network/dev-server"},"description":"a simple but powerful dev server that can locate locale assets and package and even dependency assets","maintainers":[{"name":"papit","email":"onkelhoy.pap@gmail.com"}],"readme":"# @papit/server\n\nDevelopment server for papit workspaces that serves a package together with its workspace dependencies through an import map, bundles TypeScript on request and reloads the page when files change.\n\n![Logo](https://raw.githubusercontent.com/onkelhoy/papit/refs/heads/main/asset/logo.svg)\n\n---\n\n![Type](https://img.shields.io/badge/Type-cli-orange)\n[![Tests](https://github.com/onkelhoy/papit/actions/workflows/pull-request.yml/badge.svg)](https://github.com/onkelhoy/papit/actions/workflows/pull-request.yml)\n[![NPM version](https://img.shields.io/npm/v/@papit/server.svg?logo=npm)](https://www.npmjs.com/package/@papit/server)\n\n---\n\n# Installation\n\n```bash\nnpm install @papit/server\n```\n\n# Usage\n\nRun it from a package folder (or the workspace root) and open the printed port:\n\n```bash\nnpx @papit/server\n```\n\nRebuild and reload while you edit, as every web package's `npm start` does:\n\n```bash\nnpx @papit/server --info --live\n```\n\nServe a fixed port for Playwright, as the test configs do:\n\n```bash\nnpx @papit/server --serve --port=3500\n```\n\nOpen the browser on a sub folder:\n\n```bash\nnpx @papit/server --open=views/showcase\n```\n\n# CLI flags\n\n| Flag | Type | Default | Description |\n| --- | --- | --- | --- |\n| `--port` | number | `3000` | first port to try; the next free one is used, up to 20 tries |\n| `--live` | boolean | `false` | watch the workspace, rebuild changed packages and reload open pages |\n| `--serve` | boolean | `false` | only serve; skip the build settings applied when run inside another package |\n| `--open` | string | - | open the browser, optionally on this path |\n| `--folder` | string | - | sub folder every request path is resolved under |\n| `--asset` | string (repeatable) | - | extra asset folder names, on top of `asset`, `assets` and `public` |\n| `--include-node` | boolean | `false` | also collect assets from `node` type packages |\n| `--import-map` | string | `.temp/dependencies` | working folder created at startup; removed on shutdown unless this flag is given |\n| `--prod` | boolean | `false` | drop the `Cache-Control: no-store` header on HTML |\n| `--no-cache` | boolean | `false` | disable the in-memory caches |\n| `--cache-file` | number (MB) | `50` | file cache size |\n| `--cache-html` | number (MB) | `50` | HTML cache size |\n| `--cache-bundle` | number (MB) | `150` | on-the-fly bundle cache size |\n| `--MAX_FILE_SIZE_TO_CACHE` | number (bytes) | `1048576` | larger files are streamed, not cached |\n| `--explorer-spritesheet` | string | built-in | spritesheet for the folder explorer icons |\n| `--silent`, `--error`, `--info`, `--verbose`, `--debug` | boolean | - | log level, from `@papit/arguments` |\n\nOther flags are passed on to `@papit/build` when `--live` rebuilds a package.\n\n# What it serves\n\nA GET request is answered by the first of these that matches. Other methods get `405`, and a path that matches nothing currently gets `500`.\n\n1. **Translations**: JSON files in a folder whose name starts with `transl`, `locale` or `i18`, merged per language across the workspace.\n2. **Assets**: files in asset folders of the served package, its workspace dependencies and the server itself, reachable by any trailing part of their path, so `/icons/x.svg` finds `asset/icons/x.svg`. A package's asset wins over the server's default of the same name.\n3. **Themes**: a URL containing the name of a `theme` package serves that theme's built file.\n4. **Files**: an absolute path inside the workspace that exists on disk, else the path resolved against the current folder, the package, then the workspace root. A path that resolves outside the workspace root (e.g. through `../`) gets `403`, before anything is read.\n5. **Folders**: `index.html` if present, otherwise a file explorer page.\n6. **HTML**: merged into the server's page template, which adds the import map and the live reload client. A request with an `x-router` header gets the raw file instead.\n7. **TypeScript**: a `.ts` file requested as a script is bundled in memory with `@papit/bundle-js`.\n\nResponses carry `X-Cache: HIT` or `MISS`. `/favicon.ico` falls back to the server's `favicon.svg`.\n\n# Import resolution\n\nAt startup the server walks the workspace graph from `@papit/information` and builds one import map:\n\n- every workspace package maps its package.json `exports` (import condition) and `main` to the file on disk\n- third-party `dependencies` and `devDependencies` are added the same way from the root `node_modules`, except the build tools (`esbuild`, `typescript`, `chokidar`, `@microsoft/api-extractor`, `playwright`)\n- the first mapping for a name wins, and an import map already in the page is merged in, not replaced\n\nSo `import \"@papit/switch\"` in a demo page loads the built `lib/bundle.js` of the workspace package, without a publish or install.\n\n# Live reload\n\nWith `--live`, file changes in the workspace (outside `node_modules`, `lib`, `.temp`, `.git` and test folders) are handled per package:\n\n- a change inside the package's source folder rebuilds that package with `@papit/build`, then reloads the pages\n- any other change reloads the pages straight away\n\nThe pages reloaded are those of the changed package and of every package that depends on it.\n\nPages register over a WebSocket on the same port.\n\n# License\n\nLicensed under the **@Papit License 1.0**\nCopyright (c) 2024 Henry Pap (@onkelhoy)\n\n**Key points**\n\n- ✅ Free to use in commercial projects\n- ✅ Free to modify and distribute\n- ✅ Attribution required\n- ❌ Cannot resell the component itself as a standalone product\n\nSee the [LICENSE](https://github.com/onkelhoy/papit/blob/main/LICENSE) file for full details.\n\n# Related\n\n- [@papit/build](https://github.com/onkelhoy/papit/tree/main/packages/runtime/cli/build) - rebuilds packages on change\n- [@papit/bundle-js](https://github.com/onkelhoy/papit/tree/main/packages/runtime/cli/bundle-js) - bundles TypeScript requested by the page\n- [@papit/information](https://github.com/onkelhoy/papit/tree/main/packages/runtime/cli/information) - the workspace graph the import map is built from\n","readmeFilename":"README.md"}