Your Cloudflare Worker URL hasn't been configured yet.
To finish setup:
1. Deploy worker.js to Cloudflare Workers
2. Add your secrets as encrypted variables
3. Copy your Worker URL into index.html
4. Re-upload index.html to GitHub
Portio
Nutrition Today
0
kcal
Protein0g
Carbs0g
Fat0g
Fiber0g
Sat.Fat0g
0
Eaten
0
Burned
0
Net
Estimated Blood Glucose
Today's Glucose Trend
Stable
🔘 Generic model
⤢ tap to expand
70-100 mg/dL Target
100-140 Elevated
>140 High
Exercise
── Actual CGM── Estimated
⚠ Not for medical use. Glucose estimates are based on food data and general models — not a medical device. Not intended to diagnose, treat, or manage diabetes or any medical condition. Always consult a licensed healthcare provider for medical advice.
🎙️
Just tell me what you ate
Speak or type naturally — "I had oatmeal at 8 AM" or "3 cookies at lunch"
📦
Barcode
Scan or enter UPC
📷
Photo
Analyze your plate
🔍
Search
Food or ingredient
🍽️
Restaurant
Dish + restaurant
Log Exercise
🏃
Add Activity
Select type, duration, or enter calories burned directly
Food Log
Exercise Log
My Foods Library
Analytics
🩸
Glucose Monitor Data
No CGM data uploaded yet
Works with Abbott Lingo and Dexcom Stelo — OTC glucose monitors available without a prescription
🤖
AI Health Analysis
Based on food & exercise log
Tap "Generate Analysis" to get a personalized report based on your logged data.
⚠ Medical disclaimer: AI health analysis is for general wellness awareness only. It is not medical advice and is not intended to diagnose, treat, cure, or prevent any disease or medical condition. If you have diabetes or any health condition, consult a licensed healthcare provider before making changes to your diet or medication.
⚙️ Admin Panel
Database Setup
Run this once after deploying schema changes. Safe to run multiple times.
🔒 Data Migration
Converts all existing health data (meals, exercise, weight, settings, food library)
from raw user IDs to pseudonymized identifiers. Run once after deploying the
pseudonymization update. Safe to run multiple times — already-migrated rows are skipped.
🔑 API Keys
Generate API keys for machine-to-machine access (e.g. LiftTracker). Keys are shown once and cannot be recovered.
🔗 Re-link Legacy Data
Maps orphaned health data from a pre-Clerk user ID to a Clerk account.
Use this once to recover data after migrating from custom auth.
Error Logs
Quick Stats
🔬 User Diagnostics
Check D1 data, regression model status, and CGM pairing for any user.
Personal Stats
Body Info (used for calorie burn estimates)
Weight Log
Body Composition
Body Fat
—
Visceral Fat
—
Muscle Mass
—
BMI
—
Resting HR
—
BMR
—
kcal/day
💡 Visceral fat levels 1–9 are healthy · 10–14 elevated · 15+ high risk for insulin resistance
Body Fat % Trend
Resting Heart Rate Trend
Import Renpho scale data or Apple Health to see body composition metrics
Daily Nutrition Goals
Calorie & Macro Targets
💡 AHA recommends <13g saturated fat/day. Good fats (olive oil, avocado, nuts) do not count toward this limit.
💡 For prediabetes, many doctors recommend keeping carbs under 150g/day
Weight Goal & Projection
—
Daily Summary Notification
End of Day Summary
Get a daily recap of your nutrition, glucose trend, and a personalized tip.
Import Health Data
🍎
Apple Health
Export from the Health app: Health → your profile → Export All Health Data → share the ZIP file here. Portio will extract workouts, calorie data, and glucose readings if available.
📁 Tap to upload export.zip or export.xml
🤖
Google Fit / Health Connect
Export from Google Fit: Settings → Export or download data via Google Takeout. Upload the Activities CSV file here.
📁 Tap to upload Activities CSV or Takeout ZIP
⚖️
Smart Scale (Renpho, etc.)
Export from the Renpho Health app: tap your profile → Data Management → Export Data → select date range → share the file here. Supports XLS, XLSX, and CSV.
📁 Tap to upload Renpho XLS/XLSX or CSV export
🩸
Glucose Monitor
If your CGM or meter syncs to Apple Health, it will be imported via the Apple Health export above. For manual CSV exports from Libre, Dexcom, or similar devices, upload here.
📁 Tap to upload glucose CSV export
Edit Food Entry
⏱ Consumed over time?
Edit Exercise Entry
Day Detail
Food Log
Exercise
🎙️ Tell me what you ate
Speak or type naturally. I'll figure out the nutrition and log it for you.
Scan Barcode
Starting camera…
Point camera at a barcode
or enter manually
Analyze Photo
Name a packaged food → I use exact label nutrition + estimate portions from photo
Camera for new photo · Gallery for existing
🥤 Logging a drink? Search works better for beverages — just type the beer, wine, or drink name for accurate nutrition.
Search Food
Restaurant Meal
Log Exercise
🏃
Running
🚶
Walking
🚴
Cycling
🏊
Swimming
🏋️
Weights
⚡
HIIT
🧘
Yoga
⚽
Sports
🤸
Other
Override OK
Adjust Portion
Photo Portion Judge
Take a photo of your serving and I'll estimate the portion size and adjust the nutrition values automatically.