# r-wasm/webr

The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.

Repository: https://github.com/r-wasm/webr
Canonical: https://ross.abutalabs.com/products/webr
Homepage: https://docs.r-wasm.org/webr/latest/
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: emscripten, r, wasm, webassembly
Last push: 2026-06-23T14:11:21+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 84, longevity 100
- inputs: {"age_days": 1687, "days_push": 71, "days_rel": 106, "gap_med": 25, "n_releases_24m": 14}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1088, forks 97 (observed 2026-08-28T04:03:32.523678+00:00)

## What it is
WebR is the R statistical programming language compiled to WebAssembly via Emscripten, allowing R code to run directly in web browsers and Node.js without a server. It includes a JavaScript API, a web-based REPL/IDE, and a CDN-hosted repository of R packages recompiled for WebAssembly.

## Use cases
- run R code in the browser without an R server
- build interactive statistics tutorials or teaching tools that run client-side
- embed R computation in a web app or dashboard
- create a browser-based R REPL or playground
- execute R scripts in Node.js via WebAssembly
- let users fit models like lm() directly on a webpage

## When to choose
- you want R execution fully client-side with no backend
- you're building educational or interactive statistical content for the web
- you need a sandboxed R environment in Node or the browser

## When to avoid
- you need heavy R packages or large datasets that exceed browser WebAssembly memory limits
- you require full CRAN compatibility or native performance
- you need a stable, frozen API - webR is under active development and its API may change

## Facets
- artifact type: library
- maturity: active
- function: interpreter, programming-language, wasm, sdk
- domain: programming-languages, data-science, web-development, developer-tools
- platform: browser, wasm
- tags: r-language, emscripten, webassembly, repl, statistics, client-side-computation, nodejs, web-server

## Member repositories
- r-wasm/webr (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:32.523678+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:49:22.736471+00:00, confidence not recorded.
  - readme: https://github.com/r-wasm/webr (fetched 2026-08-28T04:03:32.523678+00:00, sha 5e009727c038)
  - homepage: https://docs.r-wasm.org/webr/latest/ (fetched 2026-08-29T12:51:51.623104+00:00, sha 509c6072d7d9)
  - site_page: https://docs.r-wasm.org/webr/latest/api/js/interfaces/WebRChan.InstallPackagesOptions.html (fetched 2026-08-29T12:51:51.634128+00:00, sha f45e519decdc)
  - site_page: https://docs.r-wasm.org/webr/latest/packages.html (fetched 2026-08-29T12:51:51.632013+00:00, sha ddf0a38d78ea)
  - registry_npm: https://registry.npmjs.org/webr (fetched 2026-08-29T12:51:51.635780+00:00, sha 935971ed1f5b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
