All projects 02 of 08

Fine Print

// Rate foods by ingredient rules, with evidence

Kind
Software / Data
Year
2026
Status
In progress

Shows how a food matches a clean-label ingredient rulebook, the evidence behind each rule, and cleaner swaps.

Stack
Next.js 16, React 19, TypeScript
Pipeline
Python fp CLI that builds a SQLite catalog
Data
USDA FoodData Central and Open Food Facts
Licences
Code MIT; catalog ODbL; rulebook text CC BY 4.0
A Fine Print product page for a sourdough bread with a Good verdict: every ingredient passes the rules, the four-ingredient label as printed, and a nutrition panel.
Contains information from Open Food Facts, made available under the Open Database License (ODbL).
01

What it does

Fine Print rates foods against my clean-label ingredient rulebook and shows the evidence behind every rule. A shopper can scan two products, see the label words that triggered a rule, read the evidence, and compare the products.

Ratings come from ingredients. A Python engine plus human-reviewed mappings assigns every verdict. Language models may suggest candidate ingredient matches or abstain; they never assign a tier, and the web app never scores a product.

02

About the verdicts

Verdicts are ratings against my own rulebook, using labels as published. Brand names identify products and imply no affiliation.

03

Try it live

Fine Print, the live app

04

Screens

The compare view, a Bad sourdough bread beside a Good one, with the bad ingredients removed listed below.
The Fine Print home page with the headline 'Read the back of the pack', a search box and a sample label with its deciding ingredients highlighted and a Bad verdict.
The Findings page, with charts and figures on how the raw US food data was cleaned.

Contains information from Open Food Facts, made available under the Open Database License (ODbL).

05

When the science disagrees

Every rule carries its evidence card, even when the evidence cuts against the rule. Enriched-flour vitamins are flagged as a marker of refined flour, and the card for niacin says plainly that the vitamins themselves are not the problem.

The product page with the evidence sheet open for the highlighted word Niacin, showing how the rules treat it and what the science says.

Contains information from Open Food Facts, made available under the Open Database License (ODbL).

06

The five tiers

One nutrition rule can lower a tier: a high amount of added sugar per serving. Nutrition never raises one.
TierWhat puts a food there
GodlyA single whole food with a confirmed processing state.
GoodNo Bad or Okay ingredients found.
OkayAn Okay or unmatched ingredient, or Bad ingredients only in the "2% or less" section or only added sugars.
BadA confirmed Bad ingredient in the main ingredient list.
UnknownNo ingredient list, or too few ingredients identified to judge.
07

What a rule looks like

yaml
ingredients:
  - id: soy_lecithin
    name: Soy lecithin
    family: emulsifier
    aliases: [soy lecithin, soya lecithin, soybean lecithin, lecithin (soy), organic soy lecithin, non-gmo soy lecithin]
    off_ids: [en:soya-lecithin, en:gmo-free-soy-lecithin]
    e_numbers: [E322]
    whole_food: false
    definition: Phospholipid emulsifier extracted from soybean oil.
08

The refresh pipeline

  1. Raw

    Pinned USDA FoodData Central files and an Open Food Facts snapshot, with a manifest of source URL, date and checksum.

  2. Staged

    One typed table per source, limited to US products.

  3. Merged

    Products, dated label versions, field provenance, conflicts and a reason-coded quarantine.

  4. Enriched

    Parsed ingredient spans, reviewed mappings, verdicts and swaps. Model suggestions are stored apart from published results.

  5. Serving

    A read-only SQLite file that the Next.js app queries.

09

On a phone

The Good sourdough bread on a phone, showing the Good verdict card and the label as printed.
The Fine Print home page on a phone, with the headline, search box and sample label.

Contains information from Open Food Facts, made available under the Open Database License (ODbL).

10

Flow

0:15A 15-second screen recording: search for sourdough, open a Bad product, tap a highlighted ingredient to open its evidence, compare with a cleaner swap, then open Findings. Contains information from Open Food Facts, made available under the Open Database License (ODbL).
11

Licences

PartLicence
Source codeMIT
Fine Print catalogODbL 1.0, derived from Open Food Facts
Open Food Facts dataODbL 1.0. Contains information from Open Food Facts, which is made available here under the Open Database License (ODbL). Open Food Facts contributors.
Rulebook and evidence card textCC BY 4.0
USDA FoodData CentralPublic domain (CC0 1.0)
//

Notes

  • The repository is private. The live app runs the latest deployed build, which can differ from these screenshots.
  • Screenshots show work in progress.