npm.io
1.0.0-rc.1 • Published 3d ago

@jgdina/core

Licence
GPL-3.0-only
Version
1.0.0-rc.1
Deps
0
Size
440 kB
Vulns
0
Weekly
0

@jgdina/core

Environment-neutral contracts, input validation, resource guards, structured errors, and backend orchestration for jGDINA v1. This package does not contain the numerical estimator; use jgdina for the direct engine or inject a FitBackend with createJGDINA().

import { estimateFitMemory, validateFitInput } from "@jgdina/core";

const validated = validateFitInput({ responses, qMatrix, model: "GDINA" });
const estimate = estimateFitMemory({ respondents: 1_000, items: 20, attributes: 5 });

The memory estimate includes worker transport and a conservative runtime reserve by default. It is an admission aid, not a measured peak-RSS guarantee. Application code should normally use a high-level runtime package rather than passing ValidatedFitInput across its own trust boundary.

License: GPL-3.0-only; see LICENSE and NOTICE. Compatibility provenance is in UPSTREAM.md. The preferred TypeScript source and exact package-local rebuild procedure are in SOURCE.md.