size-report
Watches how much code and documentation a project carries, commit by commit. Every file is measured
as written (raw), minified (min) and in tokens for a language model (tok), so a person sees
where a project swells and an agent sees what a change weighs in its own context. It forbids nothing
and blocks nothing: it only shows.
The report is a single self-contained page — no server, no network — written where you name it, outside the repository too. A project needs no settings to start: with no config file the tool derives them from the project and says so in one line.
One canonical JavaScript engine (src/) ships in two registries from the same release tag:
- npm (
@vernikr/size-report) for JavaScript/TypeScript repositories (Node >= 20.19). - PyPI (
size-report) for Python-first (uv/pyproject.toml) repositories with zeropackage.jsonornode_modules/clutter in the consumer workspace.
Install
Python (uv / PyPI)
uv add --dev "size-report[tokens]" # or `uv add --dev size-report` without tiktoken
uvx size-report --help # one-off run without adding to the project
The Python package exposes size, size-report, and python -m size_report. It reuses a local
node >= 20.19 when present, or downloads, SHA-256-verifies, and caches the pinned standalone Node
runtime in the user's cache directory (never inside the repository). Installing the [tokens] extra
provides exact o200k_base / cl100k_base token counts via tiktoken.
JavaScript / Node (pnpm / npm)
pnpm add -D @vernikr/size-report # npm i -D / yarn add -D work too
Needs a git repository with history and Node ≥ 20.19.
Use
# Python-first (uv) — or substitute `pnpm exec size` in Node projects
uv run size # the sizes now (with "output" in settings: verify the stored report)
uv run size --write ../r.html # build the report there — any path; settings are derived if absent
uv run size --init # pin what was derived into pyproject.toml [tool.size-report] (or size-table.config.json)
uv run size check # did anything in the history go past the columns?
uv run size explain <commit> # why one commit has no row
uv run size diff --tree # how much the last commit moved the sizes, folder by folder
uv run size diff --worktree # the same for uncommitted changes
uv run size now --tree # the sizes now, where they live, the biggest first
uv run size log # the last 20 commits that changed the sizes, and by how much
uv run size doctor # all diagnostics in one answer
uv run size install-hook ../r.html # rebuild it there after every commit and merge (never commits)
For Python-first projects, templates/ci-python.yml provides the GitHub
Actions check and .pre-commit-hooks.yaml provides size-verify and
size-check hooks for pre-commit.
Where the rest is
docs/architecture.md— how the tool is built, dual distribution, the checks and the gate against bloat.docs/wiring.md— wiring it into npm or Python (uv) projects, migrating from syntheticpackage.json, settings, and the surface for an agent.docs/files.md— what is in this repository.AGENTS.md— how to work inside this repository.
License
MIT
Metadata
Release files for size-report 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| size_report-3.2.0.tar.gz | 159.6 kB | Without provenance | Details for size_report-3.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| size_report-3.2.0-py3-none-any.whl | Python 3 | none | any | Details for size_report-3.2.0-py3-none-any.whl |
Total release size: 350.6 kB
Release files / size_report-3.2.0.tar.gz
| Download URL | size_report-3.2.0.tar.gz |
|---|---|
| Size | 159.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3c2416329adc6efc5393174c74f3b5a938cf50291f5ebfe94a532cd82e3d313
|
|
BLAKE2b-256 checksum How to use checksums |
50a8ddcc71d9c30acc0160c3fac7d33a363665c5a892e9e91e98962cbab51c40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / size_report-3.2.0-py3-none-any.whl
| Download URL | size_report-3.2.0-py3-none-any.whl |
|---|---|
| Size | 191.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e987540417dbac9955b294aba0a04ab1eed1bc0b83f6834983385bf1904c0ea
|
|
BLAKE2b-256 checksum How to use checksums |
ea6c4c6b32748da95933ebe7accd0061ce3afcafd1acb8c6e6bb97b3e9aee313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for size-report 3.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.