← Back to home
Comparison · DevOps

Sanity vs xfun

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

Sanity vs xfun: at a glance

FeatureSanityxfun
SectorDevOpsDevOps
Velocity score7.50.0
Sparks · 30d10
Top themesmcp, agent-tooling, esm-migration, media-libraryutilities, publishing, headless-browser, litedown
Last editorial update9h ago1h ago
WebsiteVisit →Visit →

What is Sanity?

Sanity is widening the surface agents can act on while forcing its own packages onto modern Node.

Sanity ships on three tracks at once: Studio, the Media Library, and an MCP server that now moves faster than either. The MCP server took three releases in nine days, adding CORS-origin management and hardening how documents and schemas are written. Underneath that, the JavaScript client and the UI package both went ESM-only in the same week, raising the floor to Node 22.12 and React 19.2.

Read the full Sanity trajectory →

What is xfun?

Yihui's utility grab-bag is quietly growing a web server and a headless browser.

xfun is the shared utility layer under knitr, rmarkdown, bookdown and litedown, and its recent releases cluster in three places: the record() function that captures code output for litedown, a local app-serving stack built on R's internal httpd, and a headless-browser toolkit. Version 0.58 replaced direct httpd routing with a proxy and added serve_dir() and random_port(); 0.55 added browser_print() and 0.60 added browser_dom(), which runs JavaScript on a page and returns the rendered DOM.

Read the full xfun trajectory →

Sanity vs xfun: editorial side-by-side

S
Sanity
DEVOPS
7.5

Sanity is widening the surface agents can act on while forcing its own packages onto modern Node.

◆ Current state

Sanity ships on three tracks at once: Studio, the Media Library, and an MCP server that now moves faster than either. The MCP server took three releases in nine days, adding CORS-origin management and hardening how documents and schemas are written. Underneath that, the JavaScript client and the UI package both went ESM-only in the same week, raising the floor to Node 22.12 and React 19.2.

◆ Where it's heading

The MCP server is where the new capability is landing — each release either exposes another piece of project administration to an agent or closes a way an agent could silently corrupt state. That pairs with Sanity New, which removes signup as a precondition for provisioning. The package modernization is cleanup that clears the way rather than a destination in itself.

◆ Prediction

Expect the MCP tool surface to keep expanding toward project administration that today requires the management console or CLI, with the same pattern of returning corrective errors rather than accepting malformed agent input.

X
xfun
DEVOPS
0.0

Yihui's utility grab-bag is quietly growing a web server and a headless browser.

◆ Current state

xfun is the shared utility layer under knitr, rmarkdown, bookdown and litedown, and its recent releases cluster in three places: the record() function that captures code output for litedown, a local app-serving stack built on R's internal httpd, and a headless-browser toolkit. Version 0.58 replaced direct httpd routing with a proxy and added serve_dir() and random_port(); 0.55 added browser_print() and 0.60 added browser_dom(), which runs JavaScript on a page and returns the rendered DOM.

◆ Where it's heading

The package is accreting the infrastructure Yihui's publishing tools need rather than staying a pile of small helpers. Serving directories, allocating ports, proxying the help server, driving a headless browser and printing to PDF are all pieces of one pipeline: render R output to HTML, then get it onto a screen or into a static file without a heavyweight dependency. The rest of the release stream is release-automation tooling for the author's own CRAN workflow and a long tail of parser bug fixes in taml_load().

◆ Prediction

Expect the browser functions to consolidate into a documented interface used directly by litedown, and expect cache_rds() to be fully retired in favour of cache_exec() now that it is no longer recommended.

Alternatives to Sanity and xfun

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 Sanity or xfun.

See all Sanity alternatives → · See all xfun alternatives →

Recent activity from Sanity and xfun

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

  1. 1d agoSanityJavaScript Client v8.0.0: Node 22+ ESM-only support and refined upload, proxy, and error handling
  2. 1d agoSanityMCP server v2.29.1: Standard protocol negotiation errors
  3. 1d agoSanityMCP server v2.29.0: CORS origin tools and safer document inputs
  4. 1d agoSanityMedia Library v2026.08.12.draft: Asset previews now show shareable URLs, steadier dialogs, and assorted improvements
  5. 2d agoSanitySanity Studio v6.9.2: Sanity New, Content Releases fixes, and Studio UI improvements
  6. 2d agoSanityMCP server v2.28.0: Explicit release IDs and safer schema management
  7. 1mo agoxfunbrowser_dom() added; Windows silently truncated self-contained HTML
  8. 1mo agoxfunpost_release() automates post-CRAN chores; nested math fixed
  9. 2mo agoxfunnew_app() moves to a proxy; serve_dir() and random_port() added
  10. 4mo agoxfunLiteral JavaScript in tojson(); record() bottleneck fixed
  11. 6mo agoxfunDeprecated attr() and qs support removed; parallel rev_check
  12. 8mo agoxfunbrowser_print() opens the headless-browser path

Frequently asked questions

What is the difference between Sanity and xfun?

They serve adjacent needs but don't currently overlap on shipped themes. Sanity is currently shipping more aggressively (velocity 7.5 vs 0.0), with 1 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 Sanity better than xfun?

Sparkpulse doesn't pick a winner — we score release velocity, not feature parity. Sanity is currently shipping more aggressively (velocity 7.5 vs 0.0), with 1 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 Sanity?

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

What are the best alternatives to xfun?

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