Scan your whole stack
Are you using @khr3/core?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.3
@khr3/core was last scanned on 24 Nov 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
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.
@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 |
npm install @khr3/core @pinkaphant/ecctrl @dimforge/rapier3d-compat @react-three/fiber @react-three/rapier react react-dom three
| 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 |
@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 |
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>
);
}
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.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).three is >=0.159.0.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}.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.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.@pinkaphant/ecctrl v2 Curve & Grip Invariants:ShapeCastWheel computes $\mu_{\text{eff}} = \frac{1}{2}(\mu_{\text{ground}} + \text{tireGripFactor})$. Use tireGripForSurface(muPeak, muGround) (2 * muPeak - muGround).EcctrlVehicle computes $T_{\max} = \frac{\text{engineHorsepower} \times 7022}{\text{engineMaxRPM}}$. Use engineHorsepowerForPeakTorque(peakTorqueNm, engineMaxRPM).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]$.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.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.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.