Tempul Health, A Health Scoring App For Food, Water And Suppleme by Danial zaib LangahTempul Health, A Health Scoring App For Food, Water And Suppleme by Danial zaib Langah

Tempul Health, A Health Scoring App For Food, Water And Suppleme

Portfolio project
Danial zaib Langah
Tempul Health gives everyday products a health score out of 100, built from lab tested data about their ingredients and contaminants. It covers far more than packaged food: bottled water, tap water by city, baby food, supplements, energy drinks and cosmetics. I built the product end to end, the Flutter app and the Supabase backend that holds the scoring engine.
The Problem
An ingredients list is unreadable to a normal shopper. Even a motivated person standing in an aisle cannot tell which of twenty chemical names matters, or at what level it starts to matter. Tempul turns that list into one number plus the reason behind the number, so a decision takes seconds instead of a research session.
One Number, And The Reason Behind It
The score sits next to the detail that produced it: contaminant count, levels above published guidelines, microplastics, health risks, packaging and water source. A score with no reasoning is a guess, so every number on the product screen can be opened and checked.
Categories The Big Scanner Apps Skip
Bottled water, tap water, baby food, supplements and cosmetics, each with its own data model and its own score, alongside packaged food. Tap water is scored by city, which no barcode scanner can do, and that is the clearest single reason a user installs this instead of the famous alternative.
Search, Trends And Where To Buy
Product search with recent and trending queries, most searched products, and partner stores that link out to where a product can actually be bought. Those store links turn a health decision into a purchase, which is the revenue path beyond the subscription.
How A Score Gets Made
Scoring runs in Supabase Edge Functions. Ingredient and contaminant data lands in a staging table, passes quality checks, goes through the scoring formula, and the result is written onto the product row. The app never calculates a score at request time, it reads a number that is already there.
Scored Once, Never Allowed To Drift
The hard part of a stored score is keeping it true. Database triggers rescore every affected product when the ingredient data underneath it changes, so a score can never quietly fall out of step with the evidence behind it. Computing on insert instead of on view means listing and detail screens stay fast no matter how large the catalogue grows, and the heavy work happens once per data change rather than once per user.
Categories That Do Not Share A Shape
Tap water by city has nothing structurally in common with a cosmetic, yet both have to produce a comparable number. Seven category tables each model their own domain and all resolve to one scoring contract, so a user can weigh a supplement against a bottled water without the comparison being meaningless.
Data Quality Before A User Sees It
A health score built on a bad ingredient relation is worse than no score at all. New data lands in a staging table, and dedicated quality views flag products with missing relations or no ingredients so they are held back before anyone can see them. The product never shows a number it cannot defend.
Reading Without Joins
Prepared database views mean the app never joins products to ingredients at request time. Each screen reads from a view shaped for it: listing, ingredient browse, full product detail, admin activity and dashboard statistics.
System Architecture
A Flutter client on iOS with Apple sign in, Supabase for Postgres across 41 tables and views, Edge Functions for the scoring formula, triggers to keep scores in step, Auth and Storage. RevenueCat gates full product detail behind a yearly subscription, with limited ingredient insight on the free tier, and an admin dashboard carries statistics and user feedback.
The Build In Numbers
315 Dart files and roughly 50,100 lines of code, 41 Supabase tables and views, seven product categories, eight prepared read views, and a health score on a 100 point scale.
Tools And Technology
Flutter and FlutterFlow, Supabase with Postgres, Edge Functions, database triggers, Auth and Storage, Apple sign in, RevenueCat for subscriptions, and a custom admin dashboard.
Live Application
My Role
End to end build: product flows, the Flutter app, the Supabase data model across seven product categories, the scoring engine in Edge Functions with the trigger system that keeps scores current, the data quality pipeline, the prepared read views, the subscription layer and the admin dashboard.

1 like · 27 views · May 1, 2025

Health scoring app that rates food, water, supplements and cosmetics out of 100, built in Flutter with a Supabase scoring engine and Postgres triggers.

Tags