This is a web application for calculating P:E diet ratios. The P:E diet is based on analyzing the relationship between protein and energy in a food item. All values are given in grams, and energy is calculated as the sum of total fat and net carbs. Net carbs are carbs ignoring fiber.
Live version available at: https://pedietcalc.snoyman.com/
- Language: Rust
- Framework: Leptos
- App type: Single Page Application
- Coded by: OpenAI Codex
Besides being a useful application I wanted to have, this was also intended as a trial run to see how well Codex is able to write Leptos code. Overall: it was surprisingly adept!