Skip to content
All projects

Case study 02Mobile · AI · Social fitness

XyloFit

Fitness tracking that turns consistency into a game.

A cross-platform fitness app that pairs calorie tracking and AI-assisted meal logging with head-to-head PvP challenges — so the reason to open it tomorrow is someone to beat.

Visit sitexylofit.net(opens in a new tab)
Role
Founder & sole engineer — product, UI, mobile, backend
Platform
Android (Google Play) · iOS coming soon
Stack
FlutterFirebaseAI integrationsFCMAdMob

What it does

  • AI-assisted meal logging that turns a description or photo into editable nutrition data
  • An AI coach that answers questions and builds personal 7-day training programs
  • Competitive PvP duels with server-side scoring
  • Push-driven re-engagement through FCM
  • Available in Turkish, English and German
  • Ad-supported model designed in from day one

Overview

XyloFit is a fitness and nutrition app built around one observation: people don't quit calorie tracking because they lack data, they quit because logging is tedious and progress is lonely. XyloFit makes logging fast with AI and makes progress social through competition.

Problem

Most trackers optimise the spreadsheet, not the habit. Logging a meal takes too many taps, estimates feel like homework, and nothing pulls you back on day four. Retention — not features — is the real problem to solve.

Goals

  1. Log a meal in seconds, not minutes
  2. Give users a social reason to return every day
  3. Keep competitive results fair when the data is self-reported
  4. Run the product sustainably as a free, ad-supported app

My role

Founder & sole engineer — product, UI, mobile, backend.

  • Product definition, information architecture and UI design
  • Flutter application architecture and state management
  • Firebase data model, security rules and server-side logic
  • AI integration for nutrition estimation
  • Notification strategy (FCM) and monetization (AdMob)

Technology

Client
FlutterDart
Backend
Firebase AuthCloud FirestoreServer-side triggers
Intelligence
AI nutrition estimationPrompted structured output
Growth
Firebase Cloud MessagingAdMob

Architecture

The client stays thin and optimistic; anything that affects fairness or another user lives on the server.

  1. Flutter client

    Optimistic UI, local cache, offline-tolerant logging

  2. Auth & Firestore

    Profiles, daily logs and duel documents with scoped security rules

  3. AI service

    Meal text/photo → structured macros the user can confirm or edit

  4. Duel engine

    Server-side scoring and validation so the client can't award itself points

  5. FCM

    Event-driven invites, results and reminders — rate-limited per user

Challenges & solutions

Fair competition on self-reported data

Challenge

If scoring runs on the client, anyone can win. And raw calorie numbers favour whoever logs the most, not whoever is most consistent.

Solution

Moved scoring server-side, normalised scores around each user's own targets, and capped outliers so consistency beats volume.

AI estimates are uncertain by nature

Challenge

A model guessing “chicken salad” can be off by hundreds of calories. Presenting that as fact erodes trust fast.

Solution

AI output is a draft, never a record: users see the breakdown, adjust portions in one tap, then confirm. Structured output keeps parsing reliable.

Realtime without runaway reads

Challenge

Live duel updates via naive listeners multiply Firestore reads — and cost — with every active user.

Solution

Denormalised duel summary documents and tightly scoped listeners, so a screen subscribes to exactly the data it shows.

Screens

  • a.Today — calories and macros at a glance
  • b.AI meal logging — a draft you confirm
  • c.PvP duel — consistency is the score
  • xylofit.net
    XyloFit website home page showing the app on a phone and a Google Play download button
    d.xylofit.net — the live product site

Results

  • Live on Google Play, with the product site at xylofit.net
  • End-to-end ownership: design, mobile, backend, AI, notifications and monetization by one engineer
  • A foundation for adding new competitive formats without client releases
Visit sitexylofit.net(opens in a new tab)

Lessons learned

“Retention is a product problem first and a feature list second.”

“Treat AI output as a suggestion with an edit path — trust follows.”

“Decide early what the client is not allowed to decide.”