Intake
A nutrition and habit tracker that grades your day against your own targets, and never guesses at missing data.
Visit the live site ↗
The 30-second version.
Mainstream trackers guess at missing data, quietly scoring the gap as zero instead of leaving it unknown.
Designed and built a nutrition and habit tracker whose daily score is deterministic, explainable, and never guesses, then a public demo with a fictional 70-day history.
Ships the full logging loop, scored deterministically: zero AI calls, so every day's grade reproduces offline and every one explains itself.
- RLS policies
- 48
- Unit tests
- 105
- AI calls
- 0
- Metrics scored
- 7
A score is only as honest as its gaps.
Most apps fill in what you didn't log, so the number looks complete even when it isn't. Intake grades your day against your own targets and refuses to guess.
- Who: people who want accountability they can check.
- Where: logging happens on a phone, often one-handed, mid-meal.
- Constraint: every score has to be explainable.
- Risk: a missing log quietly counted as zero.
What I owned.
What I owned
- Product and UI design
- Scoring and insight engines
- Database, security and frontend
How it came together.
Define the score
Seven metrics with fixed weights, each on a curve you can check: aligned to a target, or a minimum you reach and keep.

Rule out guessing
A missing metric is dropped and the rest reweighted, and the share that was logged becomes a confidence level, not a penalty.

Design for one hand
Water in one tap from Today, empty fields left as unknown, and every submit above the tab bar.

Snapshot the day
Finish Day stores the result with its targets and algorithm version; editing that day later marks it stale and runs it again.

Unknown stays unknown, never zero.
A day's total stays empty the moment any log is incomplete; missing metrics are dropped and the rest reweighted, instead of scored as failure. Weeks show how much of the grade is backed by data, and need four sufficient days before they get a letter.

Built for one hand, mid-meal.
The meal form's submit stays in thumb reach above the tab bar, and water is three one-tap buttons straight from the dashboard.

Every score explains itself.
A “Why this score?” dialog lists each metric's actual and target values, its score and its weight, so the grade is never a black box.

What I chose, and what it cost.
Open any decision to see the alternative and the price I paid for it.
What shipped.
- Unit tests
- 105
- Row-level security policies
- 48
- AI calls
- 0
- LogServer Actions + USDA searchManual entry or import, always editable
- ScorescoreDay / scoreMealPiecewise curves; missing metrics dropped and reweighted
- Persistdaily_reviews upsertImmutable snapshot; edits flip is_stale and re-run
Intake runs on Next.js App Router with React Server Components for authenticated reads and Server Actions for every mutation. There's no separate API server, and the browser never holds a Supabase service-role key. Supabase is the whole backend: Postgres holds the data, Auth owns sessions via SSR cookies, and Row Level Security is the real authorization boundary. Goals are effective-dated, and a Postgres exclusion constraint stops two goal periods overlapping, so an old review keeps the targets it was graded against. The center of gravity is the deterministic scoring engine, framework-free TypeScript unit-tested apart from the database and UI, reused both to grade real days and to build the demo's fictional history. A separate insight engine only states a pattern once it clears a minimum sample and effect size.
- Next.js
- TypeScript
- Supabase
- PostgreSQL
- Zod
- Tailwind
- shadcn/ui
- Recharts
What I'd change, and what I'd keep.
I'd do differently
Fix the out-of-sync lockfile that breaks a clean install, run the documented checks in CI, and use or remove the unused period_reviews table.
I'd keep
The deterministic, no-AI scoring engine: rigid, but every score is explainable and testable offline.
Open to full-time product design and full-stack development roles. Let's build something people rely on.
javiertpga@gmail.com