r/VibeCodeDevs • • 28d ago

ReleaseTheFeature – Announce your app/site/tool Built a local-first AI calorie tracker with zero backend costs (BYOK Gemini + React Native) – sharing the workflow & architecture

Hey everyone! 👋

I've been building a project called Foody Tracker on Android, and I wanted to share the architecture and vibe-coding workflow behind shipping a mobile AI utility without getting stuck in subscription loops or recurring server bills.

The Core Idea: Zero Backend & BYOK

Most mobile AI wrappers charge $10–$15/month subscriptions primarily to cover proxy server infrastructure, rate limiting, and database clusters.

Instead of managing cloud infrastructure: - Direct Client-to-API: The mobile client connects directly to Google Gemini's multimodal endpoints using the user's free Google AI Studio key (Bring Your Own Key). - Local-First Persistence: All meals, daily macros, history, and streaks live strictly on-device in a local SQLite database. No mandatory accounts, zero cloud DB costs, and instant offline reads. - Multimodal Workflow: - Vision: Snap a dish, prompt extracts ingredients, estimates portion sizing, and returns structured JSON for calories and macros. - Voice / Natural Language: Dictate casual meals (e.g. "150g pasta with tomato sauce and an apple"), parsed client-side into editable records. - Contextual AI Coach: An in-app assistant that reviews local day logs to answer nutrition questions.

The Tech Stack

  • App: React Native (Expo) + TypeScript + Expo Router
  • Storage: Local SQLite
  • Landing Page: Vue 3 + Vite + TypeScript (hosted on Vercel)
  • AI: Google Gemini Multimodal API

Lessons Learned & The Onboarding Trade-off

Building client-to-API keeps server maintenance strictly at $0, but BYOK introduces a UX hurdle: asking users to paste an API key before they test the core value causes onboarding drop-off. I'm currently solving this by introducing precomputed sample data and letting users explore manual/offline logging first, asking for the key only when they trigger AI meal analysis.

If you'd like to check out the UI or test the implementation: - 📲 Google Play: https://play.google.com/store/apps/details?id=it.bonfiglioalessio.foodytracker - 🌐 Landing Page: https://foody-tracker.vercel.app/

Curious to hear from other builders: how are you handling the friction of BYOK models in mobile apps, and what prompt structures are giving you the best latency/accuracy balance for vision tasks?

1 Upvotes

1 comment sorted by

•

u/endofthread-bot 28d ago

Hey u/bonfiglioalessio, thanks for posting in r/VibeCodeDevs! Join our Discord: https://discord.gg/t7SD4ThKuE

• This community is designed to be open and creator‑friendly, with minimal restrictions on promotion and self‑promotion as long as you add value and don’t spam.
• Please follow the subreddit rules so we can keep things as relaxed and free as possible for everyone. • Please make sure you’ve read the subreddit rules in the sidebar before posting or commenting.
• For better feedback, include your tech stack, experience level, and what kind of help or feedback you’re looking for.
• Be respectful, constructive, and helpful to other members.

If your post was removed (either automatically or by a mod) and you believe it was a mistake, please contact the mod team. We will review it and, when appropriate, approve it within 24 hours.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.