Privacy Policy
How HeavyAF handles your data
Data Collection
HeavyAF processes sensitive biometric data including body measurements, body fat percentage, age, weight, and height. This data is collected solely for the purpose of providing body composition analysis and is stored securely in our database.
We collect the minimum amount of data necessary to provide our service:
- Account information: Your email address for authentication via magic link login.
- Analysis inputs: Age, gender, weight, and height provided during body composition analysis.
- Analysis results: Body fat percentage, body measurements, and category classification.
- Workout data: Exercise logs, workout plans, and session history if you use the workout tracker.
- Nutrition data: Your home time zone, manually chosen daily nutrition targets, private personal foods and dated food diary entries. These are not used to prescribe intake or adjust your targets automatically.
Cookies
The heavyaf-language cookie remembers your chosen interface language in this browser for one year. It is a functional preference cookie and is not used for tracking.
Encryption
All sensitive biometric data is encrypted at the database column level using PostgreSQL pgcrypto with PGP symmetric encryption. The following fields are encrypted at rest:
- Age
- Gender
- Weight
- Height
- Body fat percentage
- Body measurements
Encryption keys are stored securely and are never persisted in code or migrations. Each environment (development, staging, production) uses separate encryption keys.
Nutrition and Food Lookup
Nutrition records are private, protected by authenticated access and database row-level security. They are not covered by the analysis-specific column encryption or automatic two-year expiry. Nutrition history is retained until you delete the records or your account. Database administrators can read these nutrition fields.
Submitted packaged-food searches and barcode strings are sent through our server to Open Food Facts, without your account identifier, diary, targets or personal foods. Generic-food searches also use a separate USDA public-domain catalogue. Barcode camera frames remain on your device and are not uploaded or stored. Creating or correcting a personal food never publishes it to an external catalogue.
Image Privacy
Uploaded images are never stored on disk or in the database. Images are:
- Received as in-memory buffers by the API.
- Forwarded to the processing worker for pose detection.
- Discarded immediately after measurements are extracted.
No image data, file paths, or thumbnails are persisted anywhere.
Data Retention
Analysis records are automatically deleted after a configurable retention period (default: 2 years). A scheduled cleanup process runs daily to remove expired records. Records without a retention date are kept indefinitely until you choose to delete them.
Each analysis record is also assigned a pseudonymous ID that is unlinked to your user identity, enabling aggregate analytics without exposing personal information.
User Rights
You have the right to delete your account and all associated data at any time from the Settings page. Account deletion is permanent and includes:
- All body composition analyses
- All workout sessions and sets
- All workout plans and exercises you created
- All nutrition targets, diary entries, personal foods and home time zone
- Your profile and authentication record
No soft-delete is used. All data is permanently removed from our systems upon account deletion.
Row-level security ensures that you can only access your own data. All database tables enforce policies that restrict read and write access to the authenticated user.