{"_id":"@artale/pi-weigh","_rev":"5-40045d1448312ad4c3cd37d0d641ac40","name":"@artale/pi-weigh","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"@artale/pi-weigh","version":"1.0.0","keywords":["pi-package","pi-extension","tokens","context","observability","system-prompt","optimization"],"author":{"name":"artale"},"license":"MIT","_id":"@artale/pi-weigh@1.0.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-weigh#readme","bugs":{"url":"https://github.com/arosstale/pi-weigh/issues"},"dist":{"shasum":"2e068651845e8cb167affd2cccffef73ea2a8715","tarball":"https://registry.npmjs.org/@artale/pi-weigh/-/pi-weigh-1.0.0.tgz","fileCount":4,"integrity":"sha512-VdXOXxiV9YWf5B0m9sdUcFwO+okUnHXKAmvcEDEIgDGfxjEQfFQQsLhBUUpR2SENtySUOpIv5lfoff8j1a6PmQ==","signatures":[{"sig":"MEYCIQCqJo0XrdWvK79NIMTON6M5MrZCko/MhDQZpCVY0ZlkngIhAKzkMZo2jeEZi35k2nPnfX+5vFYTM9+UdEp4VABit5/S","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17419},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"extensions":["extensions/pi-weigh.ts"],"repository":{"url":"git+https://github.com/arosstale/pi-weigh.git","type":"git"},"_npmVersion":"10.9.4","description":"Weigh your context. Visual HTML report of system prompt token budget — per-tool breakdown, section analysis, health indicator. Zero dependencies.","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-weigh_1.0.0_1772981270537_0.43768298393367777","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@artale/pi-weigh","version":"1.1.0","keywords":["pi-package","pi-extension","tokens","context","observability","system-prompt","optimization"],"author":{"name":"artale"},"license":"MIT","_id":"@artale/pi-weigh@1.1.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-weigh#readme","bugs":{"url":"https://github.com/arosstale/pi-weigh/issues"},"dist":{"shasum":"f7e862f4cda9c613926b70e02294f167f0c30d83","tarball":"https://registry.npmjs.org/@artale/pi-weigh/-/pi-weigh-1.1.0.tgz","fileCount":4,"integrity":"sha512-Ai97xkCkHI6Y+TLmaAzR4y5BqY85GFTmn9eBQtpCQIuvpPm3ktUQHog+zA5QaoNM/tF1hhk1WmomwzIupq1SAA==","signatures":[{"sig":"MEYCIQDp120pYUqtVHxqqkmwPls/oYKQCcRKUFjQuUlndN75XwIhAIA3TuSfc83LGiLCNLJM3OAZi9YPvqDb5WzHX/3CU1zL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22038},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"extensions":["extensions/pi-weigh.ts"],"repository":{"url":"git+https://github.com/arosstale/pi-weigh.git","type":"git"},"_npmVersion":"10.9.4","description":"Weigh your context. Visual HTML report of system prompt token budget — per-tool breakdown, section analysis, health indicator. Zero dependencies.","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-weigh_1.1.0_1772981805759_0.6706398102193902","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@artale/pi-weigh","version":"1.1.1","keywords":["pi-package","pi-extension","tokens","context","observability","system-prompt","optimization"],"author":{"name":"artale"},"license":"MIT","_id":"@artale/pi-weigh@1.1.1","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-weigh#readme","bugs":{"url":"https://github.com/arosstale/pi-weigh/issues"},"dist":{"shasum":"c13dbfd7977c2cf4f657e9acd10c8daad32110c3","tarball":"https://registry.npmjs.org/@artale/pi-weigh/-/pi-weigh-1.1.1.tgz","fileCount":4,"integrity":"sha512-3C/e2xwGyuisjd3+hLf8M5L3VZpov3CaqxcT1UTu9UvrpEjAnlOJTUquO10U19LD+i8m02UDCfP1NPYuxfCUdQ==","signatures":[{"sig":"MEYCIQC0JHrptHc5/15BwYffLmbLECspapKDjq4yrL9GppIVvQIhAIXws5jeIII432eJbt3H0hEwPVlCoMeSbdiaAjd6sdwh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21275},"gitHead":"bd5eae046cf40bbf478a04914dfd3755bb835c91","_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"extensions":["extensions/pi-weigh.ts"],"repository":{"url":"git+https://github.com/arosstale/pi-weigh.git","type":"git"},"_npmVersion":"10.9.4","description":"Weigh your context. Visual HTML report of system prompt token budget — per-tool breakdown, section analysis, health indicator. Zero dependencies.","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-weigh_1.1.1_1772982793616_0.6634976402973933","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@artale/pi-weigh","version":"1.2.0","keywords":["pi-package","pi-extension","tokens","context","observability","system-prompt","optimization"],"author":{"name":"artale"},"license":"MIT","_id":"@artale/pi-weigh@1.2.0","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"homepage":"https://github.com/arosstale/pi-weigh#readme","bugs":{"url":"https://github.com/arosstale/pi-weigh/issues"},"dist":{"shasum":"bd0fb06ef1fc0e2089b1b3058bf4e06bbeccba08","tarball":"https://registry.npmjs.org/@artale/pi-weigh/-/pi-weigh-1.2.0.tgz","fileCount":4,"integrity":"sha512-Bie2CwPHiz5gBqvYJUzYHe+oNRpAwNmPdZAF3M0nvXhp7eSRLDNtlyHNfrxBFwA4QzWxCZbZ1nmsxni5eK3DHQ==","signatures":[{"sig":"MEUCIQDBsVabbcmVfB81lc5f9NO2hQNfD85wfXCaV3X1vB3KpQIgOia3EC/GGIvTQzgsH0mh3ttqb+9YarXUOHyrT7MvOPk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23159},"gitHead":"003616a9dc78c86bf2e8bdfb74dee76c3c480606","_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"extensions":["extensions/pi-weigh.ts"],"repository":{"url":"git+https://github.com/arosstale/pi-weigh.git","type":"git"},"_npmVersion":"10.9.4","description":"Weigh your context. Visual HTML report of system prompt token budget — per-tool breakdown, section analysis, health indicator. Zero dependencies.","directories":{},"_nodeVersion":"22.22.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-weigh_1.2.0_1773005263094_0.062262402355309554","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@artale/pi-weigh","version":"1.2.2","description":"Weigh your context. Visual HTML report of system prompt token budget — per-tool breakdown, section analysis, health indicator. Zero dependencies.","keywords":["pi-package","pi-extension","tokens","context","observability","system-prompt","optimization"],"license":"MIT","author":{"name":"artale"},"repository":{"type":"git","url":"git+https://github.com/artale93/pi-weigh.git"},"extensions":["extensions/pi-weigh.ts"],"gitHead":"e6163875117a8311e7e0990ef3e9b6e7b2f309bb","_id":"@artale/pi-weigh@1.2.2","bugs":{"url":"https://github.com/artale93/pi-weigh/issues"},"homepage":"https://github.com/artale93/pi-weigh#readme","_nodeVersion":"22.22.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-FlGELrE6A7hzGl7i7a461gXcWjalqds55cvi/jAjFxNNi3W08VRc7Kvg++Loa0kOdBZM6HhO/2v99zyqHnjBzw==","shasum":"c59471ffb026af4935ac709bbd8ff103c2b60a6e","tarball":"https://registry.npmjs.org/@artale/pi-weigh/-/pi-weigh-1.2.2.tgz","fileCount":4,"unpackedSize":23158,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHzSBCYar5ze5tX9gQmedBIlv7ngztrIYXFz6xQ8xI0bAiEAs/RNMbglKAyoZ39WpUQtKmO0XklcjDWTgfJz96BV/g4="}]},"_npmUser":{"name":"artale","email":"arosstale1@gmail.com"},"directories":{},"maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-weigh_1.2.2_1776776885439_0.6379609307336769"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-08T14:47:50.488Z","modified":"2026-04-21T13:08:05.703Z","1.0.0":"2026-03-08T14:47:50.697Z","1.1.0":"2026-03-08T14:56:45.895Z","1.1.1":"2026-03-08T15:13:13.779Z","1.2.0":"2026-03-08T21:27:43.247Z","1.2.2":"2026-04-21T13:08:05.585Z"},"bugs":{"url":"https://github.com/artale93/pi-weigh/issues"},"author":{"name":"artale"},"license":"MIT","homepage":"https://github.com/artale93/pi-weigh#readme","keywords":["pi-package","pi-extension","tokens","context","observability","system-prompt","optimization"],"repository":{"type":"git","url":"git+https://github.com/artale93/pi-weigh.git"},"description":"Weigh your context. Visual HTML report of system prompt token budget — per-tool breakdown, section analysis, health indicator. Zero dependencies.","maintainers":[{"name":"artale","email":"arosstale1@gmail.com"}],"readme":"# @artale/pi-weigh\n\nToken burden analysis for pi. See exactly what's consuming your context window.\n\nReplaces the broken `pi-token-burden` package (protobufjs crash on Windows).\n\n## Install\n```bash\nnpm install -g @artale/pi-weigh\n```\n\n## Features (v1.1)\n- **System prompt breakdown** — Core instructions, tool descriptions, project context, skill catalog\n- **Per-tool token cost** — Every tool ranked by weight with source attribution\n- **Per-skill token cost** — Skill catalog entries ranked by size\n- **Deactivation candidates** — Tools >200 tokens that could be disabled, with savings estimate\n- **History tracking** — Token burden snapshots over time with trend indicators\n- **HTML report** — Auto-opens detailed visual report in browser\n- **Machine-readable** — `weigh` tool returns structured JSON for agents\n\n## Tools\n- **weigh** — Get token burden breakdown (JSON)\n\n## Commands\n- `/weigh` — Generate HTML report + terminal summary\n","readmeFilename":"README.md"}