{"_id":"@loglayer/hono","_rev":"6-5b0f1ff7522f0cd66d5480d4835c2758","name":"@loglayer/hono","dist-tags":{"latest":"2.4.0"},"versions":{"1.0.0":{"name":"@loglayer/hono","version":"1.0.0","keywords":["logging","log","loglayer","hono","integration","middleware"],"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"license":"MIT","_id":"@loglayer/hono@1.0.0","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://loglayer.dev","bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"dist":{"shasum":"66daee84b9240ab2778d3e8b23b53361aa0f17a1","tarball":"https://registry.npmjs.org/@loglayer/hono/-/hono-1.0.0.tgz","fileCount":3,"integrity":"sha512-1xBjDST5yZWk+xX1iC7qGmBuXnW31NgoL+Cl2HDDDTwHOtU9uvhzWN3kW1R1wr2PrBdAQIM4OoVd9e17p0xNdA==","signatures":[{"sig":"MEUCIFvFpHuAAR1JNhXI9IrUk7/rJuCukpnWzOcPbrJpPCkkAiEAllBp/zjAqcHrWiBaFHwMZktzL2A/9phUszwkQv2OH7Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4109},"main":"./dist/index.cjs","type":"module","_from":"file:loglayer-hono-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --no-errors-on-unmatched --write --unsafe src","test":"vitest --run","build":"tsdown src/index.ts","clean":"rm -rf .turbo node_modules dist","livetest":"tsx src/__tests__/livetest.ts","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"_resolved":"/tmp/4a7061997d8e4bcdfde5ba86d6024064/loglayer-hono-1.0.0.tgz","_integrity":"sha512-1xBjDST5yZWk+xX1iC7qGmBuXnW31NgoL+Cl2HDDDTwHOtU9uvhzWN3kW1R1wr2PrBdAQIM4OoVd9e17p0xNdA==","repository":{"url":"git+https://github.com/loglayer/loglayer.git","type":"git","directory":"packages/integrations/hono"},"_npmVersion":"10.8.2","description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","hono":">=4.0.0","tsdown":"0.20.1","vitest":"4.0.18","loglayer":"8.5.0","typescript":"5.9.3","@types/node":"25.2.0","serialize-error":"13.0.1","@hono/node-server":"^1.14.0","@internal/tsconfig":"2.1.0","@loglayer/transport-simple-pretty-terminal":"2.3.1"},"peerDependencies":{"hono":">=4.0.0","loglayer":"*"},"_npmOperationalInternal":{"tmp":"tmp/hono_1.0.0_1770946820217_0.019904423190641785","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@loglayer/hono","version":"2.0.0","keywords":["logging","log","loglayer","hono","integration","middleware"],"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"license":"MIT","_id":"@loglayer/hono@2.0.0","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://loglayer.dev","bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"dist":{"shasum":"787f38bcd1c4449e9cfa7b87fa57375ccf447be5","tarball":"https://registry.npmjs.org/@loglayer/hono/-/hono-2.0.0.tgz","fileCount":9,"integrity":"sha512-pswXEJvv3ogTfU0HA8kfPC4lIg8L2YwFsSRTNdbp/NfvdZYLZxie1x/90/rKjL+GJOVRUKHPNFLcsX2uixGmow==","signatures":[{"sig":"MEYCIQDCaCMqyJEW8SF+mEozFKQoZc6mW/gdRpKz6H2NQlPmRgIhAMVaHXRvxuf1fhLMsBcFQOqewRScjvXTLzNTYBDmBbvt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33462},"main":"./dist/index.cjs","type":"module","_from":"file:loglayer-hono-2.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --no-errors-on-unmatched --write --unsafe src","test":"vitest --run","build":"tsdown src/index.ts","clean":"rm -rf .turbo node_modules dist","livetest":"tsx src/__tests__/livetest.ts","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"_resolved":"/tmp/3d4cd45aa699bac2568bb090bdaf26a0/loglayer-hono-2.0.0.tgz","_integrity":"sha512-pswXEJvv3ogTfU0HA8kfPC4lIg8L2YwFsSRTNdbp/NfvdZYLZxie1x/90/rKjL+GJOVRUKHPNFLcsX2uixGmow==","repository":{"url":"git+https://github.com/loglayer/loglayer.git","type":"git","directory":"packages/integrations/hono"},"_npmVersion":"10.8.2","description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","hono":">=4.0.0","tsdown":"0.20.1","vitest":"4.0.18","loglayer":"9.0.0","typescript":"5.9.3","@types/node":"25.2.0","serialize-error":"13.0.1","@hono/node-server":"^1.14.0","@internal/tsconfig":"2.1.0","@loglayer/transport-simple-pretty-terminal":"3.0.0"},"peerDependencies":{"hono":">=4.0.0","loglayer":"*"},"_npmOperationalInternal":{"tmp":"tmp/hono_2.0.0_1770970208435_0.9461897495705494","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@loglayer/hono","version":"2.1.0","keywords":["logging","log","loglayer","hono","integration","middleware"],"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"license":"MIT","_id":"@loglayer/hono@2.1.0","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://loglayer.dev","bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"dist":{"shasum":"44b107149268a762fbf6099417ce882b31f82b26","tarball":"https://registry.npmjs.org/@loglayer/hono/-/hono-2.1.0.tgz","fileCount":9,"integrity":"sha512-fioxb/2K7Lnl4+FUcLEoVA8GtpA4eeuFP0bsweI6aqeJHK10ZsB/g6kxn2NIDjjAfHsLhIvBAIdue5dpdO1L6A==","signatures":[{"sig":"MEYCIQCqHhifLifYB2njkx6VDhCN8lzZtZ4ZMrf/5A0zZ73k7AIhAIBtctl31yZX+TnGdj9D0Clwx6t2UJ1A/OhD3mbX/sDC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38442},"main":"./dist/index.cjs","type":"module","_from":"file:loglayer-hono-2.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --no-errors-on-unmatched --write --unsafe src","test":"vitest --run","build":"tsdown src/index.ts","clean":"rm -rf .turbo node_modules dist","livetest":"tsx src/__tests__/livetest.ts","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"_resolved":"/tmp/0c3fbd631dcc144be83be179021b268d/loglayer-hono-2.1.0.tgz","_integrity":"sha512-fioxb/2K7Lnl4+FUcLEoVA8GtpA4eeuFP0bsweI6aqeJHK10ZsB/g6kxn2NIDjjAfHsLhIvBAIdue5dpdO1L6A==","repository":{"url":"git+https://github.com/loglayer/loglayer.git","type":"git","directory":"packages/integrations/hono"},"_npmVersion":"10.8.2","description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","hono":">=4.0.0","tsdown":"0.20.3","vitest":"4.0.18","loglayer":"9.1.0","typescript":"5.9.3","@types/node":"25.2.3","serialize-error":"13.0.1","@hono/node-server":"^1.14.0","@internal/tsconfig":"2.1.0","@loglayer/transport-simple-pretty-terminal":"3.0.2"},"peerDependencies":{"hono":">=4.0.0","loglayer":"*"},"_npmOperationalInternal":{"tmp":"tmp/hono_2.1.0_1771036006052_0.8058342073906093","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@loglayer/hono","version":"2.2.0","keywords":["logging","log","loglayer","hono","integration","middleware"],"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"license":"MIT","_id":"@loglayer/hono@2.2.0","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://loglayer.dev","bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"dist":{"shasum":"4321ee55c6ee45c28f0d57d224a221cbb4569567","tarball":"https://registry.npmjs.org/@loglayer/hono/-/hono-2.2.0.tgz","fileCount":9,"integrity":"sha512-2CKSBCDHrF4XsIbC8PUEbtjqfHWlKc6V/5EhV33lBT5TKOcwSEVfkFm36Koi5Hiw5IusARcaodqw15UxStUKKA==","signatures":[{"sig":"MEUCIH2P29Nl+UMPmIlIPY0NrBZY+EbhDI/8AhDBSFiqiWgSAiEAxeiTJjawTl0lJdKqaqB/4CbYI08+fWiUHgGatFzWeqc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@loglayer%2fhono@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38479},"main":"./dist/index.cjs","type":"module","_from":"file:loglayer-hono-2.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --no-errors-on-unmatched --write --unsafe src","test":"vitest --run","build":"tsdown src/index.ts","clean":"rm -rf .turbo node_modules dist","livetest":"tsx src/__tests__/livetest.ts","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d5e12736-7c79-48c2-b72c-6c640bb08f07"}},"_resolved":"/tmp/f9f580a0fefaaa3c8c145156d340d861/loglayer-hono-2.2.0.tgz","_integrity":"sha512-2CKSBCDHrF4XsIbC8PUEbtjqfHWlKc6V/5EhV33lBT5TKOcwSEVfkFm36Koi5Hiw5IusARcaodqw15UxStUKKA==","repository":{"url":"git+https://github.com/loglayer/loglayer.git","type":"git","directory":"packages/integrations/hono"},"_npmVersion":"11.12.1","description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","hono":">=4.0.0","tsdown":"0.20.3","vitest":"4.0.18","loglayer":"9.2.0","typescript":"5.9.3","@types/node":"25.2.3","serialize-error":"13.0.1","@hono/node-server":"^1.14.0","@internal/tsconfig":"2.1.0","@loglayer/transport-simple-pretty-terminal":"3.1.0"},"peerDependencies":{"hono":">=4.0.0","loglayer":"*"},"_npmOperationalInternal":{"tmp":"tmp/hono_2.2.0_1779772331391_0.6649568937704267","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@loglayer/hono","version":"2.3.0","keywords":["logging","log","loglayer","hono","integration","middleware"],"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"license":"MIT","_id":"@loglayer/hono@2.3.0","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://loglayer.dev","bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"dist":{"shasum":"1b20793b0a6b7c850b1b8a4bee8693e3e8572d2d","tarball":"https://registry.npmjs.org/@loglayer/hono/-/hono-2.3.0.tgz","fileCount":9,"integrity":"sha512-OFDZU3dfQ7RbVln4MtRMiiNp3m706LfebV3WLV1iX7FVoHK2OvvP93J/REwZWMWBlkCvVDd41dpgyf/BVPyswA==","signatures":[{"sig":"MEUCIQChFuUz+b1I7vpU0cLjKynT4N2iC6AdSHzRAMbH9BuTSAIgOdxKp1hTsotxXilg9wmPG0WAxVeSxC1P4hGoroli0sU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@loglayer%2fhono@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38551},"main":"./dist/index.cjs","type":"module","_from":"file:loglayer-hono-2.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --no-errors-on-unmatched --write --unsafe src","test":"vitest --run","build":"tsdown src/index.ts","clean":"rm -rf .turbo node_modules dist","livetest":"tsx src/__tests__/livetest.ts","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d5e12736-7c79-48c2-b72c-6c640bb08f07"}},"_resolved":"/tmp/4b20e22b58a42f8cd6ffc7001c4564bb/loglayer-hono-2.3.0.tgz","_integrity":"sha512-OFDZU3dfQ7RbVln4MtRMiiNp3m706LfebV3WLV1iX7FVoHK2OvvP93J/REwZWMWBlkCvVDd41dpgyf/BVPyswA==","repository":{"url":"git+https://github.com/loglayer/loglayer.git","type":"git","directory":"packages/integrations/hono"},"_npmVersion":"11.13.0","description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"tsx":"4.22.3","hono":">=4.0.0","tsdown":"0.22.1","vitest":"4.1.7","loglayer":"9.3.0","typescript":"6.0.3","@types/node":"25.9.1","serialize-error":"13.0.1","@hono/node-server":"^1.14.0","@internal/tsconfig":"2.1.0","@loglayer/transport-simple-pretty-terminal":"3.2.0"},"peerDependencies":{"hono":">=4.0.0","loglayer":"*"},"_npmOperationalInternal":{"tmp":"tmp/hono_2.3.0_1780127602262_0.10742648603262173","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@loglayer/hono","description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","version":"2.4.0","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"types":"./dist/index.d.ts","sideEffects":false,"license":"MIT","repository":{"type":"git","url":"git+https://github.com/loglayer/loglayer.git","directory":"packages/integrations/hono"},"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"keywords":["logging","log","loglayer","hono","integration","middleware"],"devDependencies":{"@hono/node-server":"^1.14.0","@types/node":"25.9.1","hono":">=4.0.0","serialize-error":"13.0.1","tsdown":"0.22.1","tsx":"4.22.3","typescript":"6.0.3","vitest":"4.1.7","@internal/tsconfig":"2.1.0","@loglayer/transport-simple-pretty-terminal":"3.3.0","loglayer":"9.4.0"},"peerDependencies":{"hono":">=4.0.0","loglayer":"*"},"bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"engines":{"node":">=20"},"homepage":"https://loglayer.dev","scripts":{"build":"tsdown src/index.ts","test":"vitest --run","livetest":"tsx src/__tests__/livetest.ts","clean":"rm -rf .turbo node_modules dist","lint":"biome check --no-errors-on-unmatched --write --unsafe src","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_id":"@loglayer/hono@2.4.0","_integrity":"sha512-KNegPce9WQS99ELd7NssCDnaqnz4VSyBBzD0ijO+AqD9LasdznSS1woMbWTwC9BF+IIDh1FDJgRjy+Da5rHjzA==","_resolved":"/tmp/2db794b770bfa7cad8f14dc93a73753a/loglayer-hono-2.4.0.tgz","_from":"file:loglayer-hono-2.4.0.tgz","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-KNegPce9WQS99ELd7NssCDnaqnz4VSyBBzD0ijO+AqD9LasdznSS1woMbWTwC9BF+IIDh1FDJgRjy+Da5rHjzA==","shasum":"c50cafe5c1c5409add3b8e31948d2854279245d6","tarball":"https://registry.npmjs.org/@loglayer/hono/-/hono-2.4.0.tgz","fileCount":9,"unpackedSize":38551,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@loglayer%2fhono@2.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB3fOB7wDp8WTjf6KFCXqQhqm/X2bsZ52T2UNQdZB6YXAiEAuhdfVno4ynnipSlJsH6d+jjJDfpbE9V2FHUcR8+tYEc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d5e12736-7c79-48c2-b72c-6c640bb08f07"}},"directories":{},"maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hono_2.4.0_1783973713023_0.9745856631702445"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-13T01:40:20.145Z","modified":"2026-07-13T20:15:13.493Z","1.0.0":"2026-02-13T01:40:20.408Z","2.0.0":"2026-02-13T08:10:08.573Z","2.1.0":"2026-02-14T02:26:46.220Z","2.2.0":"2026-05-26T05:12:11.599Z","2.3.0":"2026-05-30T07:53:22.405Z","2.4.0":"2026-07-13T20:15:13.191Z"},"bugs":{"url":"https://github.com/loglayer/loglayer/issues"},"author":{"name":"Theo Gravity","email":"theo@suteki.nu"},"license":"MIT","homepage":"https://loglayer.dev","keywords":["logging","log","loglayer","hono","integration","middleware"],"repository":{"type":"git","url":"git+https://github.com/loglayer/loglayer.git","directory":"packages/integrations/hono"},"description":"Hono integration for LogLayer with request-scoped logging, auto request logging, and error handling.","maintainers":[{"name":"theo.gravity","email":"theo@suteki.nu"}],"readme":"# Hono integration for LogLayer\n\n[![NPM Version](https://img.shields.io/npm/v/%40loglayer%2Fhono)](https://www.npmjs.com/package/@loglayer/hono)\n[![NPM Downloads](https://img.shields.io/npm/dm/%40loglayer%2Fhono)](https://www.npmjs.com/package/@loglayer/hono)\n[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)\n\nA [Hono](https://hono.dev) middleware for [LogLayer](https://loglayer.dev) that provides request-scoped logging with automatic request/response logging and error handling.\n\n## Installation\n\n```bash\nnpm install @loglayer/hono\n```\n\n## Usage\n\n```typescript\nimport { Hono } from \"hono\";\nimport { LogLayer, StructuredTransport } from \"loglayer\";\nimport { honoLogLayer, type HonoLogLayerVariables } from \"@loglayer/hono\";\n\nconst log = new LogLayer({\n  transport: new StructuredTransport({ logger: console }),\n});\n\nconst app = new Hono<{ Variables: HonoLogLayerVariables }>();\napp.use(honoLogLayer({ instance: log }));\n\napp.get(\"/\", (c) => {\n  c.var.logger.info(\"Hello!\");\n  return c.text(\"Hello World!\");\n});\n\nexport default app;\n```\n\n## Documentation\n\nFor more details, visit [https://loglayer.dev/integrations/hono](https://loglayer.dev/integrations/hono)\n","readmeFilename":"README.md"}