JSPM

  • Created
  • Published
  • Downloads 99
  • Score
    100M100P100Q84592F
  • License MIT

AI-powered unified cancer treatment framework with multi-provider support for medical research and patient care

Package Exports

  • @erosolaraijs/cure
  • @erosolaraijs/cure/dist/bin/cure.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@erosolaraijs/cure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Cure

AI-powered precision oncology platform for cancer treatment, clinical decision support, and research.

  ██████╗██╗   ██╗██████╗ ███████╗
 ██╔════╝██║   ██║██╔══██╗██╔════╝
 ██║     ██║   ██║██████╔╝█████╗
 ██║     ██║   ██║██╔══██╗██╔══╝
 ╚██████╗╚██████╔╝██║  ██║███████╗
  ╚═════╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝

Installation

npm install -g @erosolaraijs/cure

Quick Start

# Launch interactive AI oncologist
cure

# Set your AI provider (xAI or OpenAI)
/model openai
/key YOUR_API_KEY

# Generate a cure protocol
/cure NSCLC IV KRAS_G12C

Features

Interactive AI Oncologist

Chat with an AI-powered oncology assistant for:

  • Treatment recommendations based on cancer type, stage, and biomarkers
  • Drug mechanism explanations
  • Clinical trial guidance
  • Biomarker interpretation

Multi-Provider Support:

  • xAI Grok (grok-4-1-fast-reasoning) - Default
  • OpenAI GPT-5.1 (gpt-5.1) - Alternative

Switch providers at runtime with /model xai or /model openai.

Comprehensive Cancer Coverage

Category Coverage
Cancer Types 200+ types and histological subtypes
Biomarkers 500+ actionable targets
Protocols 100+ (NCCN, ESMO, ASCO, FDA)
Patient Populations Pediatric, AYA, adult, elderly, frail
Special Circumstances Pregnancy, transplant, autoimmune, HIV
Stages Localized, locally advanced, metastatic, recurrent

Core Capabilities

Patient Analysis (/analyze)

  • Genomic profiling and biomarker assessment
  • Risk stratification and survival prediction
  • Treatment response modeling
  • MSI/TMB/HRD status analysis

Treatment Planning (/plan)

  • NCCN, ESMO, ASCO protocol integration
  • Personalized treatment recommendations
  • Multi-modality planning (surgery, radiation, systemic)
  • Timeline and monitoring schedules

Cure Protocol Generation (/cure)

  • Comprehensive cure strategies by cancer type and stage
  • Drug target prioritization with evidence levels
  • Immunotherapy protocol matching
  • Projected outcomes (response rate, 5-year survival, cure confidence)

Drug Target Discovery (/discover)

  • AI-driven target identification
  • Evidence-based prioritization (FDA-approved, clinical trials, preclinical)
  • Pathway analysis
  • Approved drug matching

Clinical Trial Matching (/trials)

  • ClinicalTrials.gov integration
  • Biomarker-based eligibility matching
  • Location-aware search
  • Phase and status filtering

Drug Safety (/safety)

  • Drug-drug interaction checking
  • Black box warning alerts
  • QT prolongation risk assessment
  • Pharmacogenomic considerations (DPYD, UGT1A1, TPMT/NUDT15)

ML Outcome Prediction (/predict)

  • Response prediction (CR, PR, SD, PD)
  • Survival estimates (PFS, OS with confidence intervals)
  • Toxicity risk assessment
  • Resistance prediction

EHR Integration

Connect to hospital systems via HL7 FHIR R4:

/ehr connect epic
/ehr connect cerner

Supported Systems:

  • Epic
  • Cerner

Data Exchange:

  • Patient demographics
  • Cancer diagnoses (ICD-10)
  • Biomarker results
  • Treatment history
  • Medication records

Genomic Platform Integration

/genomics platforms

Supported Platforms:

  • Foundation Medicine (FoundationOne CDx)
  • Guardant Health (Guardant360, GuardantOMNI)
  • Tempus (xT, xF, xR)

Analysis Types:

  • Somatic variant detection
  • Copy number alterations
  • Gene fusions
  • MSI/TMB analysis
  • Therapy matching

HIPAA Compliance

  • End-to-end encryption
  • PHI masking and de-identification
  • Audit logging with 7-year retention
  • Role-based access control
  • Consent management

CLI Commands

AI Chat Commands

Command Description
/key [provider] [key] Set API key (xai or openai)
/model [xai|openai] Show/switch AI provider
/clear Clear conversation history

Clinical Commands

Command Description
/analyze [patient] Analyze patient data
/plan [patient] Design treatment plan
/cure [cancer] [stage] [mutations...] Generate cure protocol
/discover [gene] [cancer] Drug target discovery
/trials [cancer] [biomarkers...] Find clinical trials
/safety [drug1] [drug2...] Check drug interactions
/predict [patient] ML outcome predictions

System Commands

Command Description
/status System health check
/ehr [connect|status] EHR integration
/genomics [platforms] Genomic platforms status
/demo Run framework demonstration
/version Show version
/update Check for updates

Tool Commands

Command Description
/tools List diagnostic tools
/tool <id> Run a tool (see /tools)
/tool all Run all tools

Programmatic API

import {
  CancerTreatmentCapabilityModule,
  createOncologyPlatform,
  FHIRClient,
  ClinicalTrialsGovClient,
  OutcomePredictorService,
  DrugSafetyService,
  HIPAAComplianceService
} from '@erosolaraijs/cure';

// Quick start with full platform
const platform = await createOncologyPlatform({
  ehr: {
    enabled: true,
    vendor: 'epic',
    baseUrl: 'https://epic.hospital.org/fhir',
    clientId: 'your-client-id'
  },
  genomics: {
    enabled: true,
    platforms: ['foundation', 'guardant', 'tempus']
  },
  clinicalTrials: {
    enabled: true,
    maxDistance: 100
  },
  ml: {
    enabled: true,
    modelVersion: '1.0.0'
  },
  safety: {
    enabled: true,
    strictMode: true
  },
  compliance: {
    enabled: true,
    auditRetentionDays: 2555
  }
});

// Generate comprehensive treatment plan
const plan = await platform.generateComprehensivePlan(patient, 'DR001');

Core Module Usage

// Cancer treatment capability
const capability = new CancerTreatmentCapabilityModule();

// Analyze patient
const analysis = await capability.analyzePatient('P001', true);

// Generate cure protocol
const cure = await capability.cureCancer('P001', 'Lung', 'IV', {
  mutations: ['EGFR', 'TP53'],
  biomarkers: ['PD-L1'],
  msiStatus: 'MSS',
  tmbLevel: 'High'
});

// Discover drug targets
const targets = await capability.discoverDrugTargets('Melanoma', 'BRAF');

Individual Services

// EHR Integration
const fhir = new FHIRClient(config);
const patient = await fhir.getPatient('12345');
const conditions = await fhir.getConditions('12345');

// Clinical Trials
const trials = new ClinicalTrialsGovClient();
const matches = await trials.searchTrials({
  condition: 'Non-Small Cell Lung Cancer',
  intervention: 'pembrolizumab',
  status: 'RECRUITING'
});

// ML Predictions
const predictor = new OutcomePredictorService();
const response = await predictor.predictResponse(patientFeatures, treatmentFeatures);

// Drug Safety
const safety = new DrugSafetyService();
const interactions = await safety.checkInteractions(['pembrolizumab', 'ipilimumab']);

// HIPAA Compliance
const hipaa = new HIPAAComplianceService();
await hipaa.logAccess(userId, patientId, 'VIEW', 'Clinical review');

Environment Variables

Variable Description
AI_PROVIDER AI provider: xai or openai (default: xai)
XAI_API_KEY xAI API key
OPENAI_API_KEY OpenAI API key
FHIR_BASE_URL FHIR server URL
FHIR_CLIENT_ID FHIR OAuth client ID
FHIR_CLIENT_SECRET FHIR OAuth client secret

Supported Cancer Types

Click to expand full list

Solid Tumors:

  • Lung (NSCLC, SCLC, mesothelioma)
  • Breast (HR+, HER2+, TNBC)
  • Colorectal
  • Prostate
  • Melanoma
  • Pancreatic
  • Hepatocellular
  • Gastric/Esophageal
  • Ovarian
  • Endometrial
  • Cervical
  • Bladder/Urothelial
  • Renal Cell
  • Head and Neck
  • Thyroid
  • Sarcomas
  • Brain (GBM, meningioma)
  • And 150+ more subtypes

Hematologic Malignancies:

  • Acute Myeloid Leukemia (AML)
  • Acute Lymphoblastic Leukemia (ALL)
  • Chronic Myeloid Leukemia (CML)
  • Chronic Lymphocytic Leukemia (CLL)
  • Diffuse Large B-Cell Lymphoma
  • Follicular Lymphoma
  • Hodgkin Lymphoma
  • Multiple Myeloma
  • Myelodysplastic Syndromes
  • Myeloproliferative Neoplasms

Rare Cancers:

  • Cholangiocarcinoma
  • Neuroendocrine Tumors
  • GIST
  • Adrenocortical Carcinoma
  • Thymoma
  • And more

Emerging Therapeutics

The platform includes cutting-edge treatment modalities:

  • Antibody-Drug Conjugates (ADCs): T-DXd, sacituzumab govitecan
  • Bispecific Antibodies: teclistamab, glofitamab
  • CAR-T Therapies: axi-cel, liso-cel, ide-cel
  • Tumor-Infiltrating Lymphocytes (TILs): lifileucel
  • KRAS Inhibitors: sotorasib, adagrasib
  • Protein Degraders: PROTACs, molecular glues
  • Radiopharmaceuticals: Lu-177 PSMA, I-131 MIBG
  • Cancer Vaccines: mRNA-4157, personalized neoantigen vaccines

Requirements

  • Node.js >= 18.0.0

License

MIT