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

@khr3/core

Latest version: v0.1.3

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: pifreak
0 Stars
0 Forks
3 Versions
147 Downloads
TypeScript Repo language

Scan summary

@khr3/core was last scanned on 24 Nov 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.1.3.
  • Downloads: 147 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.3 LATEST 24 Nov 2026 No rules fired
0.1.2 24 Nov 2026 No rules fired
0.1.1 23 Nov 2026 No rules fired

No rules fired in 0.1.3

Findings

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

README

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

@khr3/core (khr3)

KHR_physics_rigid_bodies + KHR_implicit_shapes runtime loader, binary .glb exporter, @react-three/rapier multi-body assembly synchronizer, and @pinkaphant/ecctrl vehicle rig + monotone Pacejka curve presets for React Three Fiber.

Stack Map (@khr3/* → Kolmo)

All @khr3/* packages are strictly koota-free reusable building blocks; Kolmo owns the ECS, world generation, character body, and universal GLB intake gate:

Package Role koota?
@khr3/core (this package) .glb KHR physics loader/exporter, <PhysicsWorld>, <KhrAssembly>, <KhrVehicle>, @khr3/core/curves No
@khr3/assets Cloudflare R2 .glb vault Worker/client + binary inspectGlbBuffer / normalizeGlbBuffer No
@khr3/c12 Exact architectural grid ($\mathbb{Z}[1/2, \sqrt{3}]$, yaw12), 3 m socket snapping, planSettlement No
@khr3/vehicles Multi-domain R2 vehicle catalog, multi-body planCar (SEDAN_4DOOR, COUPE_2DOOR), @khr3/vehicles/paper-shell No
@khr3/launchers Moving-part launcher planner (planLauncher), rail/hand sockets, ammo catalog, stepLauncher No
Kolmo Game engine & studio (koota ECS, src/world/ roads & terrain, src/body/, Universal 2-Step GLB & USD Gate) Yes

Install

npm install @khr3/core @pinkaphant/ecctrl @dimforge/rapier3d-compat @react-three/fiber @react-three/rapier react react-dom three
Peer Dependencies
Package Version Required By
@dimforge/rapier3d-compat 0.19.2 @khr3/core, @khr3/core/vehicle
@pinkaphant/ecctrl ^2.0.4-beta.3 Optional (@khr3/core/vehicle only)
@react-three/fiber ^9.0.0 @khr3/core, @khr3/core/vehicle
@react-three/rapier ^2.2.0 @khr3/core, @khr3/core/vehicle
react ^19.0.0 @khr3/core, @khr3/core/vehicle
react-dom ^19.0.0 Optional (browser DOM apps)
three >=0.159.0 @khr3/core, @khr3/core/vehicle

Subpath Exports

@khr3/core ships strictly three ESM subpaths ("sideEffects": false, NodeNext .d.ts declarations):

Subpath Exports
@khr3/core PhysicsWorld, createKhrGltfPlugin, useKhrGlb, loadKhrGlb, cloneKhrBundle, disposeKhrBundle, claimBundleMount, releaseBundleMount, exportKhrGlb, patchGlbJsonChunk, KhrCollider, KhrAssembly, JointRegistryContext, assertUnitScale, assertIdentityWorldScale, assertSceneIdentityWorldScale, KhrValidationError, KHR & rotor tag types
@khr3/core/vehicle KhrVehicle, solveWheelLoads, boundWheelModalDamping, BENCH_GRAVITY, WHEEL_ASSEMBLY_DENSITY_KG_M3, KhrVehicleProps, KhrWheelConfig, SolvedWheel
@khr3/core/curves compilePacejkaCurve, tireGripForSurface, engineHorsepowerForPeakTorque, TIRE_ARCHETYPES, TIRE_SLIP_CURVES, ENGINE_TORQUE_CURVES, STEER_SPEED_CURVES, TireArchetypePreset, CurveData, CurvePoint

Quick Start

import { useRef } from "react";
import { Canvas } from "@react-three/fiber";
import type { EcctrlVehicleHandle } from "@pinkaphant/ecctrl/vehicle";
import { KhrAssembly, PhysicsWorld, loadKhrGlb, type KhrAssemblyHandle } from "@khr3/core";
import { KhrVehicle } from "@khr3/core/vehicle";
import { ENGINE_TORQUE_CURVES, TIRE_ARCHETYPES, tireGripForSurface } from "@khr3/core/curves";

const roadBundle = await loadKhrGlb(await fetch("/assets/city/R_Straight_6x6.glb").then((r) => r.arrayBuffer()));
const doorBundle = await loadKhrGlb(await fetch("/assets/city/door_hinged_single_900x2100.glb").then((r) => r.arrayBuffer()));
const carBundle = await loadKhrGlb(await fetch("/assets/cars/kolmogorov_hatchback.glb").then((r) => r.arrayBuffer()));

export function Scene() {
  const doorRef = useRef<KhrAssemblyHandle>(null);
  const vehicleRef = useRef<EcctrlVehicleHandle>(null);
  const tire = TIRE_ARCHETYPES.streetDrift90s;

  return (
    <Canvas>
      <PhysicsWorld>
        <KhrAssembly bundle={roadBundle} fixedRoot />
        <KhrAssembly ref={doorRef} bundle={doorBundle} position={[3.6, 0.1, 0]} fixedRoot />
        <KhrVehicle
          ref={vehicleRef}
          bundle={carBundle}
          position={[0, 0.15, 0]}
          carConfig={{
            engineTorqueCurveData: ENGINE_TORQUE_CURVES.naScreamer,
            transmissionMode: "auto",
            gearRatios: [3.2, 2.1, 1.45, 1.0],
            shiftUpRPM: 5800,
            shiftDownRPM: 2600, // < 5800 * (1.0 / 1.45) = 4000 (hysteresis invariant)
          }}
          wheelConfig={{
            tireGripFactor: tireGripForSurface(tire.muPeakLng, 0.8),
            lngSlipRatioCurveData: tire.lng,
            latSlipRatioCurveData: tire.lat,
            latFrictionEllipseScale: tire.latFrictionEllipseScale,
          }}
          frontWheelConfig={{ driveTorqueWeight: 0.35 }}
          rearWheelConfig={{ driveTorqueWeight: 0.65 }}
        />
      </PhysicsWorld>
    </Canvas>
  );
}

Loading Assets

import { Suspense } from "react";
import { KhrAssembly, useKhrGlb, disposeKhrBundle } from "@khr3/core";

function Door() {
  const bundle = useKhrGlb("/assets/city/door_hinged_single_900x2100.glb"); // Suspense + cache, clones per call site
  return <KhrAssembly bundle={bundle} />;
}
  • useKhrGlb(url) suspends, caches by URL, and returns a per-instance clone; createKhrGltfPlugin() registers the same decoder on any GLTFLoader; loadKhrGlb(bytes) is the headless/buffer path.
  • Call disposeKhrBundle(template) once when an asset is retired.
  • <PhysicsWorld> steps Rapier directly in useFrame with clamped maxDelta and timeScale; @pinkaphant/ecctrl is an optional peer required only by @khr3/core/vehicle (@khr3/core/curves is zero-dependency TypeScript math).
  • Peer range for three is >=0.159.0.

Core Architecture & Invariants

  1. Bundle Ownership & Zero-Reparse Cloning (cloneKhrBundle): loadKhrGlb(source) constructs live THREE.Object3D nodes (bundle.scene, w.object, p.object). Mount each KhrAssetBundle in at most one <KhrAssembly> or <KhrVehicle> at a time; parse once with loadKhrGlb(bytes) and call cloneKhrBundle(template) per tiled road, prop, or vehicle instance (cloning only the lightweight Object3D hierarchy while sharing GPU BufferGeometry/Material buffers and Rapier Float32Array collider vertices). Sequential mount -> unmount -> remount of a single bundle is safe, and swapping the bundle prop cleanly remounts Rapier bodies and joints via key={bundle.scene.uuid}.
  2. CoM-Aligned Vehicle RigidBody (body.translation() === body.worldCom()): <KhrVehicle> offsets the underlying <EcctrlVehicle> Rapier RigidBody spawn to position + R(spawnQuat) * chassisCom and shifts local chassis colliders, bundle.scene, children, <ShapeCastWheel>, and <ThrustPropeller> mounts by -chassisCom. World-space visual and collider poses at position remain unchanged while EcctrlVehicle wheel lever arms (rayOrigin - body.translation()) act directly about the true center of mass, preserving authored CG height and parallel-axis inertia without artificial rollover or pitch coupling.
  3. glTF & Rapier Safety:
    • exportKhrGlb emits KHR_physics_rigid_bodies and KHR_implicit_shapes strictly in extensionsUsed (never extensionsRequired).
    • KhrCollider sets density: 0 (exact mass/CoM/inertia are applied once via setAdditionalMassProperties) and omits collisionGroups whenever undefined so Rapier WASM never coerces undefined to 0x00000000.
  4. 5 @pinkaphant/ecctrl v2 Curve & Grip Invariants:
    • Surface Grip Averaging: ShapeCastWheel computes $\mu_{\text{eff}} = \frac{1}{2}(\mu_{\text{ground}} + \text{tireGripFactor})$. Use tireGripForSurface(muPeak, muGround) (2 * muPeak - muGround).
    • Peak Torque Scaling: EcctrlVehicle computes $T_{\max} = \frac{\text{engineHorsepower} \times 7022}{\text{engineMaxRPM}}$. Use engineHorsepowerForPeakTorque(peakTorqueNm, engineMaxRPM).
    • Slip Domains: lngSlipRatioCurveData maps $x = \frac{|\omega R - v_x|}{\max(|v_x|, 10^{-4})} \in [0, 1]$; latSlipRatioCurveData maps slip angle linearly as $x = \frac{\operatorname{atan2}(|v_y|, |v_x|)}{\pi/2} \in [0, 1]$.
    • Monotone Hermite Tangents: CurvePoint r_in/r_out are radian angles (slope = Math.tan(r)). compilePacejkaCurve enforces Fritsch–Carlson clamping so bakeCurveLUT stays strictly in $[0, 1]$ with zero Hermite overshoot.
    • Shift Hysteresis & Gear-Relative Steer Curve: Auto transmission requires shiftDownRPM < shiftUpRPM * min(g[i+1] / g[i]) to prevent shift oscillation; steerAngleCurveData evaluates at v_fwd / (maxWheelAngVel * R) relative to the active gear's redline wheel speed.

See docs/api-reference.md for the complete API, .glb KHR + extras schema, custom gravity, transmission, and curve reference.

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 @khr3/core

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229