Modern Health & Fitness Calculators - Available as Web App & Desktop App
This is a collection of sleek, user-friendly health and fitness calculators built with Astro. Say goodbye to boring, outdated calculator interfaces and hello to engaging, modern tools for your health journey. Download as a desktop or mobile app for the best experience!
- ๐งฎ BMI Calculator - Calculate your Body Mass Index with instant visual feedback
- ๐ฅ BMR Calculators - Multiple basal metabolic rate formulas:
- Harris-Benedict Equation
- Mifflin-St Jeor Equation
- Katch-McArdle Formula (requires body fat %)
- ๏ฟฝ Body Fat Calculator - Navy circumference method for accurate body fat percentage measurement
- โค๏ธ Heart Rate Zones Calculator - Calculate optimal training zones using Karvonen and percentage methods
- ๏ฟฝ๐ช One Rep Max Calculator - Estimate maximum lift capacity using Epley, Brzycki, and Lombardi formulas
- ๐๏ธ Muscle Potential Calculator - Casey Butt's scientific formula for predicting natural muscle-building potential
- ๐ Running Pace Calculator - Calculate race finish times for 5K, 10K, half marathon, and full marathon distances
- ๐ฅ Potato Hack Calculator - Calorie deficit calculator for the potato-based weight loss approach with 3, 4, 5 day and weekly estimates
- ๐ฑ Progressive Web App (PWA) - Download and install as a desktop or mobile app
- โก Always Up-to-Date - Automatic updates when new features are added
- ๐ Shared Values System - Input data once, use across all calculators
- ๐ฑ Responsive Design - Works perfectly on desktop, tablet, and mobile
- โก Fast & Lightweight - Built with Astro for optimal performance
- Visit cruxcalc.netlify.app in Chrome, Edge, or Firefox
- Look for the "Install" or "Download" icon in your browser's address bar
- Click to install - it will appear as a standalone desktop app
- Launch from your desktop, taskbar, or start menu
- Open cruxcalc.netlify.app in your mobile browser
- Android: Tap "Add to Home Screen" or "Install App"
- iOS: Tap the Share button โ "Add to Home Screen"
- The app icon will appear on your home screen
- ๐ฅ๏ธ Standalone Window - Opens without browser UI for distraction-free calculations
- โก Instant Access - Launch directly from desktop/home screen
- ๐ Auto-Updates - Always get the latest features and bug fixes
- ๐พ Offline Ready - Basic functionality works without internet
- ๐ฏ Native Feel - Behaves like a traditional desktop/mobile app
Professional link previews when shared on:
- Facebook - Custom branded Open Graph cards
- Twitter - Dedicated Twitter Card images
- LinkedIn - Professional preview cards
- WhatsApp/SMS - Rich link previews
Each calculator has its own themed social media image for better engagement.
/
โโโ public/
โ โโโ favicon.svg
โ โโโ site.webmanifest # PWA configuration
โ โโโ sharedValues.js # Cross-calculator persistent storage
โ โโโ reactiveSharedValues.js # Event-driven shared values helpers
โ โโโ og-*.png # Social media images
โ โโโ android-chrome-*.png # PWA icons
โ โโโ debug.html # Dev-only shared values inspector
โ โโโ debug-simple.html # Minimal inspector
โ โโโ image-templates/ # Social media image generators
โ โโโ generate-images.js
โ โโโ generate-favicons.js
โ โโโ README.md
โโโ src/
โ โโโ components/ # Reusable Astro components
โ โ โโโ CalculatorLayout.astro
โ โ โโโ RangeSlider.astro, UnitToggle.astro, GenderToggle.astro
โ โ โโโ ResultCard.astro, ResultValue.astro, CategoryBadge.astro, ComparisonTable.astro
โ โ โโโ InputGroup.astro, ValidationDisplay.astro
โ โ โโโ Header.astro, Footer.astro
โ โโโ layouts/
โ โ โโโ Layout.astro # Main layout with SEO & social meta
โ โโโ pages/ # Calculator pages (auto-routed)
โ โ โโโ index.astro # Homepage with calculator grid
โ โ โโโ bmi.astro, bmr.astro, body-fat.astro, heart-rate-zones.astro
โ โ โโโ one-rep-max.astro, muscle-potential.astro, running.astro, potato-hack.astro
โ โ โโโ components.astro # Component showcase
โ โโโ styles/
โ โโโ global.css # Neo-brutalist styling
โโโ astro.config.mjs # Astro site configuration
โโโ package.json
โโโ tsconfig.json
โโโ CALCULATOR_CHECKLIST.md, CALCULATOR_REQUIREMENTS.md, REFACTOR_PLAN.md
โโโ LICENSE
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Calculate your Body Mass Index with instant visual feedback and health category classification.
- Harris-Benedict - Classic formula from 1919, revised in 1984
- Mifflin-St Jeor - More accurate for modern populations (1990)
- Katch-McArdle - Most accurate when body fat % is known
Calculate body fat percentage using the U.S. Navy circumference method featuring:
- Gender-specific formulas for accurate measurements
- Real-time body fat category feedback
- Visual category indicators (Essential, Athletic, Fitness, Average, Obese)
- Measurement guidance for neck, waist, and hip circumferences
- Supports both imperial and metric units
Calculate personalized heart rate training zones using:
- Karvonen Method - Uses resting heart rate for personalized zones
- Percentage Method - Based on maximum heart rate percentage
- Five training zones: Active Recovery, Aerobic Base, Aerobic, Lactate Threshold, Neuromuscular Power
- Real-time zone feedback and training recommendations
- Age-based maximum heart rate estimation
Estimate your maximum lift capacity using three proven formulas:
- Epley Formula - Most commonly used in powerlifting
- Brzycki Formula - Popular alternative with different rep range focus
- Lombardi Formula - Traditional formula for strength estimation
- Compare results across all three methods
- Input current weight and reps to calculate 1RM
Uses Casey Butt's scientifically-validated formula to predict natural muscle-building potential based on:
- Height
- Wrist circumference (frame size indicator)
- Ankle circumference (frame size indicator)
- Body fat percentage
Calculate race finish times based on your per-mile pace with features including:
- Interactive pace slider with 5-second increments
- Finish times for 5K, 10K, half marathon, and full marathon
- Pace categorization (Elite, Sub-Elite, Competitive, Advanced, Intermediate, Recreational, Beginner, Walking/Jogging, Walking)
- Persistent pace preference using localStorage
Specialized calculator for the potato-based weight loss approach featuring:
- Calorie deficit calculations based on potato consumption
- BMR integration from other calculators
- Adjustable potato portions and cooking method considerations
- Weight loss timeline projections
The calculators feature a smart shared values system that allows you to:
- Enter your basic measurements once
- Use them across all calculators automatically
- Save time and ensure consistency
- Values persist during your browser session
- Neo-Brutalist Design - Bold, functional design with strong visual hierarchy
- Modern & Clean - Contemporary design that's easy on the eyes
- Mobile-First - Responsive design that works on any device
- PWA Standards - App-like experience with offline capabilities
- Accessibility - Semantic HTML and keyboard navigation support
- Performance - Fast loading with minimal JavaScript
- User-Friendly - Intuitive interfaces with helpful explanations
All formulas implemented are scientifically validated:
- BMI uses the standard WHO classification
- BMR formulas are peer-reviewed and widely accepted
- Body Fat (Navy Method) developed by the Naval Health Research Center, widely used by U.S. military
- Heart Rate Zones based on Karvonen method and percentage-based calculations used by sports scientists
- One Rep Max formulas are established strength training standards used in powerlifting and sports
- Casey Butt's muscle potential formula is based on extensive analysis of drug-free bodybuilders
- Potato hack calculations include resistant starch reduction for cooled potatoes (17%)
- Astro - Modern static site generator
- Progressive Web App - PWA standards for app-like experience
- Vanilla JavaScript - For calculator logic and interactivity
- CSS3 - Modern styling with custom properties and grid/flexbox
- HTML5 - Semantic markup for accessibility
- Open Graph & Twitter Cards - Professional social media sharing
Simply visit cruxcalc.netlify.app and start calculating! Optionally download as an app for the best experience.
-
Clone the repository
git clone <repository-url>
-
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:4321to see the app in action!
This project is open source and available under the MIT License.
See the project constitution for governance, quality gates, and change control: PROJECT_CONSTITUTION.md
Contributions are welcome! Whether it's:
- Adding new calculators
- Improving existing formulas
- Enhancing the UI/UX
- Fixing bugs
- Improving documentation
Feel free to open an issue or submit a pull request.
- Astro Documentation - docs.astro.build
Built with ๐ฅ for the health and fitness community - Available everywhere as a web app!