Architecture

How Zealova thinks,
learns, and adapts.

Rules decide the numbers: your calories, how hard to train, how big today is. AI agents write the words and do the chores. A privacy model with full account delete of your rows and files. Here is the full picture, without the marketing fog.

The stack

Five layers, one product

Click any layer to see what lives there. Designed so a request can fail loudly at one boundary instead of silently corrupting the next.

Rules decide

Rules decide, AI writes the words

Your calories, how hard to train and how big the day is come from deterministic engines with cited constants. The AI only phrases what they decided. The diagram shows one day moving through them.

Step 1 / 8
Burn never changes the size of the plan.
Momentum never changes your calories or your weights.
Readiness never changes your targets.

Where the rules live

9 places a rule decides, not a model

Each card is plain code, not a prompt: pure functions, cited constants, and a test that fails when someone adds a second copy.

Burn

Kalman filter

Estimates what your body uses each day from your weigh-ins and logged meals, with a band that shows how sure it is.

Readiness

No model

Sleep, training load and your check-in resolve to one word. The strictest signal wins.

Momentum

Rules

Scores training, food, movement and recovery per day. The band sets how big today's plan is.

The Plan

Cited

One plan a day. Every decision has a reason code, a citation and a plain sentence in 36 languages.

One day reader

One reader

Your day is your local day in your timezone, read in one place, so a late dinner never lands on tomorrow.

Workout numbers

One chokepoint

However a workout is made, one function sets the load, effort and rest, then caps it for injuries.

Health sources

Counted once

A phone and a watch never double your steps. Each minute counts from the first app in your order.

Push budget

One door

Every push passes one budget. The default is at most 1 a day and 3 a week; you can raise it.

Health profile

No model

Conditions, lab ranges and food limits come from cited rule tables. No model classifies anything medical.

Anatomy of a message

What happens when you ask the coach something

A single chat turn fans out across eight stops. The animation below shows the path a real food-photo message takes, start to finish.

YouFlutter appAPITLS · token · limitsVisionphoto typeRoutermention · photo · pain · intentAgentone of sevenToolsfunctions · rulesPostgresyour rows · owner checkedReplystreamed back
Step 1 / 7

The AI brain

A router and seven specialists

One giant prompt is a leaky abstraction. We split coaching into focused agents, each with its own tools, and a router picks the right one per turn. Safety routes are rules, not guesses.

Router

@mention → photo →
pain words → intent

Where your data lives

Five places your data lives

Every byte has a home and a reason for being there. You do not have to email us to leave.

On your device

Queued

Recent data is cached for instant screens. Logs, sets and finished workouts made without signal wait in a queue and send once, in order, when you reconnect.

In transit and in the API

Owner checked

Encrypted in transit. A signed-in token on every request, and every route that takes a user id proves you own it. A test walks every route.

In your rows

Isolated

Postgres on Supabase. Every row carries your user id, and the API checks it before any read or write.

Sent to the AI

Disclosed

Messages and photos you send to the coach go to Google Gemini to write the reply. Past exchanges are kept in a hosted vector index, filtered to your account, so the coach can recall them.

Yours to delete

Permanent

Delete account removes your rows, your sign-in and your stored files. Email accounts confirm with a password first.

Engineering principles

Six rules we wrote down so we would not break them

01

No mock data in production

If the AI does not return it, we do not invent it. Bugs surface immediately.

02

Specialists over generalists

Seven focused agents beat one giant prompt. Fewer hallucinations, better tools.

03

Retrieval over memorization

Your context is fetched fresh each turn. Models stay small; answers stay grounded.

04

Every number has one source

Steps, calories and sleep show the same value on every screen. Each metric has one definition, one reader and a check that fails when a screen invents its own.

05

Stream by default

Replies render as they are produced, and a heartbeat keeps a slow step from looking like a dropped connection.

06

Privacy is the default

Ownership checks on every route, signed upload links, account delete of your rows and files. Not bolt-on toggles.

Built with

The stack, on a single line

Flutter·iOS · Android · Widgets
FastAPI·Async Python API
Supabase·Postgres · Auth
Google Gemini·LLM · Vision
LangGraph·Agent orchestration
Chroma·Vector retrieval
Render·Backend hosting
Vercel·Marketing site
RevenueCat·Subscriptions
AWS S3·Media storage
FCM · APNs·Push delivery
Resend·Lifecycle email

See the architecture in motion.

The fastest way to understand how it all fits together is to use it.