Simple tool to calculate the size of a NPM package. It installs the package in a Docker container so any malicious packages won't affect your system.
You can find the built binaries here.
:warning:
package-size-calculatorrequires having a Docker daemon running.
package-size-calculator
The following additional flags are available:
--short : Print a shorter version of the package report, ideal for posts to Twitter
--no-cleanup : Don't remove the temporary directory after the calculation
--npm-cache <DIRECTORY>: Use the specified directory as the NPM cache, defaults to generating a temporary directory
--npm-cache-read-write : Mount the NPM cache directory as read-write, defaults to true, only honored if --npm-cache is specified
Package size calculator is licensed under the MIT License. See LICENSE for the full license text.
$ claude mcp add package-size-calculator \
-- python -m otcore.mcp_server <graph>