← Back to home
Comparison · Infra & APIs

gh vs pkgcache

A side-by-side editorial comparison of gh and pkgcache — release velocity, themes, recent moves, and the top alternatives to consider.

gh vs pkgcache: at a glance

Featureghpkgcache
SectorInfra & APIsInfra & APIs
Velocity score2.50.0
Sparks · 30d00
Top themesgithub-api, http-client, pagination, token-handlingpackage-management, r-lib, repositories, authentication
Last editorial update3h ago1h ago
WebsiteVisit →Visit →

What is gh?

gh spent its last two releases making failures and interruptions recoverable.

The GitHub API client rebuilt on httr2 in 1.4.0, then took a security-driven breaking change in 1.5.0: response headers are no longer stored in returned objects, because they can carry sensitive information. The 1.6.0 release made interrupted pagination recoverable and downgraded personal access token format validation from an error to a warning.

Read the full gh trajectory →

What is pkgcache?

The metadata cache under pak now speaks to authenticated and corporate repositories.

pkgcache maintains the package metadata cache that pak and pkgdepends build on, so its releases are about knowing where packages live and what platform they were built for. Version 2.2.4 added support for authenticated repositories through repo_auth(), the first time the cache could reach private registries directly. The releases around it track a moving target: Posit Package Manager behaviour, R Universe binaries, macOS binary availability per R version, Bioconductor version mapping, and most recently comments in DESCRIPTION and PACKAGES files following a change in R-devel.

Read the full pkgcache trajectory →

gh vs pkgcache: editorial side-by-side

G
gh
INFRA · APIS
2.5

gh spent its last two releases making failures and interruptions recoverable.

◆ Current state

The GitHub API client rebuilt on httr2 in 1.4.0, then took a security-driven breaking change in 1.5.0: response headers are no longer stored in returned objects, because they can carry sensitive information. The 1.6.0 release made interrupted pagination recoverable and downgraded personal access token format validation from an error to a warning.

◆ Where it's heading

The direction is tolerance for partial and unusual outcomes rather than new endpoint coverage. Interrupting a paginated call now raises a classed condition carrying the records already fetched; a 304 Not Modified returns an empty response with headers intact instead of erroring; an unrecognised token format warns and proceeds. A fake_github_app() built on webfakes ships for testing, and is offered to other package authors.

◆ Prediction

Token format handling is now configurable rather than fixed, so the next likely work is following GitHub's credential formats as they change, not expanding the client surface.

P
pkgcache
INFRA · APIS
0.0

The metadata cache under pak now speaks to authenticated and corporate repositories.

◆ Current state

pkgcache maintains the package metadata cache that pak and pkgdepends build on, so its releases are about knowing where packages live and what platform they were built for. Version 2.2.4 added support for authenticated repositories through repo_auth(), the first time the cache could reach private registries directly. The releases around it track a moving target: Posit Package Manager behaviour, R Universe binaries, macOS binary availability per R version, Bioconductor version mapping, and most recently comments in DESCRIPTION and PACKAGES files following a change in R-devel.

◆ Where it's heading

The work has shifted from CRAN-shaped assumptions toward the mixed reality of how R packages are actually distributed now — PPM snapshots, R Universe, private and authenticated registries, Bioconductor, and per-platform binaries across several R versions. Resilience is a recurring theme too: 2.2.5 makes an unreachable Bioconductor a non-fatal condition rather than a failure. MRAN's retirement, handled in 2.2.0 by resolving its prefix to PPM, is a reminder of how much of this package's job is absorbing other people's infrastructure changes.

◆ Prediction

Expect continued tracking of R-devel metadata format changes and new binary platforms as R 4.6 lands, since both already appear in 2.2.5. Further work on authenticated repository handling is the plausible follow-on, given how recently that capability arrived.

Alternatives to gh and pkgcache

Other Infra & APIs products tracked by Sparkpulse, ranked by recent ship velocity. Each card links to a full editorial trajectory and lets you pivot into a head-to-head comparison with either gh or pkgcache.

See all gh alternatives → · See all pkgcache alternatives →

Recent activity from gh and pkgcache

Latest ship moves from both products, interleaved chronologically. ⚡ = editorial spark.

  1. 25d agoghPagination progress bar reports true record counts
  2. 2mo agoghInterrupted pagination keeps its partial results
  3. 4mo agopkgcacheParses comments in DESCRIPTION and PACKAGES files
  4. 1y agopkgcacherepo_auth() brings authenticated repositories to the cache
  5. 1y agoghResponse headers dropped from results after a security advisory
  6. 1y agopkgcacheStops using source URLs for archived PPM packages
  7. 2y agopkgcacheHandles macOS binaries for R 4.5 development builds
  8. 2y agoghPagination helpers repaired and atomic file writes
  9. 2y agopkgcacheImproves R to Bioconductor version matching
  10. 3y agopkgcacheMRAN prefix deprecated in favour of PPM; platform override added
  11. 3y agoghClient rebuilt on httr2 with rate-limit controls
  12. 3y agoghLower-case methods and richer error conditions

Frequently asked questions

What is the difference between gh and pkgcache?

They serve adjacent needs but don't currently overlap on shipped themes. gh is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. See the at-a-glance table above for a side-by-side breakdown of velocity, recent sparks, and editorial themes.

Is gh better than pkgcache?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. gh is currently shipping more aggressively (velocity 2.5 vs 0.0), with 0 editorial sparks in the last 30 days against 0. For your specific use case, the alternatives sections above list other Infra & APIs products to evaluate alongside.

What are the best alternatives to gh?

Top gh alternatives in Infra & APIs are ranked by recent ship velocity. Browse the "gh alternatives" section above for the current picks, or visit /alternatives/gh for the full list with editorial commentary on each.

What are the best alternatives to pkgcache?

Top pkgcache alternatives in Infra & APIs are ranked by recent ship velocity. Browse the "pkgcache alternatives" section above for the current picks, or visit /alternatives/pkgcache for the full list with editorial commentary on each.