Repository navigation
perf(package): ship only docs/examples and gzip the popular-name lists - #65
Merged
Merged
Conversation
The packed tarball was at 795 kB of the audit's 800,000-byte budget, so the dashboard redesign (#63, +32 kB) would fail the release gate. The docs live on GitHub; only docs/examples is read at run time (by the setup wizard). Gzipping the typosquat lists does little for the packed size (npm gzips the tarball) but cuts the unpacked install. 797 kB -> 657 kB packed, 2.3 MB -> 1.7 MB unpacked. AI-Assisted: Claude Code with Claude Opus 5.5; measured the package, found that gzip alone did not help the packed size, and narrowed the files list Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why:
mainpacked at 795 kB against the internal audit's 800,000-byte budget, so the redesign (#63, about +32 kB) would fail the release gate.What:
package.jsonfilesshipsdocs/examplesinstead of all ofdocs/. The setup wizard readsdocs/examples/pr-dependency-review.ymlat run time; nothing else indocs/is read. The README's relative links resolve to GitHub on npmjs.com.lib/deps/popular-packages.jsonandpopular-pypi.jsonare stored gzipped and loaded withgunzipSync. The refresh scripts,docs-numbersandincident-radarread and write the.gzfiles. The same 7,765 npm and 8,000 PyPI names load.Result: 797 kB → 657 kB packed, 2.3 MB → 1.7 MB unpacked. Gzipping alone barely changed the packed size, because npm already gzips the tarball; the docs trim did that.
Checks: 902 tests pass;
audit:internalpasses every gate.🤖 Generated with Claude Code