
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@winm2m/react-stats-ui
Advanced tools
React UI component for inferential statistics workflows in the browser
React UI component for browser-based inferential statistics workflows, powered by @winm2m/inferential-stats-js.
npm install @winm2m/react-stats-ui @winm2m/inferential-stats-js
Peer dependencies:
react ^18.2.0 || ^19.0.0react-dom ^18.2.0 || ^19.0.0full: split control/result with resizable vertical dividerminimal: compact flow with slide-up result panelimport * as React from "react";
import { StatsWorkbench } from "@winm2m/react-stats-ui";
export function App() {
return (
<div style={{ width: "100vw", height: "100vh" }}>
<StatsWorkbench />
</div>
);
}
StatsWorkbench props:
className?: stringstyle?: React.CSSPropertiesinitialAnalysis?: AnalysisKind (default: "frequencies")layoutMode?: "full" | "minimal" (default: "full")language?: "en" | "ar" | "zh" | "fr" | "ru" | "es" | "ko" | "ja" | "vi" (default: "en")showDatasetPopover?: boolean (default: true)minimalAutoShowResultEnabled?: boolean (default: true)
false in minimal layout, auto-show is disabled and the Auto show result switch is hidden.analysisExecutor?: (payload: AnalysisPayload) => Promise<unknown>onResult?: (result: AnalysisResult) => voidStatsWorkbench ref (StatsWorkbenchControl):
injectData({ rows, columns?, id?, name? })
columns is omitted, variable metadata is inferred from rows.clearInjectedData()executeAnalysis(method, inputWithoutData?)runFrequencies(inputWithoutData?)runDescriptives(inputWithoutData?)runCrosstabs(inputWithoutData?)runTtestIndependent(inputWithoutData?)runTtestPaired(inputWithoutData?)runAnovaOneway(inputWithoutData?)runPosthocTukey(inputWithoutData?)runLinearRegression(inputWithoutData?)runLogisticBinary(inputWithoutData?)runLogisticMultinomial(inputWithoutData?)runKmeans(inputWithoutData?)runHierarchicalCluster(inputWithoutData?)runEfa(inputWithoutData?)runPca(inputWithoutData?)runMds(inputWithoutData?)runCronbachAlpha(inputWithoutData?)
@winm2m/inferential-stats-js and always inject previously provided runtime data as data.setResultVisible(next) (minimal layout)toggleResultVisible() (minimal layout)setAutoShowResult(next)toggleAutoShowResult()getAutoShowResult()copyApaTable()Example:
import * as React from "react";
import { StatsWorkbench, type StatsWorkbenchControl } from "@winm2m/react-stats-ui";
export function App() {
const workbenchRef = React.useRef<StatsWorkbenchControl>(null);
const runExternal = async () => {
workbenchRef.current?.injectData({
name: "runtime-dataset",
rows: [
{ score: 10, group: "A" },
{ score: 12, group: "A" },
{ score: 14, group: "B" },
{ score: 15, group: "B" }
]
});
await workbenchRef.current?.runTtestIndependent({
variable: "score",
groupVariable: "group",
group1Value: "A",
group2Value: "B",
equalVariance: true
});
await workbenchRef.current?.copyApaTable();
};
return (
<>
<button onClick={() => void runExternal()}>Run external t-test</button>
<div style={{ width: "100vw", height: "90vh" }}>
<StatsWorkbench ref={workbenchRef} layoutMode="minimal" />
</div>
</>
);
}
The workbench includes built-in i18n via i18next + react-i18next.
Supported languages:
en (English)ar (Arabic)zh (Chinese)fr (French)ru (Russian)es (Spanish)ko (Korean)ja (Japanese)vi (Vietnamese)Coverage includes core UI labels, placeholders, role prompts, options labels, run-state messages, and result-view helper text.
Use language prop to set the active language:
<StatsWorkbench language="ko" />
Exports:
StatsWorkbenchAnalysisKindStatsWorkbenchPropsAnalysisPayloadAnalysisResultExternalDataInputStatsWorkbenchControlminimal mode, result view is a slide-up panel.minimal mode, result panel can be shown/hidden by UI toggle or external control.minimal mode, multi-item role updates (for multi roles like variables/independentVariables) use a manual Play trigger shown in Role Assignment when execution is valid.docs/demo.html demonstrates CDN usage and local dev build usage:
Live demo: https://winm2m.github.io/react-stats-ui/demo.html
?dev=true loads /dist/index.js
otherwise loads published package from npm via ESM CDN
includes demo selectors for:
light / darkfull / minimalScripts:
npm run storybook
npm run build-storybook
npm run test
npm run test:ci
CI runs typecheck, test:ci, and build automatically on push/PR via .github/workflows/ci.yml.
Story file: src/stats-workbench.stories.tsx
Interactive controls include:
Section Layout: full / minimalLanguage: en / ar / zh / fr / ru / es / ko / ja / viTheme: light / dark / customBackgroundBackground TransparentTextBorderMajorMinorWarningErrorInfoRounded EdgesTheme behavior:
light or dark applies a preset palette.light/dark is active switches mode to custom.lucide-react icons.window.__WINM2M_INFERENTIAL_WORKER_URL__.CONTRIBUTING.mdCITATION.cffFAQs
React UI component for inferential statistics workflows in the browser
We found that @winm2m/react-stats-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.