Case study · Personal project

JfooD

The nutrition app for Android that is actually free.

JfooD keeps everything in a SQLite database on your phone: no account, no ads and no subscription. Only the AI food recognition needs the internet.

Type
Personal project · Open source
My role
Everything: design, app, API, database and release
Status
Published · Android APK available
Technologies
  • React Native
  • Expo
  • TypeScript
  • Fastify
  • SQLite
  • Gemini

JfooD in numbers

Actually free

  • 0ads
  • 0accounts
  • 0subscriptions
~340

basic foods, plus the USDA and Open Food Facts catalogs

100 %

of your data lives on your phone

MIT

Open source: read it, copy it and improve it

JfooD features

Illustrative mockup with sample data. The real app interface is in Spanish.

  1. Log what you eat without the hassle

    Track in grams or servings, save recipes and favorites, and plan your whole week.

  2. AI suggests, you decide

    Describe or photograph a dish. Gemini suggests the values and you review them before saving.

  3. Scan and done

    It searches the local catalog first, with about 340 basic foods plus USDA and Open Food Facts, and if it is not there it asks Open Food Facts.

  4. See how you are progressing

    Weight charts, 30-day calories against your goal, and targets calculated with Mifflin-St Jeor.

  5. Your data stays yours

    Local reminders and versioned JSON backups. Everything is stored on the phone, with no account.

Engineering decisions

What I chose and why.

  • SQLite on the phone itself

    The data lives in a SQLite database inside the device. That is why the app works offline and needs no accounts or data server.

  • An API between the app and the AI

    The Gemini key lives in the API (Fastify, deployed on Render) and never reaches the phone. The app sends the photo or text and the API returns already validated data.

  • Everything crossing the API is validated

    Zod checks the data going in and out, so a malformed value never reaches the app.

  • A monorepo with shared code

    The app, the API and the @jfood/core package share types and logic in npm workspaces, with TypeScript end to end.

  • Versioned backups

    Backups are exported as JSON with a version number, so your data is not locked inside the app.

  • AI proposes, the person decides

    Nothing the AI suggests is saved until you review it. The app keeps working whole if there is no network.

How it is built

  1. Android app

    • React Native
    • Expo
    • SQLite

    Diary, planner, catalog and backups, all stored locally.

  2. API

    • Node 22
    • Fastify
    • Zod

    Deployed on Render. Holds the AI key so it never reaches the phone.

  3. Gemini

    • gemini-3.5-flash-lite

    Recognizes a dish from a photo or text. You always review the result.

AI is the only part that needs a network. Without it, the whole app keeps working.

What it shows for your company

  • End-to-end architecture: app, API, database and AI integration designed and shipped by one person.
  • Software that works offline, useful if your users have poor coverage or your tool cannot depend on the internet.
  • AI with judgement: keys on the server, validated data and human review before saving.
  • Open source and published: you can read the repository and download the app to check the quality yourself.

Try it: airplane mode

Turn on airplane mode and see how an offline-first app behaves.

JfooD on GitHub

Latest release
v0.2.0

Need something similar?

Tell me your case and I will tell you how I would approach it. The first conversation commits you to nothing.

Next case studySe7en Antequera
Get a quote