← Back to home
Comparison · DevOps

htmltools vs httr2

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

htmltools vs httr2: at a glance

Featurehtmltoolshttr2
SectorDevOpsDevOps
Velocity score0.02.5
Sparks · 30d00
Top themesshiny, css, layout, maintenancer, http-client, oauth, opentelemetry
Last editorial update50m ago2h ago
WebsiteVisit →Visit →

What is htmltools?

htmltools spends three releases walking back its own fill-layout opinions

htmltools generates the HTML that Shiny, bslib and R Markdown emit. Recent releases are dominated by one project - the fill and fillable layout system that powers bslib cards - being tuned release after release, surrounded by fixes for whatever testthat or R-devel changed underneath.

Read the full htmltools trajectory →

What is httr2?

httr2 is growing production concerns: tracing, throttling and token hygiene.

httr2 is the tidyverse's modern HTTP client and the designated successor to httr. Recent releases have moved past request-building ergonomics into operational concerns — OpenTelemetry traces for every request, throttling that behaves correctly across repeated calls, and a fix for OAuth token caches that were never actually being pruned.

Read the full httr2 trajectory →

htmltools vs httr2: editorial side-by-side

H
htmltools
DEVOPS
0.0

htmltools spends three releases walking back its own fill-layout opinions

◆ Current state

htmltools generates the HTML that Shiny, bslib and R Markdown emit. Recent releases are dominated by one project - the fill and fillable layout system that powers bslib cards - being tuned release after release, surrounded by fixes for whatever testthat or R-devel changed underneath.

◆ Where it's heading

The fill work is converging rather than expanding: 0.5.6 stopped forcing overflow on fillable containers, 0.5.7 stopped forcing full width on fill items, and 0.5.8 lowered the CSS's precedence by moving it into a named cascade layer. Each step removes an opinion that broke someone's layout. The two most recent releases add nothing at all beyond test compatibility.

◆ Prediction

With the fill CSS now scoped to its own cascade layer, expect fewer layout corrections and a continued pattern of small releases driven by testthat and R-devel rather than new API.

H
httr2
DEVOPS
2.5

httr2 is growing production concerns: tracing, throttling and token hygiene.

◆ Current state

httr2 is the tidyverse's modern HTTP client and the designated successor to httr. Recent releases have moved past request-building ergonomics into operational concerns — OpenTelemetry traces for every request, throttling that behaves correctly across repeated calls, and a fix for OAuth token caches that were never actually being pruned.

◆ Where it's heading

The package is maturing into infrastructure for long-running R services rather than interactive scripts. The 1.2.0 lifecycle purge removed deprecated streaming and mocking APIs in favour of a connection-based model, and debugging affordances like httr2_translate() point at users who need to reproduce a failing request outside R.

◆ Prediction

Expect further observability and credential-handling work, with the rlang-driven cache hash change in 1.3.0 likely to surface follow-up issues as existing caches silently invalidate.

Alternatives to htmltools and httr2

Other DevOps 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 htmltools or httr2.

See all htmltools alternatives → · See all httr2 alternatives →

Recent activity from htmltools and httr2

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

  1. 1mo agohttr2httr2 1.3.0 fixes OAuth token caches that never expired
  2. 1mo agohttr2httr2 1.2.3 translates requests into curl commands
  3. 8mo agohtmltoolsTest fix for testthat 3.3.0
  4. 8mo agohttr2httr2 1.2.2 emits OpenTelemetry traces for every request
  5. 8mo agohtmltoolscapturePlot() examples run only interactively
  6. 1y agohttr2httr2 1.2.1 stops escaping colons in paths
  7. 1y agohttr2httr2 1.2.0 removes deprecated mocking and streaming APIs
  8. 1y agohttr2httr2 1.1.2 fixes AWS request signing and header checks
  9. 2y agohtmltoolsFill CSS moves into its own cascade layer
  10. 2y agohtmltoolssave_html() becomes generic; css() passes CSS variables through
  11. 2y agohtmltoolstagQuery() no longer errors traversing NULL on r-devel
  12. 3y agohtmltoolsFillable containers stop forcing overflow, respect intrinsic size

Frequently asked questions

What is the difference between htmltools and httr2?

They serve adjacent needs but don't currently overlap on shipped themes. httr2 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 htmltools better than httr2?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. httr2 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 DevOps products to evaluate alongside.

What are the best alternatives to htmltools?

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

What are the best alternatives to httr2?

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