ruvector/npm/packages/rvdna/package.json
Claude d7efab34c5 feat(rvdna): add npm biomarker engine with risk scoring, streaming, and benchmarks
ADR-015: Pure-JS biomarker engine mirroring Rust biomarker.rs and
biomarker_stream.rs exactly. Includes:

- src/biomarker.js: 20-SNP composite risk scoring, 6 gene-gene
  interactions, 64-dim L2-normalized profile vectors, synthetic
  population generation with Mulberry32 PRNG
- src/stream.js: RingBuffer, StreamProcessor with Welford online
  stats, CUSUM changepoint detection, z-score anomaly detection,
  linear regression trend analysis, batch reading generation
- tests/test-biomarker.js: 35 tests + 5 benchmarks covering all
  classification levels, risk scoring, vector encoding, population
  generation, streaming, anomaly/trend detection
- index.d.ts: Full TypeScript definitions for all biomarker APIs
- package.json: Bump to v0.3.0, add biomarker keywords

Benchmark results (Node.js):
  computeRiskScores: 7.33 us/op
  encodeProfileVector: 9.51 us/op
  RingBuffer push+iter: 3.32 us/op

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 15:27:37 +00:00

65 lines
1.6 KiB
JSON

{
"name": "@ruvector/rvdna",
"version": "0.3.0",
"description": "rvDNA — AI-native genomic analysis. 20-SNP biomarker risk scoring, streaming anomaly detection, 64-dim profile vectors, 23andMe genotyping, CYP2D6/CYP2C19 pharmacogenomics, variant calling, protein prediction, and HNSW vector search.",
"main": "index.js",
"types": "index.d.ts",
"author": "rUv <info@ruv.io> (https://ruv.io)",
"homepage": "https://github.com/ruvnet/ruvector/tree/main/examples/dna",
"repository": {
"type": "git",
"url": "https://github.com/ruvnet/ruvector.git",
"directory": "npm/packages/rvdna"
},
"bugs": {
"url": "https://github.com/ruvnet/ruvector/issues"
},
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"files": [
"index.js",
"index.d.ts",
"src/",
"README.md"
],
"scripts": {
"build:napi": "napi build --platform --release --cargo-cwd ../../../examples/dna",
"test": "node tests/test-biomarker.js"
},
"devDependencies": {
"@napi-rs/cli": "^2.18.0"
},
"optionalDependencies": {
"@ruvector/rvdna-linux-x64-gnu": "0.1.0",
"@ruvector/rvdna-linux-arm64-gnu": "0.1.0",
"@ruvector/rvdna-darwin-x64": "0.1.0",
"@ruvector/rvdna-darwin-arm64": "0.1.0",
"@ruvector/rvdna-win32-x64-msvc": "0.1.0"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"genomics",
"bioinformatics",
"dna",
"rvdna",
"biomarker",
"health",
"risk-score",
"streaming",
"anomaly-detection",
"23andme",
"pharmacogenomics",
"variant-calling",
"protein",
"hnsw",
"vector-search",
"napi",
"rust",
"ai",
"wasm"
]
}