Mains — Privacy Policy

Effective: 3 August 2026 · Last updated: 21 October 2026 · Applies to: Mains for iOS

Mains is a workout and food logging app. This policy describes exactly what it collects, where it is stored, what is sent to whom, and why. It is written from the app's source code, not from a template — every statement here corresponds to a code path that exists today.

1. Who is responsible

Mains is published by Yevhenii Skrebtsov, Truskavets'ka 40A, apt. 33, 61067, Kharkiv, Ukraine, the data controller for the processing described here.

Contact for any privacy question or request: support@mains.app

2. The short version

3. Where your log lives

Mains is offline-first. Your log lives in a SQLite database on your phone and the app reads it directly, so it works without a connection. When the phone is online, the same log is synced to your account:

Category Examples
Profile date of birth, sex, height, locale, time zone, units, meal names, dietary preferences
Goals calorie and macro targets, named goal profiles, per-day assignments, calorie-bank transfers
Workouts routines, folders, exercises, performed workouts, every set (weight, reps, timestamps), per-exercise notes and settings
Food custom foods and recipes (with the vitamin and mineral estimates of your own foods), diary entries with their macro snapshots, saved meals, water logs, meal check-offs
Body weigh-ins and body measurements
Apple Health the daily steps / sleep / energy / exercise-minutes / heart-rate rows imported from Health
Consent the record of what you agreed to, and when

What syncing means in practice:

You agreed to this when you set up Mains: the consent screen asks to keep what you log "in your account so it syncs across your devices".

You can still take a copy of everything yourself at any time with You → Export my data (§9).

4. What leaves your phone, and to whom

There are exactly eight outbound channels in the app. This section lists all of them.

4.1 Your account — Supabase

Signing up sends your email address and password to Supabase, which hosts our authentication service and database. Supabase stores the email address and a hash of the password; we never see or store the password itself. Your session token is kept in the iOS Keychain on your device.

Region: eu-central-1 (AWS Frankfurt, Germany — within the EU/EEA).

Supabase also stores your synced log — everything in §3 — in that same region (§4.9).

4.2 The AI features — our server, then Anthropic

Mains has fourteen AI capabilities, plus a connectivity check. Each is a request carrying what the table below lists, plus your login token so we know the request is from a real account. None of them runs until you turn AI features on (You → AI features), and you can turn them off at any time. Two of them can run without a tap while AI features are on: filling in database foods (food_profile) and counting your own foods (micros_estimate), which you can switch off on its own.

Feature What you do What is sent
label_parse Photograph a nutrition label the photo
food_photo Photograph a meal the photo, and a note about it if you type or dictate one
menu_parse Photograph a restaurant menu the photo
plan_parse Photograph a training plan, or pick a PDF from Files the image or the PDF you chose
weight_parse Import a weight history a screenshot, or pasted text, or a CSV's header + up to 30 sample rows
nl_food Describe a meal in words your text
food_describe Describe a food to build a nutrition panel your text
food_chat Log food by chatting (the Chat tab) your message, a photo if you attach one, your meal names, that day's calories and macros so far against its targets, the earlier messages in the chat, and the proposal on screen when you correct it
food_edit Change a logged entry by describing the change your instruction and that one entry (its name, amount and nutrition)
coach_plan Ask the assistant about your progress your question, the earlier turns, and an overview of your log — see below
coach_ask Ask the assistant about a meal, a day, or your progress your question, the earlier turns, and the logged data the question is about — see below
micros_estimate Log a food you made yourself, or have one in your log from the last 30 days when you open the app or look at that day — counted automatically unless you switch that off — or tap Count the names, brands and per-100 g or described-portion figures (calories, macros, and the fiber, sugar, saturated fat, sodium, trans fat and cholesterol you logged) of your own foods, your recipes' ingredients and your custom foods' descriptions — also for database foods not in the shared table; never your profile or dates, and no id ever reaches the AI. A phone not yet updated to the 21 October version sends, when you tap Count, all of that day's foods, database foods included, in the same form. A phone not updated since 19 October sends the first version's list instead: each food's eaten amount, its serving as logged and the calories and macros of that amount, with its diary entry id — which our server swaps for a placeholder before anything reaches the AI
food_profile Log a database or packaged food (automatic while AI features are on) nothing of yours: your phone sends our server only which foods to fill in (their database id or barcode), and our server sends Anthropic one public database record at a time — the food's own catalog or Open Food Facts record, with no account, date, portion or other food attached. The request may finish on our server after your phone has stopped waiting for it
food_profile_report Report a figure on a database food as wrong (Nutrition → a food → Report a figure) which food and nothing else; no AI is involved. It is counted without your identity, and only for a food in your own log
ping (connectivity check) nothing about you

The assistant sends more about you than any other feature, so it gets its own paragraphs.

The conversation itself is not kept. It lives in memory while the app is running and is gone when the app is closed — there is no chat history table, on your device or on our server.

Three details that are easy to miss and that you are entitled to know:

What else rides along. Every AI request also carries your locale, your time zone and the app version — nothing else about you.

What our server keeps. Not the content — never the photo, the document, the text or the log data sent to the assistant. Those are held in memory for the length of the request and are written to no database and no file store.

What it DOES keep, since 5 August 2026, is a cost record: one row per AI request holding which feature you used, which model answered, how many tokens it took, what we estimate it cost, how long it took and whether it succeeded. There is no request content in it. It exists so the app can stop itself spending more than its AI budget, and so a runaway loop cannot quietly run up a bill.

That record is deleted with your account (§9). What survives is a monthly TOTAL with no account attached to it — how much was spent in a month on each feature — which is the app's own accounting and cannot be traced back to anyone.

Our server also keeps, since 21 October 2026, shared food profiles: for a database or packaged food that someone has logged, the vitamin and mineral figures Claude estimated for that food, stored once and reused for everyone who logs the same food. A profile describes the food, not a person: it holds no account and no request id; the only times it keeps are the month it was made and, for the few minutes it is being made, a claim timer, and none of these is ever served with it. It survives account deletion, because it describes the food (§9).

Our server log additionally records one line per request containing a request id, a truncated 8-character account id, timings, token counts and a status code — never the content of your request.

Anthropic processes the request as our sub-processor and returns the answer. See §6.

4.3 Food search and nutrient lookup — our server

When you type in the food search box, the search text is sent to our database with your login token, and matching foods come back.

To show vitamins and minerals, your phone also asks our database for the nutrient figures of the foods in your log: it sends the database ids of foods in your log, and of the food you are about to log, with your login token — the foods of the last 14 days and that one food — so their nutrients are on your phone before you open Nutrition. Our server returns Claude's figures only for foods in your own log; for any other food it returns only that food's public database record. Nothing about the request is stored. This lookup involves no AI and runs whether or not AI features are on.

When a packaged food from Open Food Facts in your log is filled in for the shared table (§4.2, food_profile), our server fetches that product from Open Food Facts itself, by its barcode only. That request carries the barcode and our server's own identifier, nothing about you.

4.4 Barcode lookup — our server

Scanning a barcode sends the scanned number (GTIN) with your login token.

4.5 Open Food Facts — contacted directly by your phone

When our own food catalog does not have what you scanned or searched for, your phone contacts Open Food Facts directly to ask. The request carries the barcode or the search words, your device's IP address (unavoidable for any internet request) and the identifier Mains/1.0 (mains.app). It does not carry your login token, your email, or your account id — Open Food Facts cannot connect the query to you as a Mains user.

This is a direct connection between your device and Open Food Facts. We do not control or receive their server logs. It only fires for a search of 3+ characters when our own results came up thin, and for barcodes our catalog missed.

4.6 App updates — Expo

Mains ships JavaScript updates over the air. At every cold start the app asks Expo's update server (u.expo.dev) whether a newer version exists. That request carries an install identifier, the app and runtime version, and your IP address. It carries nothing about your account or your data, and the install identifier is never joined to your account.

4.7 Apple Health — what Mains reads, the one thing it writes, and where it goes

If you connect Apple Health, Mains reads exactly eight kinds of data: body mass, step count, sleep analysis, active energy burned, basal energy burned, Apple exercise time, resting heart rate, and heart-rate variability (SDNN).

You can revoke Health access at any time in iOS Settings → Privacy & Security → Health → Mains, read and write separately. Rows already imported stay in your log until you delete your account.

4.8 Account deletion — our server

Tapping Delete account sends only your (freshly re-authenticated) login token. No other data is attached to the request.

4.9 Cloud sync — Supabase and PowerSync

Since 17 October 2026, every change you make to your log is uploaded to your account in our Supabase database (Frankfurt), over HTTPS with your login token. PowerSync, our sync service, reads the changes from that database and streams them to your signed-in devices; to do that it keeps a copy of your synced log on its own servers. Each account can only ever read and write its own rows.

5. What we do NOT do

Each of these is verifiable by inspecting the app, not merely promised:

6. Who else processes your data (sub-processors)

Processor What they receive Why
Supabase your email address, password hash and session tokens; your synced log (§3); your login token on food-search, nutrient-lookup, barcode, AI and delete requests; the AI cost records (§4.2); the shared food profiles, which hold nothing about you (§4.2) authentication, storing your log, the food catalog and its shared food profiles, and hosting the AI proxy
PowerSync (JourneyApps) a copy of your synced log and your login token keeping your devices in sync
Anthropic what each AI feature sends (§4.2) — the photo, PDF or text you handed it; for the assistant, your question and the logged data it is about, up to your whole log for a progress question; for the Chat tab, your message and that day's totals; for the vitamins and minerals count, your own foods as §4.2 lists them — plus your locale, time zone and app version; for database foods, one database record at a time and nothing of yours, not even those reading labels, meals, menus, plans and weight histories, estimating the vitamins and minerals in what you logged and in database foods, and answering questions about what you logged
Open Food Facts from your phone: a barcode or search words, and your device's IP address; from our server: a barcode, to fill in that product's shared profile (§4.3) looking up packaged foods our catalog lacks
Expo (EAS Update) an install identifier, app/runtime version, IP address delivering app updates
Apple App Store account and device-level data governed by Apple's own policy distributing the app; HealthKit lives on your device

Which AI model. Every AI request is answered by Anthropic's claude-opus-5-5, their most capable model at the time of writing.

Anthropic processes these requests under their commercial API terms and their published data retention policy. We have no separate arrangement that would allow your content to be used to train models.

7. AI outputs are estimates you confirm

Two of the app's honesty rules matter for this policy:

Mains is not a medical device and gives no medical advice. Calorie and macro figures — whether from a database, a label or an AI estimate — are approximations. Do not use them to manage a medical condition without professional advice.

8. How long we keep things

Data Retention
Your log on your phone Until you sign out, delete the app, or delete your account.
Shared food profiles (database foods) Kept with the food catalog, linked to no one. Not in your export, because they are not yours, and not removed when you delete your account, because they describe the food.
Vitamin and mineral estimates of your own saved foods Saved with the food in your account and synced to your devices; in your export; removed with the food when you delete it (on the server it is marked deleted, like any entry you delete), and erased with your account.
Vitamin and mineral estimates of one-off meals, and the nutrient figures looked up for your log On your phone only — never synced to your account and not in your export. Removed when you sign out, delete the app, or delete your account.
Your log in your account (Supabase) and in the sync service (PowerSync) Until you delete your account (§9). An entry you delete is marked deleted on the server rather than erased, and is erased with your account.
Account record (email, password hash) Until you delete your account (§9), then removed immediately.
AI request content Not retained by us. Held in memory for the request only, including a request that may finish after your phone has stopped waiting for it (at most about two minutes); never written to a database or file store.
AI cost records One row per AI request — feature, model, token counts, our cost estimate, latency, status. Never request content. Deleted with your account (§9); an anonymous monthly total with no account attached survives.
Server request logs Short-lived operational logs with no request bodies: request id, truncated account id, timings, token counts, status.
Anthropic Per Anthropic's own retention policy for API requests.
Open Food Facts / Expo Per their own policies; we receive nothing back from them about you.

9. Your rights, and how to use them in the app

Under the GDPR (and comparable laws elsewhere) you have the right to access, correct, export and erase your data, and to object to or restrict processing. Two of these are one tap away:

Export your data (portability)

You → Export my data. Mains assembles every row it holds for you — profile, goals, workouts, routines, foods, diary, saved meals, water, body metrics and imported Health rows — into a single JSON file and hands it to the iOS share sheet, so you can save it to Files, email it, or send it anywhere you like. Nothing is uploaded to produce it. The vitamin and mineral estimates of your own saved foods are in it, with those foods; the shared food profiles are not, because they are not yours (§8).

Delete your account and everything in it (erasure)

You → Delete account. You re-enter your password, type DELETE to confirm, and are offered an export first. On confirmation Mains deletes every server-side row belonging to you — your whole synced log included, which also removes it from the sync service — deletes your authentication account, and wipes the local database on the device.

The deletion is immediate and irreversible. We keep no copy and cannot restore it.

Shared food profiles stay when you delete your account, because they describe foods, not you. Shared food profiles hold no account or request, and never show when anyone logged or asked. If you log a packaged or database food someone else already logged, its stored profile is reused, so the shared table does record that some Mains user logged that food. Our server only ever shows you the profiles of foods in your own log.

Everything else

For access, correction, restriction, objection, or a complaint, write to support@mains.app. We answer within 30 days. You also have the right to complain to your national data protection authority.

10. Age

Mains is for people aged 18 and over. The app asks for your date of birth during setup and will not let you continue if you are under 18. We do not knowingly collect data from anyone younger; if you believe a younger person has an account, write to support@mains.app and we will delete it.

11. International transfers

Your synced log and your account are stored by Supabase in Frankfurt, Germany (EU). Other sub-processors (§6) may process data outside your country, including in the United States: Anthropic for AI requests, and PowerSync for keeping your devices in sync. Where that happens we rely on the transfer mechanisms in those processors' own terms — their standard data processing agreements and Standard Contractual Clauses.

12. Security

No system is perfectly secure. Your log is now in two places — your phone and your account — so its safety depends both on your device's lock and on keeping your Mains password to yourself.

13. Data sources and attribution

Mains's food catalog is built from public data. Full attribution and licence terms are in attributions.md:

14. Changes to this policy

If we change what the app collects or who receives it, we will update this page and change the "Last updated" date. A change that materially expands processing will be announced in the app before it takes effect.

17 October 2026: cloud sync was switched on, and the assistant can now answer questions about your progress from your log. The consent you gave when you set up Mains already asked to keep your log in your account so it syncs across your devices; the AI features' description was updated the same day and asks you to agree again before any AI feature runs.

20 October 2026: §4.2 now lists the vitamins and minerals count, which sends a day's foods to the AI when you tap Count with AI on the Nutrition screen. A first version of it reached phones on 19 October, before this page listed it; until a phone updates, it keeps sending that version's list (each food's eaten amount and serving, with its diary entry id, which reaches only our server — the §4.2 row says what). It runs only with AI features on, and the AI features' description you agreed to already covers it ("when you ask about a meal or a day — the food in it"), so you are not asked to agree again.

21 October 2026: Vitamins and minerals now fill in without a tap. Most database foods are filled from a shared table; nothing of yours is sent for them. While AI features are on, your own foods (custom foods, recipes, named quick adds, meals Claude estimated), and the few database foods not in that table, are sent to Anthropic — new ones as you log them, and ones already in your log from the last 30 days when you open the app or look at that day — with their name and brand, the portion you described, their calories and nutrients, and their description or recipe ingredients. You can switch that off on its own in You → AI features. If you agreed to AI features before 21 October 2026, the description you agreed to said AI features send what you ask about. Automatic counting goes further, so Mains announced it on the Today screen, with a Turn off button, and waited until the announcement had been on your screen for a while before it ran on your phone. New agreements use a description that names it.

15. Contact

support@mains.app