Package Size Inline
A VS Code extension that shows package/module sizes (in kB/MB) inline next to dependencies in:
package.json (dependencies and devDependencies)
go.mod
For package.json, sizes are fetched from the npm Registry (unpackedSize). For file: dependencies, the size shown is the size of the package as installed in node_modules (built/minified output).
For go.mod, sizes are fetched from the Go module proxy archive size for each module version.
Example

Inline annotations (e.g. 5.6 MB, 81.6 kB) appear next to each package version.
Installation
From Open VSX Registry
ovsx install El1k-1.package-size-inline
From VS Code Marketplace
Search for "Package Size Inline" in VS Code Extensions marketplace.
Manual Installation
- Download the
.vsix file from Releases
- In VS Code: Extensions → ... → Install from VSIX
How to use
- Install the extension (or run from folder via Run and Debug).
- Open
package.json or go.mod.
- Each dependency/module line will show a label like
12.5 kB to the right (or — if the size could not be determined).
Settings
- packageSizeInline.enabled — Turn inline size display on or off.
Development
cd package-size-inline
npm install
npm run compile
In VS Code: Run and Debug → Run Extension. A new window opens with the extension loaded; open package.json or go.mod there.
Packaging .vsix
npm install -g @vscode/vsce
vsce package
Then: Extensions → ... → Install from VSIX and select the .vsix file.
License
MIT — see LICENSE.