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

@rulecad/fit

Latest version: v0.4.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: jonibach
0 Stars
0 Forks
8 Versions
1.5K Downloads
JavaScript Repo language

Scan summary

@rulecad/fit was last scanned on 29 Nov 2026 at version 0.4.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.4.1.
  • Downloads: 1,488 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.1 LATEST 29 Nov 2026 No rules fired
0.4.0 7 Nov 2026 No rules fired
0.3.1 7 Nov 2026 No rules fired
0.3.0 7 Nov 2026 Not shown
0.2.1 27 Oct 2026 Not shown

No rules fired in 0.4.1

Findings

Findings for v0.4.1. 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 0.4.1; other versions have their own rules, not their own score.

README

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

@rulecad/fit

Do these parts fit? closest() measures the smallest gap between two meshes, in millimetres: a keycap's slot around a switch stem, a board inside its case. A grid of cells keeps it fast enough to check every key of a keyboard. Only dependency: @rulecad/printcheck's bounds.

import { closest } from '@rulecad/fit';

const gap = closest(capTriangles, stemTriangles);   // 0.05: a press fit? a slide fit? compare with your printer's rules
closest(a, b, 5);                                   // look up to 5 mm away (default 2); farther is Infinity

It measures from each mesh's corners to the other's faces, and from each mesh's edges to the other's edges (Ericson, Real-Time Collision Detection 5.1.5 and 5.1.9), so the nearest two faces can be is found even where two edges pass each other mid-span. Two solids that run into each other have no gap, however far their corners are from each other's faces: closest is 0 for them, and closestAt says overlap: true and where (overlapAt(a, b) on its own). They run into each other when an edge of one passes through a face of the other, a corner of one is inside the other, or a point just inside a face of one is inside the other: the last finds solids that share face planes, such as two boxes half into each other on one plane, or a part placed twice. Touching faces are not an overlap. How much they overlap needs a CAD kernel's booleans, so that stays out of this package; with JSCAD it's measureVolume(intersect(a, b)).

Two smaller tools, for checks of your own (cad's assembly checks use both):

  • inside(point, faces): is a point inside a closed solid? True or false, by counting how many of its faces a straight line out from the point passes through: an odd number means inside.
  • distanceToFace(point, face): how far a point is from one face (a polygon), in mm, to its nearest point, inside it or on its edge.

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 @rulecad/fit

References

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

Powered by Read the latest findings

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

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229