vialfile

Vial inventory & cost

Running out mid-cycle is a safety failure — a sudden taper of a GH secretagogue or a scramble to split doses across vials of different concentrations. This page tracks every vial you own, pulls in your injection log to estimate remaining mg, and compares the total to your active stack's burn rate. If you've got less than a week of supply, it tells you.

Supply per peptide

Your vials

How burn-rate is computed

  1. Open vials sort oldest-first. The injection log's entries (timestamped after your oldest open vial's open date) are allocated FIFO — the first vial drains until empty, then overflow goes to the next.
  2. Sealed vials count toward total mg in hand. They don't get allocated log use until you mark them open.
  3. Daily burn comes from your active stack. The stack item's doseMcg × the peptide library's typical frequency (daily, 2x-weekly, etc.). Without an active stack, the math is skipped and you see "set an active stack to compute."
  4. Running-out threshold = 7 days. Low = 7–14 days. Above 14 = ok. The warning at the top lists every peptide in the running-out bucket.

Inventory FAQ

Does inventory write to my injection log?

No. Inventory is a read-only consumer of vialfile-log-v1, the same pattern the stack and bloodwork pages use. Your log entries stay user-authored; inventory looks at them without touching.

What if my injection log doesn't match the log-derived mg used?

Manual mgUsed on each vial is treated as a floor — if you record 2 mg used manually, the FIFO allocation starts at 2 mg. If the log contains more doses than the manual number, the log takes over. If it contains fewer (e.g. you didn't log every dose), the manual floor is preserved.

Why FIFO oldest-opened?

Real pharmacy behavior: you finish the vial you opened first before opening the next. FIFO makes the running-out estimate refer to the vial you're actively drawing from, not the average across all open vials. When the oldest fills to capacity, overflow bumps into the next.

What counts as "running out"?

Fewer than 7 days of supply at the active-stack burn rate. The warning surface at the top of the page lists every peptide in this state. 7–14 days = "low" (grey-warn badge but no top banner). More than 14 days = ok.

Why isn't inventory in the backup file?

The backup file covers injections, side-effects, and bloodwork — the three user-authored logs. Inventory is recoverable from receipts and the injection log; losing it is a rebuild afternoon, not years of history. A future backup version may include it; for now, v1 stays stable.

What if I don't have an active stack?

The per-peptide summary shows mg in hand and total cost, but days-of-supply is blank ("set an active stack to compute"). Go to the stack page and mark one active to light up the supply math.