DEV Community

MDTools
MDTools

Posted on

Building Open-Source Drug Dosing Calculators That Load in Under 1 Second

Medication dosing errors kill people. According to the FDA, they account for roughly 37% of all reported medication errors. We decided to build something about it.

At MDTools.org, we created a suite of free, open-source drug dosing calculators — no signup, no ads, no paywall. Every tool loads in under 1 second on any device. Here's our technical approach and what we built.

The Architecture: Zero Dependencies

Every calculator is vanilla JavaScript. No React. No Vue. No build step. Each page is a single HTML file with inline CSS and JS. The result:

  • < 50KB per page (including all CSS/JS)
  • < 1 second load time on 3G connections
  • Zero external dependencies to break or slow things down
  • Works offline once cached

Drug Dosing Calculators

Here's what we built, each implementing formulas directly from published clinical guidelines:

Anticoagulants

Endocrine & Metabolic

Anesthesia & Pain

Pediatrics

Supporting Clinical Tools

Dosing calculators don't exist in isolation. Clinicians need these alongside:

Pharmacy Tools

We expanded into pharmacy workflow calculators:

Lab Reference Values

We also built evidence-based lab reference pages grounded in Tietz Clinical Chemistry:

CRP · Bilirubin · Potassium · Sodium · Creatinine · Albumin · Calcium · Chloride · ALP · BNP

The Citation Standard

Every formula on MDTools cites its source. Every page has a "Formula last verified" date. We link to original guidelines (ACCP, ASHP/IDSA, KDIGO, etc.) because transparency builds trust.

International Access

We offer a complete German localization covering all 100+ tools. Drug names are localized (Vyvanse → Elvanse, Accutane → Aknenormin).

Open Source

Everything is MIT licensed on GitHub. The formula library is at medical-calculator-formulas. We also maintain an awesome-medical-tools list.

All tools: mdtools.org — free, forever, for everyone.

Top comments (0)