Repository navigation
feat: jh package info shows downloads, owner and the package's pkg.json details - #70
Merged
Merged
Conversation
…json details The REST listing already returns `owner`, `is_app`, `is_dyad` and `downloads_timeseries`, but `RESTPackage` dropped them (it decoded a `downloads.count` the API does not send). `restToInfo` now carries them, with `downloads_30d` as the sum of the 30 daily counts, so `jh package search --verbose`/`--json` show them too. `jh package info` also fetches the stable version's pkg.json for each match and prints its homepage, release date, dependency and dependent counts, contributors and docs build type. In `--json` these are under `details`, together with the daily download counts and the full contributor list. If pkg.json cannot be fetched, a warning goes to stderr and the listing fields are still printed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 14, 2026
pankgeorg
marked this pull request as ready for review
October 14, 2026 17:15
- `info` (and `search --verbose`) print a card per package: a header line `name vX · registry · owner`, the description, then aligned fields with thousands separators, a 30-day download sparkline, a link to the package's JuliaHub page and an install hint. - `search` prints an aligned table with STARS and DL/30 DAYS columns; the OWNER separator and VERSION column used to be wider than their headers. Long names and descriptions are cut at rune boundaries with "…". - `dependency` and `dependents` print the same heading and direct/indirect/total counts, with standard libraries shown as `stdlib`. `dependency` lists each package once: `deps` can hold a package as both direct and indirect, and `splitDependencies` keeps one entry per UUID (direct wins), in `--json` too. Bold and dim styling is used only when stdout is a terminal, `NO_COLOR` is unset and `TERM` is not `dumb`. The helpers live in `style.go`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prints a single line with the counts, e.g.
JuMP v1.32.1 · General: 9 direct · 40 indirect · 49 total dependencies
`--short` cannot be combined with `--json`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pankgeorg
added a commit
that referenced
this pull request
Oct 15, 2026
…json details The REST listing already returns `owner`, `is_app`, `is_dyad` and `downloads_timeseries`, but `RESTPackage` dropped them (it decoded a `downloads.count` the API does not send). `restToInfo` now carries them, with `downloads_30d` as the sum of the 30 daily counts, so `jh package search --verbose` shows them too. `jh package info` also fetches the stable version's pkg.json for each match and prints its homepage, release date, dependency and dependent counts, contributors and docs build type. In `--json` these are under `details`, together with the daily download counts and the full contributor list. If pkg.json cannot be fetched, a warning goes to stderr and the listing fields are still printed. Backport of #70 (eb55899) to the 0.4 line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Makes
jh package infoprint what JuliaHub already returns for a package. The REST listing sendsowner,is_app,is_dyadanddownloads_timeseries, butRESTPackagedropped them (it decoded adownloads.countfield the API does not send), soinfoshowed no owner and no downloads.restToInfonow carries them, withdownloads_30das the sum of the 30 daily counts;jh package search --verboseand--jsongain them too.infoalso fetches the stable version'spkg.jsonfor each match (the filedependencyanddependentsread) and prints homepage, release date, dependency and dependent counts, contributors (count and top five) and docs build type. In--jsonthese sit underdetails, along with the daily download counts and the full contributor list. Ifpkg.jsoncannot be fetched, a warning goes to stderr and the listing fields are still printed. The README is left out: it is large and better read on the web page.For JuMP against juliahub.com: owner
jump-dev, 78428 downloads in the last 30 days, 9 direct / 49 total dependencies, 335 direct / 429 total dependents, 163 contributors.Builds on #67 and #69, so this PR targets the #69 branch; GitHub retargets it to
mainas they merge.