npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cadcrawl/cad-toolbox

v0.3.0

Published

NPX CLI for inspecting and rendering STEP, STL, 3MF, and PDF CAD assets.

Readme

@cadcrawl/cad-toolbox

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.

Supported inputs:

.step .stp .stl .3mf .pdf

Run

npx @cadcrawl/cad-toolbox inspect .\part.step --fields metadata,renders --view iso-front --output-dir .\.tmp\cad-toolbox

Skill

Install the agent skill:

npx skills add cadcrawl/cad-toolbox

Commands

cad-toolbox info <file>
cad-toolbox render <file>
cad-toolbox inspect <file>
cad-toolbox batch <dir-or-json>

Commands 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.

Each 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.

Fields

metadata,tree,text,renders,all

metadata is the single container for engineering facts:

{
  "modified_at_iso": "2026-02-09T16:20:01.750Z",
  "bounding_box": {
    "min": [0, 0, 0],
    "max": [100, 30, 0.6],
    "size": [100, 30, 0.6]
  },
  "geometry": { "mesh_count": 1, "vertex_count": 36, "triangle_count": 12 }
}

CAD 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.

Examples

npx @cadcrawl/cad-toolbox info part.step --fields metadata
npx @cadcrawl/cad-toolbox inspect part.step --fields metadata,tree,renders --view iso-front --output-dir renders
npx @cadcrawl/cad-toolbox render part.step --views front,top,right --output-dir renders
npx @cadcrawl/cad-toolbox render part.step --view custom --camera 1,2,3 --width 1600 --height 1200 --output part.png
npx @cadcrawl/cad-toolbox inspect drawing.pdf --fields metadata,text,renders --page 1 --output-dir renders
npx @cadcrawl/cad-toolbox inspect drawing.pdf --fields metadata,text --full-text
npx @cadcrawl/cad-toolbox batch .\archive --fields metadata

PDF rendering is page-based. CAD projection parameters do not apply to PDFs.

License

PolyForm Noncommercial License 1.0.0.