{"_id":"@baldim/plugin-kubernetes-inventory","name":"@baldim/plugin-kubernetes-inventory","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@baldim/plugin-kubernetes-inventory","version":"0.1.0","type":"module","description":"Kubernetes resource discovery, snapshots, version history, diffs, and scheduled inventory for Baldim.","license":"MIT","engines":{"node":">=24"},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/forattini-dev/baldim.git","directory":"plugins/kubernetes-inventory"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"@kubernetes/client-node":"^1.0.0","json-stable-stringify":"^1.3.0","lodash-es":"^4.18.1","node-cron":"^4.0.0"},"peerDependencies":{"@baldim/core":"^0.2.0"},"devDependencies":{"@types/lodash-es":"^4.17.12","@types/node":"25.5.2","typescript":"6.0.2","@baldim/adapter-memory":"0.1.0","@baldim/core":"0.2.0"},"scripts":{"build":"node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.contract.json --noEmit","test":"vitest run"},"_id":"@baldim/plugin-kubernetes-inventory@0.1.0","bugs":{"url":"https://github.com/forattini-dev/baldim/issues"},"homepage":"https://github.com/forattini-dev/baldim#readme","_integrity":"sha512-FaaPiRnJTvwfflrDcGh1+CY++aXYOREcUesVr/G4swo8Priqr0uKwNu1j0kUMq/LeZYIJrQ5sSGexSUoZT+XoA==","_resolved":"/tmp/c97de34a931646b270f1e10d8597eb0b/baldim-plugin-kubernetes-inventory-0.1.0.tgz","_from":"file:baldim-plugin-kubernetes-inventory-0.1.0.tgz","_nodeVersion":"24.20.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-FaaPiRnJTvwfflrDcGh1+CY++aXYOREcUesVr/G4swo8Priqr0uKwNu1j0kUMq/LeZYIJrQ5sSGexSUoZT+XoA==","shasum":"7e580ea86d14902b9e5b7f68db55976e440b4d2b","tarball":"https://registry.npmjs.org/@baldim/plugin-kubernetes-inventory/-/plugin-kubernetes-inventory-0.1.0.tgz","fileCount":15,"unpackedSize":159080,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID22NqVyI5ky78n73kPYV4pUcOm2RRsAXfL8PmohTz4vAiEA2dwZB4NLnXqvM9nh1rHqprPmR+QG2YI38z+cnbWyugw="}]},"_npmUser":{"name":"fforattini","email":"filipeforattini1@gmail.com"},"directories":{},"maintainers":[{"name":"fforattini","email":"filipeforattini1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-kubernetes-inventory_0.1.0_1788985560594_0.6998345920789262"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-09T20:26:00.410Z","0.1.0":"2026-09-09T20:26:00.736Z","modified":"2026-09-09T20:26:00.992Z"},"maintainers":[{"name":"fforattini","email":"filipeforattini1@gmail.com"}],"description":"Kubernetes resource discovery, snapshots, version history, diffs, and scheduled inventory for Baldim.","homepage":"https://github.com/forattini-dev/baldim#readme","repository":{"type":"git","url":"git+https://github.com/forattini-dev/baldim.git","directory":"plugins/kubernetes-inventory"},"bugs":{"url":"https://github.com/forattini-dev/baldim/issues"},"license":"MIT","readme":"# @baldim/plugin-kubernetes-inventory\n\nKubernetes inventory for Baldim. The plugin discovers resources from one or more clusters and stores current snapshots, immutable versions, configuration diffs, and per-cluster sync state.\n\n```ts\nimport { Baldim } from '@baldim/core';\nimport { KubernetesInventoryPlugin } from '@baldim/plugin-kubernetes-inventory';\n\nconst db = new Baldim({ connectionString: 'memory://inventory' });\nawait db.connect();\n\nconst inventory = new KubernetesInventoryPlugin({\n  clusters: [{ id: 'production', context: 'production' }],\n  discovery: { runOnInstall: true },\n  scheduled: { enabled: true, cron: '0 */6 * * *', timezone: 'UTC' },\n});\n\nawait db.usePlugin(inventory, 'k8s');\nconst snapshots = await inventory.getSnapshots({ clusterId: 'production' });\n```\n\nThe package owns `@kubernetes/client-node`, `node-cron`, and its data-processing dependencies. It only requires `@baldim/core` as a peer.\n\n## License\n\nMIT.\n","readmeFilename":"README.md","_rev":"1-2864d69fa269f62de64b4185f8933c1b"}