{"_id":"@caffeinebounce/logger","name":"@caffeinebounce/logger","dist-tags":{"latest":"0.10.0"},"versions":{"0.10.0":{"name":"@caffeinebounce/logger","version":"0.10.0","type":"module","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.mjs","require":"./dist/client.js"}},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"repository":{"type":"git","url":"git+https://github.com/caffeinebounce/shared-packages.git","directory":"packages/logger"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"yarn run -T vitest run","test:watch":"yarn run -T vitest","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit","clean":"rm -rf dist","lint":"biome check src/"},"peerDependencies":{"next":">=14.0","react":">=18.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"react":{"optional":true}},"devDependencies":{"next":"^16.2.6","react":"^19.2.4","react-dom":"^19.2.4","tsup":"^8.5.1","typescript":"^5.9.3"},"dependencies":{"@logtail/next":"^0.2.1"},"license":"MIT","gitHead":"5dfd175bac29e205d94e90538793c926e80b97b1","_id":"@caffeinebounce/logger@0.10.0","description":"Shared structured logging utilities for server and client code, including Better Stack integration surfaces.","bugs":{"url":"https://github.com/caffeinebounce/shared-packages/issues"},"homepage":"https://github.com/caffeinebounce/shared-packages#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-zyQOZnJFRSvw3HH2gC7RCbymC+/ZRbWExx5QMNGzXwcjnmrbXELWGetpfQRsDR7gCwn7l7Xm/kRPEOoy7Oaqww==","shasum":"b71dec5f2d8bfcf76f835844dc396f58f5b9c0a7","tarball":"https://registry.npmjs.org/@caffeinebounce/logger/-/logger-0.10.0.tgz","fileCount":13,"unpackedSize":140018,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCeLyBZwUVzu0+4jFzlyEWLpJ0fFgwrAr1set3KMPCF7wIhANV8oyVEQEhLvLMq8hF0sVmyyYTSBIAruhKyGf1cU3fL"}]},"_npmUser":{"name":"caffienebounce","email":"doug@douglasebanks.com"},"directories":{},"maintainers":[{"name":"caffienebounce","email":"doug@douglasebanks.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logger_0.10.0_1782941934563_0.8743445033975126"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T21:38:54.345Z","0.10.0":"2026-07-01T21:38:54.703Z","modified":"2026-07-01T21:38:54.927Z"},"maintainers":[{"name":"caffienebounce","email":"doug@douglasebanks.com"}],"description":"Shared structured logging utilities for server and client code, including Better Stack integration surfaces.","homepage":"https://github.com/caffeinebounce/shared-packages#readme","repository":{"type":"git","url":"git+https://github.com/caffeinebounce/shared-packages.git","directory":"packages/logger"},"bugs":{"url":"https://github.com/caffeinebounce/shared-packages/issues"},"license":"MIT","readme":"# @caffeinebounce/logger\n\nShared structured logging utilities for server and client code, including Better\nStack integration surfaces.\n\n## Public Entrypoints\n\n- `@caffeinebounce/logger` exports shared loggers, API error wrappers,\n  auth-specific logging helpers, environment detection, and React error logging\n  hooks.\n- `@caffeinebounce/logger/client` exports client-safe logging helpers.\n\n## Belongs Here\n\n- Generic structured logging, error context extraction, correlation IDs, API\n  wrappers, auth logging helpers, and safe client hooks.\n\n## Does Not Belong Here\n\n- App-specific event taxonomy that only one app understands, secrets, raw PII,\n  auth cookies, request bodies, or noisy logs for expected validation failures.\n\n## Focused Commands\n\n```bash\ncorepack yarn turbo run lint typecheck test build --filter=@caffeinebounce/logger\n```\n\n## Gotchas\n\n- Keep metadata useful but safe.\n- Do not pass raw email addresses into log context; use account-domain metadata\n  such as `accountDomain` or `targetAccountDomain` when the domain is useful.\n- Expected negative paths should return clear status codes without noisy error\n  logs.\n- Keep client-safe exports free of server-only dependencies.\n- Add a changeset for published behavior, source, manifest, or export changes.\n","readmeFilename":"README.md","_rev":"1-1eba85e2e3b0cce607d5e7d184a7d55f"}