{"_id":"@edithatogo/mchs-wasm-binding","name":"@edithatogo/mchs-wasm-binding","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@edithatogo/mchs-wasm-binding","private":false,"version":"0.1.0","description":"TypeScript adapter shell for future wasm-pack output; no calculator logic.","type":"module","scripts":{"typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"devDependencies":{"typescript":"^5.6.3","vitest":"^4.1.6"},"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/edithatogo/mchs.git","directory":"microcosting_healthservices/wasm-binding"},"publishConfig":{"access":"public"},"gitHead":"444a8c439d524f1faf2b8eb58db747a19ee6a3f3","_id":"@edithatogo/mchs-wasm-binding@0.1.0","bugs":{"url":"https://github.com/edithatogo/mchs/issues"},"homepage":"https://github.com/edithatogo/mchs#readme","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-0GarRubfN7lucDSKVM4wMpIZCqKb1qn2oYQzx55SlCJs5O5kub5qDYUpGic+zCDB5Kl0l9oOxZwDwJims6bXug==","shasum":"cc43a58b0fb3b5d05fa5d4a6359164a7ed6eddd0","tarball":"https://registry.npmjs.org/@edithatogo/mchs-wasm-binding/-/mchs-wasm-binding-0.1.0.tgz","fileCount":6,"unpackedSize":5399,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCZVB92AIPIoihXdwgDjsEOzvYRKIFgGTbqBTCuNCPX/QIhALtkmxrGMBAyWexhoquXGRen86kANGp40dfps3D2oH2C"}]},"_npmUser":{"name":"edithatogo","email":"d.a.mordaunt@gmail.com"},"directories":{},"maintainers":[{"name":"edithatogo","email":"d.a.mordaunt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mchs-wasm-binding_0.1.0_1779613692266_0.23148355257989395"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-24T09:08:12.159Z","0.1.0":"2026-05-24T09:08:12.407Z","modified":"2026-05-24T09:08:12.568Z"},"maintainers":[{"name":"edithatogo","email":"d.a.mordaunt@gmail.com"}],"description":"TypeScript adapter shell for future wasm-pack output; no calculator logic.","homepage":"https://github.com/edithatogo/mchs#readme","repository":{"type":"git","url":"git+https://github.com/edithatogo/mchs.git","directory":"microcosting_healthservices/wasm-binding"},"bugs":{"url":"https://github.com/edithatogo/mchs/issues"},"license":"Apache-2.0","readme":"# wasm-binding\n\nThis directory is a minimal TypeScript adapter shell for a future Rust/WASM\nbinding.\n\nIt is intentionally not a calculator implementation. The wrapper only:\n\n- loads a future `wasm-pack`-style module\n- validates the exported surface\n- provides a safe boundary for downstream callers\n\nFormula logic stays outside this package. When the Rust/WASM build becomes\nready, the generated output should be wired into the adapter here rather than\nduplicating the calculator rules in TypeScript.\n\nBrowser demos that use this package must use synthetic data only. Do not place\nPHI, patient-level records, secrets, tokens, or private study data in fixtures,\nbundles, screenshots, logs, or example payloads.\n\n## Current status\n\n- No Rust build pipeline is defined here yet\n- No funding formulas are implemented here\n- The package is a scaffold for future `wasm-pack` output\n- Not publication-ready and not published to npm\n\n## Suggested shape\n\nThe adapter expects a module factory so callers can plug in future WASM output\nwithout changing the wrapper contract:\n\n```ts\nimport { createWasmAdapter } from './src/index.js';\n\nconst binding = await createWasmAdapter({\n  moduleFactory: () => import('../pkg'),\n  validateExports: (candidate): candidate is { calculate: (input: unknown) => unknown } =>\n    typeof candidate === 'object' &&\n    candidate !== null &&\n    typeof (candidate as Record<string, unknown>).calculate === 'function',\n});\n```\n\nThat keeps the TypeScript side focused on loading, validation, and handoff.\n","readmeFilename":"README.md","_rev":"1-99be77f07767a624cbfbceeb14635071"}