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

thyroidai

v1.2.0

Published

Professional AI engine to analyze thyroid panels (TSH, T4, T3, Antibodies) and map metabolic health.

Readme

ThyroidAI

BANNER

License: CC BY-NC 4.0 npm version Status: Beta

⚠️ While ThyroidAI is a powerful metabolic triangulation system, it is intended solely as an educational and interpretive support tool. It is not a substitute for professional medical diagnosis or treatment. Always consult with a healthcare professional regarding any medical decisions.


🚧 Beta version: Active development and testing phase.

ThyroidAI is an advanced metabolic analysis tool powered by Artificial Intelligence, designed to interpret laboratory reports (PDF) with a focus on thyroid health. It utilizes a Master Triangulation Protocol to deduce hormonal markers even when they are missing from the blood test, based on the patient's general biochemistry.

✨ Features

  • 🔬 Metabolic Triangulation (v2.1): Expert analysis of thyroid axis and conversion ratios ($FT3/FT4$, $FT3/rT3$).
  • 💊 Pharmacological Engine: Evaluates how thyroid medications (T4, T3, NDT) impact laboratory results.
  • 🤖 Universal AI Support: Native integration with OpenAI, Anthropic, Gemini, xAI, and local Ollama.
  • 🌍 Global Reach: Full multilingual interface and processing in 20 different languages.
  • 📋 Smart Extraction: High-fidelity PDF parsing to convert lab reports into structured clinical data.
  • 📈 Batch Processing: Ability to analyze multiple files simultaneously for research or cohort studies.
  • 🦋 Clinical Context: Analysis logic tailored to specific conditions like Hashimoto's or Graves'.
  • 🛡️ Academic License: Data persistence via JSON and non-commercial scientific licensing (CC BY-NC).

BANNER

ThyroidAI is not just a document reader; it is a biochemical triangulation engine. Its primary function is to solve the "missing pieces" problem in conventional blood tests.

main.js

Versatility and Intent

This tool was designed to build more versatile and accessible systems for generating express thyroid reports. By leveraging triangulation calculations, it allows practitioners and users to obtain a high-precision metabolic snapshot in seconds, even when faced with incomplete lab data. It bridges the gap between raw data and clinical insight, making complex functional analysis fast, scalable, and easy to interpret.

When a specific marker has not been requested by the doctor, the tool uses a metabolic "rule of three" to map the probability of imbalance based on the "echo" that hormones leave in other bodily systems.

Triangulation Mechanisms Table (Data Mapping)

| Target Marker | If data is missing, check (Support 1) | Hypothesis Reinforcement (Support 2) | Rule of Three Logic | | :--- | :--- | :--- | :--- | | Free T3 (Activity) | High LDL Cholesterol | Low Ferritin (< 60 ng/mL) | Without iron and with high LDL, T3 cannot enter the cell or is not produced efficiently. | | TSH (Central Signal) | Elevated CPK + Low Sodium | High Uric Acid | Hypothyroidism slows purine clearance and affects the sodium-potassium pump. | | T4 (Supply) | High Total Cholesterol | Low Alkaline Phosphatase | Low zinc and vitamin A levels (detected via ALP) suggest poor T4 production. | | rT3 (Block/Stress) | High CRP & Homocysteine | GGT & Total Bilirubin > 1.0 | A congested and inflamed liver diverts T4 toward Reverse T3 (metabolic brake). | | Antibodies (Autoimm.) | Vit. D < 30 + B12 < 400 | Lymphocytes > 40% | Immune dysregulation due to key vitamin deficiencies often precedes Anti-TPO elevation. | | TBG (Transport) | Albumin > 4.8 g/dL | High Total Proteins | Excessive transport proteins "kidnap" free hormones, even if "Total" levels look normal. |


🌐 ThyroidAI Web App

BANNER In addition to the core processing logic, this repository features a fully interactive Web App designed for a seamless, visual user experience. This interface allows users to upload laboratory PDF reports directly from the browser, choose from over 20 languages, and connect with various AI providers (OpenAI, Anthropic, Gemini, Grok, or Ollama) through a personalized setup. The App automatically manages the "Master Protocol" for metabolic analysis and generates a detailed results dashboard, enabling anyone to perform advanced thyroid assessments without writing a single line of code.

index.html

🛠️ Installation

  1. Clone this repository:

    git clone git clone https://github.com/alejomalia/thyroidAI.git
    cd thyroidAI
  2. Install the required dependencies:

    npm install fs path chalk enquirer pdf-parse

🚀 Usage

Launch the application with the following command:

node main.js  # Main engine
node thyroidai-cli.js  # Verify language, AI connectivity and protocol logic

⚖️ License and Academic Purpose

License: CC BY-NC 4.0

This project is committed to Open Science and the advancement of medical education. To ensure it remains a resource for the global research community and to prevent unauthorized commercial exploitation, it is licensed under the CC BY-NC 4.0.

📝 Key Terms:

  • Academic & Scientific Use: You are encouraged to share, adapt, and build upon this material for educational and research purposes.

  • Non-Commercial: This tool and its derivatives cannot be used for commercial purposes or financial gain without explicit permission.

  • Attribution: You must give appropriate credit to the original author (Alejo Malia) and provide a link to the license.