npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kryptosai/veros

v1.3.3

Published

Open-source validation layer for clinical AI. Fact-checks AI claims against FHIR patient records with citations.

Readme


Quick demo

git clone https://github.com/KryptosAI/veros.git && cd veros && npm install && npm start
# → http://localhost:3100 (4 synthetic ophthalmology patients pre-loaded)
# Ask a question
curl -X POST localhost:3100/api/query/demo \
  -H 'Content-Type: application/json' \
  -d '{"question":"is this patient allergic to penicillin","patientId":"patient-002","userId":"user-dr-nguyen"}'
{
  "understanding": "Checking for allergies or adverse reactions",
  "answer": "YES — Maria E Santos has a documented Penicillin. HIGH RISK. Anaphylaxis with respiratory distress in 1990.",
  "citations": [{
    "sourceType": "AllergyIntolerance",
    "sourceId": "allergy-002",
    "display": "Penicillin — HIGH RISK (Confirmed)",
    "snippet": "Anaphylaxis with respiratory distress — avoid penicillin-class antibiotics."
  }],
  "policy": "all_cited"
}
# Verify an AI claim — decomposes compound claims into atomic propositions
curl -X POST localhost:3100/api/verify/demo \
  -H 'Content-Type: application/json' \
  -d '{"claim":"Patient has diabetic retinopathy, is on metformin, and is allergic to penicillin","patientId":"patient-001","userId":"user-dr-chen"}'
{
  "verdict": "PARTIALLY_VERIFIED",
  "reason": "2 verified, 0 contradicted, 1 unverifiable.",
  "decomposed": true,
  "propositions": [
    { "proposition": "Patient has diabetic retinopathy", "verdict": "VERIFIED", "reason": "Confirmed: 'Diabetic Retinopathy — Proliferative, Both Eyes' is documented (active)." },
    { "proposition": "is on metformin", "verdict": "VERIFIED", "reason": "Confirmed: Metformin 1000mg — active (order)." },
    { "proposition": "is allergic to penicillin", "verdict": "UNVERIFIABLE", "reason": "No allergy or medication history found for penicillin." }
  ]
}
# Generate a differential diagnosis
curl -X POST localhost:3100/api/differential/demo \
  -H 'Content-Type: application/json' \
  -d '{"symptoms":"62yo diabetic with progressive blurry vision OS x6mo, no pain, no flashes","patientId":"patient-001","userId":"user-dr-chen"}'

| Rank | Diagnosis | Likelihood | Supporting | |---|---|---|---| | 1 | Diabetic Macular Edema Progression | high | HbA1c 8.2%, PDR, anti-VEGF therapy | | 2 | Vitreous Hemorrhage | medium | PDR both eyes | | 3 | Cataract | medium | Age 62, diabetic | | 4 | Tractional Retinal Detachment | low | PDR both eyes | | 5 | NAION | low | Age 62, hypertension |

Each diagnosis includes suggested tests to order and questions to ask the patient.

What it does

AI systems are being embedded in every EHR. They write notes, suggest diagnoses, summarize charts. They also hallucinate. A fabricated allergy or a wrong medication in a clinical note isn't a typo — it's dangerous. Veros is a validation layer: submit a claim, and it checks whether the actual patient record backs it up, contradicts it, or has no data either way.

Features

| | | | |---|---|---| | 🗣 Plain English queries | 📋 Cited FHIR sources | 🔍 AI claim verification | | Ask anything about a patient. LLM interprets intent, searches FHIR, answers with citations. | Every answer links to the exact chart source — resource type, ID, author, date, clinical snippet. | Submit a claim. Get VERIFIED, CONTRADICTED, or UNVERIFIABLE with per-proposition evidence. | | 🩺 Differential diagnosis | 🔒 RBAC + audit trail | 🏥 FHIR-native · SMART auth | | Describe symptoms. Get ranked differential with supporting/contradicting evidence, suggested tests, patient questions. | 9 clinical roles. Per-resource access. Hash-chained tamper-evident audit log. | Speaks FHIR R4. Authenticates via SMART on FHIR. Works with Epic, Oracle, Medplum, OpenEMR, or anything with a FHIR API. |

Install

npm install @kryptosai/veros
git clone https://github.com/KryptosAI/veros.git
cd veros && npm install
npm start          # → http://localhost:3100
npm run eval       # 27 unit tests
npm run benchmark  # citation precision/recall

Enable natural language understanding (otherwise falls back to deterministic regex):

export DEEPSEEK_API_KEY="sk-your-key"
npm start

Open source under MIT. PRs and issues welcome on GitHub.

License

MIT © KryptosAI