colostrum-math (WASI)
A tiny command-line calculator for the numbers on a colostrum powder label. Give it the jar weight and the serving size, and optionally the price and the IgG percentage from the label or the certificate of analysis:
wasmer run biomixa/colostrum-math -- --jar 120 --serving 2 --price 79.99 --igg 25 --opened 2026-12-01
servings per jar: 60
empty on: 2027-01-30 (one serving a day)
cost per serving: $1.33
IgG per serving: 0.5 g
cost per gram of IgG: $2.67
(The IgG figure above is an example input, not the specification of any product.)
Why cost per gram of IgG
Two jars with the same price can be very different buys. One may hold 60 g, another 120 g; one may state 15% IgG, another 30%. Dividing the price by the grams of IgG in the whole jar puts both on the same scale. The run-out date helps if you reorder before a jar is empty, so a subscription or a second jar arrives in time.
How it runs
The package is plain Python (no third-party libraries) executed by the python/python WebAssembly package, so it
runs the same on Linux, macOS and Windows without installing Python. The source sits in /src inside the package,
with a test file (test_colostrum_math.py) that checks every function against hand-worked examples.
The same code is published as a conda package, biomixa/colostrum-math on anaconda.org.
About
Made by BIOMIXA, a small brand in Irvine, California that sells grass-fed bovine colostrum powder. If you are new to reading these labels, the BIOMIXA blog has a walk-through of what the numbers on a colostrum label mean.
This tool only does arithmetic. It is not dosing or medical advice: use the serving size on your label and talk to your doctor, especially if you are pregnant, nursing or allergic to dairy. Statements about supplements have not been evaluated by the Food and Drug Administration.
MIT License.