Fueld.AI's nutrition coach with Firebase and Google Cloud

In today’s competitive app environment, building and shipping new features quickly is imperative. That’s why Fueld.AI’s two engineers turned to Firebase to create their health and nutrition app, which transforms the photo of a meal into insights and actionable health guidance. By using Firebase, the team was able to quickly bring their app to market and continue to add new AI features.

Laying a Firebase foundation

Fueld.AI’s mission is to improve nutrition at scale by capturing meal insights, providing personalized AI coaching, and securely sharing data with health professionals.

Fueld.AI began building their app using Firebase and Google Cloud tools and services:

  • Firebase Authentication enables single sign-on with a user’s Google and Apple accounts.
  • Cloud Storage for Firebase stores an image once it’s taken. The app then retrieves and displays it on-demand across devices or the web for users or approved professionals to review a past meal.
  • Cloud Functions for Firebase sends the photo from Cloud Storage via Genkit to Gemini for analysis to identify each food and nutritional values, then writes the data to Cloud Firestore.
  • Cloud Firestore, a flexible, NoSQL, database enables real-time synchronization, immediately returning meal data to the user, as granular access controls let coaches review client data to formulate dietary recommendations.
  • Firebase Hosting updates and distributes Fueld’s mobile and web apps, leveraging Google Cloud’s content delivery network for high availability and speed.
  • Google Analytics serves crucial insights for optimizing onboarding flows and attributing marketing traffic, while Google Cloud Logging helps with debugging and monitoring AI in production.

“In previous companies, I needed a full backend engineering team,” Fueld.AI’s Co-Founder Glenn Smith says. “I wouldn’t have been able to iterate at the early stages of our application as easily if I needed to manage and update the databases.”

Fueld.AI’s two engineers found multiple ways to replicate the capabilities of larger teams using Firebase tools. For instance, deploying Cloud Functions independently of the app store releases enables rapid iteration and agile development of features in response to customer feedback. According to Smith, this was key to fixing issues, streamlining services, and achieving a near 100% uptime with automatic failover strategies.

Upping the culinary game with Genkit

As Fueld.AI’s membership grew, the team began investigating bringing more advanced AI capabilities to their app. One example lets users take a picture of the ingredients in their fridge or cupboards, and Gemini generates a unique recipe based on their dietary preferences, trainer’s recommendations, and nutritional needs.

While Smith and the Fueld.AI team spent long hours hand-coding the AI tools and logic for the initial build of the app, they switched to Genkit to automate AI workflows.

Using this new process to transform a photo into a recipe:

  • Genkit chains together API calls and instructions to Google’s Gemini and Imagen models via Vertex AI.
  • Gemini 2.0 Flash deconstructs the contents of the image and determines what ingredients are on hand.
  • Gemini studies notes from the user’s trainer, dietician, and meal diary secured in Firestore and Cloud Storage for Firebase to create the recipe. If there’s no photograph to accompany the dish, Genkit calls Vertex AI to prompt Imagen to develop a preview and then stores the photo for future clients.
  • To further save time and resources, Fueld.AI built internal tools that reuse the same Genkit flow for quality assurance, and automatically regenerates AI images that fail to meet their standards.
  • Throughout the entire lifecycle, Gemini Pro 2.5 acts as a ‘junior developer,’ diagnosing and contextualizing errors, generating tailored code, boosting the small team’s abilities.

Two engineers, one platform

Only a few short years ago, building and scaling an always-available, AI-driven app and portal with such a small team would have been extremely difficult. “Our app would be nowhere near as good or capable without Firebase supporting it,” Smith declares. “It’s super fast to set up new apps and easy to scale.”

Experience for yourself how Firebase’s comprehensive suite of tools, Gemini 2.5 Pro’s advanced coding performance, and Genkit’s flexible framework can accelerate your development workflows and automate your AI backend.