Intake

A nutrition and habit tracker that grades your day against your own targets, and never guesses at missing data.

Role
Sole designer and developer
Team
Solo project
Platform
Web app + installable PWA, mobile-first
Status
Concept · Live
Visit the live site ↗
Intake daily score dashboard
01 At a glance

The 30-second version.

Problem

Mainstream trackers guess at missing data, quietly scoring the gap as zero instead of leaving it unknown.

What I did

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.

Outcome

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
02 The problem

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.
03 My role

What I owned.

What I owned

  • Product and UI design
  • Scoring and insight engines
  • Database, security and frontend
04 Process

How it came together.

  1. 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.

    Diagram of Intake's daily weights (calories 30, protein 20, water 15, steps 15, fiber 8, carbs 6, fat 6) above a target-alignment curve and a minimum-target curve
  2. 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.

    The same day scored two ways: counting two missing metrics as zero gives 68, a D; Intake drops them, reweights the rest and gives 97, an A, at medium confidence
  3. Design for one hand

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

    Wireframe of two phone screens: Today with the score ring and three water buttons, and the meal form with its save button above the tab bar
  4. 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.

    Flow diagram: log, finish the day, a daily review snapshot with result, targets, breakdown, coverage and algorithm version, then an edit that marks it stale and recalculates
Insight → design

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.

Intake weekly review: an 86, a B, at medium confidence with 71% grading coverage, weekly averages, a daily score trend and tracking coverage
Insight → design

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.

Intake meal logging form
Insight → design

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.

Intake's score breakdown dialog: seven metrics, each with actual against target, a score out of 100 and its weight, adding up to a normalized 98
05 Key decisions

What I chose, and what it cost.

Open any decision to see the alternative and the price I paid for it.

Instead ofAsking an LLM to judge the day, the way AI coach trackers do.
BecauseEvery score reproduces offline, can be unit-tested at its boundaries, and can be explained line by line inside the app.
The costIt can’t read context. A sick day or a long run is graded against the same targets, and anything nuanced has to be written as a rule.
Instead ofScoring a missing log as zero, or filling it with an estimate.
BecauseA day with gaps reads as uncertain rather than failed, and nothing on screen is a guess.
The costA day with only calories logged can still score well, so the grade is only as honest as the confidence label beside it; below 35% there is no grade at all.
Instead ofComputing every score on read from the raw logs.
BecauseHistory stays true to the targets that applied on the day, even after a goal changes.
The costTwo things to keep in step, the logs and the snapshot: every write path has to remember to mark the review stale.
06 Outcome

What shipped.

Product film
Unit tests
105
Row-level security policies
48
AI calls
0
Visit the live site ↗
  1. LogServer Actions + USDA searchManual entry or import, always editable
  2. ScorescoreDay / scoreMealPiecewise curves; missing metrics dropped and reweighted
  3. 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
07 Reflection

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.

Next case studyTheme StudioA live editor for shadcn/ui themes that scores contrast as you pick: presets, a full colour picker, shareable links and paste-ready OKLCH.

Open to full-time product design and full-stack development roles. Let's build something people rely on.

javiertpga@gmail.com