Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

swiss-math

Latest version: v1.0.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: sunasty.com
0 Stars
0 Forks
2 Versions
JavaScript Repo language

Scan summary

swiss-math was last scanned on 24 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 24 Nov 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 24 Nov 2026 No rules fired
0.0.0-stage 24 Nov 2026 Not shown

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

swiss-math

Zero-dependency Swiss tournament structure calculator, official TCG round/cut presets (Magic: The Gathering, Pokemon TCG, Yu-Gi-Oh!, Disney Lorcana, One Piece TCG, Flesh & Blood, FIDE Chess, Esports), playoff bracket seed generator, and deterministic Monte-Carlo tiebreaker estimator.

Extracted from the core engine powering Sunasty Tournament Calculator and Sunasty Swiss Tournament Generator.

Features

  • Audited Game Presets: Official stepped round tables, top cuts, regional invite rules, points, and bye tiebreaker policies (getPreset, PRESETS, SPORT_PRESETS).
  • Expected Field & Cut Line: computeStructure computes binomial / draw-adjusted win-loss field buckets, exact Top Cut spots, bubble records, and Yu-Gi-Oh! WCQ points (wcqPointsFirst).
  • Bracket Pairing Order: exportBracketCsv and exportBracketText emit proper standard cross-seeded brackets (1v8, 4v5, 2v7, 3v6) with automatic BYE placement.
  • Monte-Carlo Standing Estimator: simulate pairs a seeded Swiss field using each game's OMW%/OOMW%/loss-round-squares tiebreakers to estimate top-cut odds (probRankAtMost).

Installation

npm install swiss-math
# or via JSR
npx jsr add @sunasty/tournament-math

Usage

import { getPreset, computeStructure, simulate, probRankAtMost } from 'swiss-math';

const mtg = getPreset('mtg');
const structure = computeStructure(mtg, 64);
console.log(structure.rounds, structure.cutSize); // 6, 8

const sim = simulate({
  preset: mtg,
  players: 64,
  doubleLossRate: 0,
  drawRate: 0.05,
  results: ['W', 'W', 'W', 'L', 'W', 'L'],
  iterations: 200,
});
console.log('Top 8 probability:', probRankAtMost(sim, 8));

Related Web Tools

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm swiss-math

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229