TypeScript / JavaScript package
@compstats/core
The browser port of the R package. The R original runs in RStudio. This one runs in a browser, with no R installation and no server.
bun add @compstats/core
npm install @compstats/core works the same way. The install is small, because the package brings nothing with it. Plotly is an optional peer, and only the 3D functions need it. The package sits on npm, and the source is on GitHub.
A page can load it with no build step
The main bundle is self-contained browser ESM with no imports of its own. A CDN can serve it straight to a script tag.
import { interactiveTTest } from "https://esm.sh/@compstats/core";
Every component returns a handle. getValues() gives back the options that draw the same picture again, which is what this site saves into a shareable link.