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

peptide-calc

v1.0.0

Published

Dependency-free reconstitution, dilution and molarity calculators for research peptides. For in vitro laboratory use.

Readme

🧪 peptide-calc — Peptide Research Calculators

CI License: MIT No dependencies

Peptide reconstitution, dilution and molarity calculators

Small, dependency-free JavaScript library for the everyday maths of preparing research-peptide solutions in the lab — reconstitution / dilution and molarity / concentration — plus a self-contained web calculator you can run in the browser.

▶️ Live calculator: https://paulnocturne.github.io/rsbiolabs-peptide-tools/

Maintained by RS Bio Labs · more tools at https://rsbiolabs.com/tools · background reading in the Knowledgebase.


⚠️ For in vitro research use only

This library performs standard laboratory arithmetic (concentration, dilution, molarity). It is not dosing software and provides no medical or veterinary guidance. Molecular weights should always be confirmed against your compound's Certificate of Analysis.


Install

npm install peptide-calc

Or drop src/peptide-calc.js straight into a page — it's a single ES module with zero dependencies.

Usage

import { reconstitution, molarity, MW } from 'peptide-calc';

// Reconstitution: 10 mg vial + 2 ml diluent, want to draw 250 mcg
reconstitution(10, 2, 250);
// → { mgPerMl: 5, mcgPerMl: 5000, drawMl: 0.05, units: 5 }
//   i.e. 5 mg/ml, draw 0.05 ml = 5 units on a U-100 syringe

// Molarity: 10 mg of retatrutide in 2 ml
molarity(10, 2, MW.retatrutide);
// → { molPerL: 0.001057, mM: 1.057, uM: 1056.8, mgPerMl: 5 }

API

| Function | Returns | |---|---| | concentration(mg, ml) | { mgPerMl, mcgPerMl } | | drawVolume(targetMcg, mcgPerMl) | ml to draw | | syringeUnits(ml, unitsPerMl = 100) | volume in syringe units (U-100 default) | | reconstitution(mg, ml, targetMcg, unitsPerMl = 100) | { mgPerMl, mcgPerMl, drawMl, units } | | molarity(massMg, volMl, mwGmol) | { molPerL, mM, uM, mgPerMl } | | MW | frozen table of approximate reference molecular weights (g/mol) |

All numeric inputs must be finite and > 0; invalid input throws a RangeError.

The maths

mg/ml     = mg ÷ ml
mcg/ml    = mg/ml × 1000
draw (ml) = target_mcg ÷ mcg/ml
units     = ml × unitsPerMl          (U-100 → ×100)
molarity  = mass_mg ÷ (MW_g/mol × volume_ml)   [mol/L]   ·   mM = ×1000 · µM = ×1e6

Develop

npm test        # runs the node:test suite (no dependencies)

Contributing

Issues and PRs welcome — especially additional verified molecular weights (with a source) and new lab-maths helpers. Please keep the library dependency-free.

License

MIT © RS Bio Labs. Built and maintained by the team at rsbiolabs.com — UK research peptides. Questions: [email protected].