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

@spatialpack/cli

v0.1.0

Published

SpatialPack CLI — analyze, optimize, readiness, autocorrect, batch-autocorrect, ar-parity, visual-diff, recipe-search, USDZ for glTF/GLB. `npx @spatialpack/cli`.

Readme

@spatialpack/cli

Standards-first glTF / GLB / USDZ analyzer and optimizer. Drop a 3D model, get an honest before/after report. KTX2, WebP, AVIF, meshopt, Draco — the same pipeline you run in CI, on the command line. Every optimize records pre/post stats and a visual-diff regression gate; visual regressions are first-class failures, not warnings.

SpatialPack is post-production / pipeline tooling: it optimizes assets you already have. It does not generate models, replace your DCC tool, or host your files. Input and output are glTF / GLB or USD — no proprietary formats.

Install

npm i -g @spatialpack/cli
# or run without installing:
npx @spatialpack/cli --help

Most commands are pure compute and need nothing extra. The render-backed commands (visual-diff, bake-imposter, usdz-render, and --visual-diff-* gates) drive a headless Chromium via Playwright — install it once with:

npx playwright install chromium

Quickstart

spatialpack analyze model.glb                      # per-mesh / per-material / per-texture report (JSON)
spatialpack optimize model.glb -o out.glb -p web-mobile   # optimize against a preset
spatialpack readiness out.glb                      # commerce-readiness scorecard → ready|warnings|not-ready

Headline commands

| Command | What it does | | ------- | ------------ | | analyze <input> | Per-mesh, per-material, per-texture byte attribution for a .glb/.gltf. --out writes JSON, --html writes a report. | | optimize <input> -o <out> | Run the optimize pipeline (meshopt, KTX2/WebP/AVIF textures, animation dedup, optional decimation) against a --preset (web-mobile | web-desktop | quality-max). Records before/after stats per pass. --visual-diff-out <dir> adds a Playwright SSIM/ΔE94 regression gate; --auto-recipe autotunes the pass combination. | | recipe-search <input> -o <out> | Grid / beam search across optimization recipes, scoring the Pareto frontier of (bytes, visual fidelity). --winner-strategy smallest\|balanced\|perceptual-budget. Optional per-recipe visual-diff gate. | | visual-diff <a> <b> | Side-by-side model-viewer capture + MAE / SSIM / ΔE94 between two GLBs. Requires Playwright Chromium. | | readiness <input> | Commerce-readiness scorecard — conformance + AR Quick Look parity + geometry → ready | warnings | not-ready. Exits non-zero on not-ready. --usdz <path> adds AR structural + PBR-drift parity. | | autocorrect <input> | Repair an asset (prune floaters, resize/clean via preset) and re-score commerce readiness. batch-autocorrect does it catalog-wide with a roll-up of readiness transitions. | | export-usdz <input> -o <out> | Convert GLB → USDZ via the locally installed USD converter, with post-export structural validation. | | validate-usdz <input> | Structural validation of a .usdz — no USD converter required. --source <glb> adds PBR round-trip drift checks; --render-diff pixel-compares textures. | | conformance <input> | Asset Creation Guidelines 2.0 + USDZ round-trip conformance check. Exits 1 on FAIL. | | ar-parity <input> | AR Quick Look parity gate (structural + numeric, no render). Exits 1 on FAIL. | | budget <input> | Pass/fail budget check (preset file size + AR target sizes + extension compat). Pure JSON, exits 1 on fail. | | batch <inputs...> | Optimize many assets in one run. |

Run spatialpack --help for the complete surface, which also includes LOD / progressive-delivery bundles, Gaussian-splat compression (splat-*), texture dedup, GLB↔diff/patch, embedding-index + similar, MaterialX import/export, and USD usd-cat / usda-to-usdc / usd-compose.

CI usage

analyze, optimize, readiness, conformance, ar-parity, and budget emit stable JSON on stdout and set a non-zero exit code on failure, so they drop straight into a CI gate. The same code path powers the SpatialPack web analyzer and GitHub Action.

License

MIT. The underlying engine is @spatialpack/core (Functional Source License, FSL-1.1-ALv2). See LICENSE.