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

suplenet-dosage-calculator

v1.0.0

Published

Evidence-based supplement dosage calculator. Calculates personalized doses for creatine, whey protein, magnesium, vitamin D3, zinc, omega-3, caffeine and BCAAs based on body weight, gender and fitness goal.

Downloads

97

Readme

suplenet-dosage-calculator

Evidence-based supplement dosage calculator. Returns personalized doses for 8 common supplements based on body weight, gender and fitness goal.

Built and maintained by Suplenet — Colombia's specialist supplement retailer.

Install

npm install suplenet-dosage-calculator

Usage

const { calculate, getSupplements } = require('suplenet-dosage-calculator');

// List all available supplements
console.log(getSupplements());
// ['creatine', 'whey', 'magnesium', 'vitamin_d3', 'zinc', 'omega3', 'caffeine', 'bcaa']

// Calculate a dose
const result = calculate('creatine', 75, 'male', 'muscle');
console.log(result.primary);
// { value: 5, unit: 'g/day', label: 'Maintenance dose' }

console.log(result.timing);
// 'Post-workout (or any time with food)'

console.log(result.notes[0]);
// 'Monohydrate is the most studied and effective form'

console.log(result.refs[0]);
// { text: 'Kreider et al. (2017) — ISSN Position Stand on Creatine', url: 'https://pubmed.ncbi.nlm.nih.gov/28615996/' }

API

calculate(supplementKey, weightKg, gender, goal)

Returns a DoseResult object.

| Parameter | Type | Values | |---|---|---| | supplementKey | string | See table below | | weightKg | number | 30–300 | | gender | string | 'male' | 'female' | | goal | string | 'muscle' | 'loss' | 'health' | 'endurance' |

Returns:

{
  primary:   { value, unit, label },   // Main recommended dose
  secondary: { value, unit, label },   // Secondary dose or null
  timing:    string,                   // When to take it
  notes:     string[],                 // Clinical notes (goal-specific)
  refs:      [{ text, url }]           // PubMed / NIH references
}

getSupplements()

Returns an array of all available supplement keys.

getSupplementInfo(supplementKey)

Returns { name, nameEn, category } for a supplement without calculating a dose.

Supported Supplements

| Key | Name | Category | |---|---|---| | creatine | Creatine Monohydrate | Strength & Power | | whey | Whey Protein | Muscle Mass | | magnesium | Magnesium | General Health | | vitamin_d3 | Vitamin D3 | Immune System | | zinc | Zinc | Immune System | | omega3 | Omega-3 (EPA+DHA) | Cardiovascular Health | | caffeine | Caffeine | Performance | | bcaa | BCAA | Recovery |

Dose Methodology

All calculations are based on peer-reviewed research and institutional guidelines:

License

MIT © Suplenet