Commercial pet food bag charts often give wide, optimistic volume ranges ("feed 1/2 to 1 cup") that ignore whether a cat or dog is neutered, indoor-only, growing, or trying to lose weight—and it gets even trickier when owners mix canned wet food with dry kibble across US Imperial ( lbs / cups ) and Metric ( kg / grams ) labels.
I recently built PetFeedingCalc , a lightweight set of free educational pet nutrition calculators using Astro , React , and TypeScript , and wanted to share a few architecture choices that kept it fast and maintainable.
1. Pure TypeScript Allometric Energy Math
Veterinary nutrition guidelines (NRC, WSAVA, AAHA) don't scale calories linearly with body weight.…