{"_id":"@cadcrawl/cad-toolbox","_rev":"3-f272e65534a783cd862868df13f73b64","name":"@cadcrawl/cad-toolbox","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@cadcrawl/cad-toolbox","version":"0.1.0","license":"PolyForm-Noncommercial-1.0.0","_id":"@cadcrawl/cad-toolbox@0.1.0","maintainers":[{"name":"artemikorotkov","email":"art22017@yandex.ru"}],"homepage":"https://cadcrawl.com","bin":{"cad-toolbox":"bin/cad-toolbox"},"dist":{"shasum":"669e3571f94849c097a5c17a559aa4900ae370fb","tarball":"https://registry.npmjs.org/@cadcrawl/cad-toolbox/-/cad-toolbox-0.1.0.tgz","fileCount":24,"integrity":"sha512-OO3APx969fRQdohZk+onnYCF4E9oLmP30/bnR175KO52EzTgdOHH+eT/JHlK8lfSsmfRDq1WbV/34HchWJ/RYw==","signatures":[{"sig":"MEUCIQD6Zm6dCcvoCeFISo4U1HFvBgsjApOgwX2bPP9zTINs0wIgAtid0Modx04jLKZWAV5LMlkWlJBiJhyeSJFv5PHSIEE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64661},"type":"module","engines":{"node":">=20"},"gitHead":"dc842ad89e50b85e60b933ffa0cd73ba7c3e36ca","scripts":{"test":"node --test"},"_npmUser":{"name":"artemikorotkov","email":"art22017@yandex.ru"},"_npmVersion":"11.10.1","description":"NPX CLI for inspecting and rendering STEP, STL, 3MF, and PDF CAD assets.","directories":{},"_nodeVersion":"24.15.0","dependencies":{"pngjs":"^7.0.0","three":"^0.180.0","linkedom":"^0.18.12","pdfjs-dist":"^5.4.394","occt-import-js":"^0.0.23","@napi-rs/canvas":"^0.1.80"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cad-toolbox_0.1.0_1782227521665_0.5516569800351079","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@cadcrawl/cad-toolbox","version":"0.2.0","license":"PolyForm-Noncommercial-1.0.0","_id":"@cadcrawl/cad-toolbox@0.2.0","maintainers":[{"name":"artemikorotkov","email":"art22017@yandex.ru"}],"homepage":"https://cadcrawl.com","bin":{"cad-toolbox":"bin/cad-toolbox"},"dist":{"shasum":"da91907ab5cd7fac8782bc558facfe7c0bd827ab","tarball":"https://registry.npmjs.org/@cadcrawl/cad-toolbox/-/cad-toolbox-0.2.0.tgz","fileCount":24,"integrity":"sha512-CfnE4pAv64QovIexIbk1Jr5aDcwlglNowMzOaPzOpDOM1jBggRh/vQ/cgwI0mQHcLA4V2nM5+Nadb+yfRmaQqw==","signatures":[{"sig":"MEYCIQDTZch673c+aObANuAWC+EhUewvsK+5bFxO6kZHtZZYqQIhAM0PcA7pINKJxuNrBHzyKFXHPjj2RHECNzQnIpIKo/ZK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64112},"type":"module","engines":{"node":">=20"},"gitHead":"76294622b591e5764e237d74ab184eced03f3d33","scripts":{"test":"node --test"},"_npmUser":{"name":"artemikorotkov","email":"art22017@yandex.ru"},"_npmVersion":"11.10.1","description":"NPX CLI for inspecting and rendering STEP, STL, 3MF, and PDF CAD assets.","directories":{},"_nodeVersion":"24.15.0","dependencies":{"pngjs":"^7.0.0","three":"^0.180.0","linkedom":"^0.18.12","pdfjs-dist":"^5.4.394","occt-import-js":"^0.0.23","@napi-rs/canvas":"^0.1.80"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cad-toolbox_0.2.0_1782237247229_0.200309881235317","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@cadcrawl/cad-toolbox","version":"0.3.0","description":"NPX CLI for inspecting and rendering STEP, STL, 3MF, and PDF CAD assets.","type":"module","license":"PolyForm-Noncommercial-1.0.0","homepage":"https://cadcrawl.com","bin":{"cad-toolbox":"bin/cad-toolbox"},"publishConfig":{"access":"public"},"scripts":{"test":"node --test"},"engines":{"node":">=20"},"dependencies":{"@napi-rs/canvas":"^0.1.80","linkedom":"^0.18.12","occt-import-js":"^0.0.23","pdfjs-dist":"^5.4.394","pngjs":"^7.0.0","three":"^0.180.0"},"gitHead":"bb984758492f1dd497fe96eb38ce1b9fccf740a0","_id":"@cadcrawl/cad-toolbox@0.3.0","_nodeVersion":"24.15.0","_npmVersion":"11.10.1","dist":{"integrity":"sha512-gTLzlNOAO86slF5E/90KnjJzQhAWWdjeQPzuO/UTfUe81jNKCYyFrhy3cCoZgaZm8qjE9BBiaYEF4jn7tWutDQ==","shasum":"ff79596afd695590bb8d9973f8f28bd19f5931d1","tarball":"https://registry.npmjs.org/@cadcrawl/cad-toolbox/-/cad-toolbox-0.3.0.tgz","fileCount":24,"unpackedSize":64033,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD1mzVdK0lp4P/TmlLlcSnkGPSGoxB7v97yiUuXqliXyAIgJw39zeWTGm3r7yM7j/53vFT9/4PiFlcnrCBbwJN3xUA="}]},"_npmUser":{"name":"artemikorotkov","email":"art22017@yandex.ru"},"directories":{},"maintainers":[{"name":"artemikorotkov","email":"art22017@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cad-toolbox_0.3.0_1782237561618_0.17450100851330563"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-23T15:12:01.438Z","modified":"2026-06-23T17:59:21.891Z","0.1.0":"2026-06-23T15:12:01.786Z","0.2.0":"2026-06-23T17:54:07.362Z","0.3.0":"2026-06-23T17:59:21.752Z"},"license":"PolyForm-Noncommercial-1.0.0","homepage":"https://cadcrawl.com","description":"NPX CLI for inspecting and rendering STEP, STL, 3MF, and PDF CAD assets.","maintainers":[{"name":"artemikorotkov","email":"art22017@yandex.ru"}],"readme":"# @cadcrawl/cad-toolbox\n\n`cad-toolbox` is an NPX CLI for inspecting and rendering local CAD and drawing files. It is meant for agents and scripts that need compact engineering metadata plus optional PNG previews.\n\nSupported inputs:\n\n```text\n.step .stp .stl .3mf .pdf\n```\n\n## Run\n\n```powershell\nnpx @cadcrawl/cad-toolbox inspect .\\part.step --fields metadata,renders --view iso-front --output-dir .\\.tmp\\cad-toolbox\n```\n\n## Skill\n\nInstall the agent skill:\n\n```powershell\nnpx skills add cadcrawl/cad-toolbox\n```\n\n## Commands\n\n```text\ncad-toolbox info <file>\ncad-toolbox render <file>\ncad-toolbox inspect <file>\ncad-toolbox batch <dir-or-json>\n```\n\nCommands write compact structured output to stdout. It is JSON-like, but STEP `tree` is printed as an ASCII block for readability. Rendered PNG files are reported in `renders`.\n\nEach PNG has a sibling `<render>.cad-toolbox.json` sidecar containing the source file hash and render parameters. Existing PNGs are reused only when that sidecar matches; if the source hash or render options change, the PNG is regenerated.\n\n## Fields\n\n```text\nmetadata,tree,text,renders,all\n```\n\n`metadata` is the single container for engineering facts:\n\n```json\n{\n  \"modified_at_iso\": \"2026-02-09T16:20:01.750Z\",\n  \"bounding_box\": {\n    \"min\": [0, 0, 0],\n    \"max\": [100, 30, 0.6],\n    \"size\": [100, 30, 0.6]\n  },\n  \"geometry\": { \"mesh_count\": 1, \"vertex_count\": 36, \"triangle_count\": 12 }\n}\n```\n\nCAD metadata includes modification time, bounding box, geometry counts, and materials/colors when present. PDF metadata includes modification time and page count. PDF text is capped at 200 characters unless `--full-text` is passed.\n\n## Examples\n\n```powershell\nnpx @cadcrawl/cad-toolbox info part.step --fields metadata\nnpx @cadcrawl/cad-toolbox inspect part.step --fields metadata,tree,renders --view iso-front --output-dir renders\nnpx @cadcrawl/cad-toolbox render part.step --views front,top,right --output-dir renders\nnpx @cadcrawl/cad-toolbox render part.step --view custom --camera 1,2,3 --width 1600 --height 1200 --output part.png\nnpx @cadcrawl/cad-toolbox inspect drawing.pdf --fields metadata,text,renders --page 1 --output-dir renders\nnpx @cadcrawl/cad-toolbox inspect drawing.pdf --fields metadata,text --full-text\nnpx @cadcrawl/cad-toolbox batch .\\archive --fields metadata\n```\n\nPDF rendering is page-based. CAD projection parameters do not apply to PDFs.\n\n## License\n\nPolyForm Noncommercial License 1.0.0.\n","readmeFilename":"README.md"}