← Back to home
Comparison · Infra & APIs

gh vs webfakes

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

Shared themes:testing

gh vs webfakes: at a glance

Featureghwebfakes
SectorInfra & APIsInfra & APIs
Velocity score2.50.0
Sparks · 30d00
Top themesgithub-api, http-client, pagination, token-handlingtesting, http-server, r-package, test-fixtures
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 webfakes?

A fake web server for tests that keeps closing the gap with the real thing.

webfakes runs a real HTTP server inside R tests so packages can exercise network code without hitting the internet. Its releases follow a consistent logic: find a class of behaviour that only the real internet could reproduce, then implement it locally. HTTPS arrived in 1.4.0; before that the httpbin clone reached full parity with the Python original, and a fake git HTTP server landed alongside CGI middleware. The most recent release, 1.5.0, is about the server's own rough edges — keep-alive timeouts, locale-independent HTTP date parsing, and trailing-slash route matching.

Read the full webfakes trajectory →

gh vs webfakes: 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.

W
webfakes
INFRA · APIS
0.0

A fake web server for tests that keeps closing the gap with the real thing.

◆ Current state

webfakes runs a real HTTP server inside R tests so packages can exercise network code without hitting the internet. Its releases follow a consistent logic: find a class of behaviour that only the real internet could reproduce, then implement it locally. HTTPS arrived in 1.4.0; before that the httpbin clone reached full parity with the Python original, and a fake git HTTP server landed alongside CGI middleware. The most recent release, 1.5.0, is about the server's own rough edges — keep-alive timeouts, locale-independent HTTP date parsing, and trailing-slash route matching.

◆ Where it's heading

The package is converging on being indistinguishable from a real server for test purposes, which is the only way it stays useful — every unsupported protocol feature is a piece of code someone cannot test offline. The remaining work has visibly shifted from missing endpoints to correctness details: date header parsing under unusual locales, keep-alive tuning, request body handling across content types.

◆ Prediction

Expect continued fidelity work against real-server behaviour rather than new app types, with HTTP/2 or authentication schemes the most plausible next gaps given the direction HTTPS opened. The entries do not indicate a specific planned feature.

Alternatives to gh and webfakes

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 webfakes.

See all gh alternatives → · See all webfakes alternatives →

Recent activity from gh and webfakes

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. 2mo agowebfakesKeep-alive tuning, locale-safe HTTP dates, looser routes
  4. 1y agowebfakesHTTPS support lands in the fake server
  5. 1y agoghResponse headers dropped from results after a security advisory
  6. 1y agowebfakesNew decode_url server option
  7. 2y agoghPagination helpers repaired and atomic file writes
  8. 2y agowebfakesAdds a fake git HTTP server and CGI middleware
  9. 2y agowebfakesFixes tmpl_glue() on affected macOS builds
  10. 3y agoghClient rebuilt on httr2 with rate-limit controls
  11. 3y agowebfakeshttpbin clone reaches parity with the Python original
  12. 3y agoghLower-case methods and richer error conditions

Frequently asked questions

What is the difference between gh and webfakes?

Both compete on the same themes — testing — within Infra & APIs. 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 webfakes?

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 webfakes?

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