Inspiration

I'm a co-op student, and co-op income doesn't look like a normal paycheque. You get paid for four months, then you're back in school for four months with no income, and tuition is due on the first day. Canadian undergrads paid $7,734 in tuition on average in 2025/2026 [1]. At Waterloo alone, more than 23,760 students were hired for co-op work terms in 2021, and co-op students made up 64.8% of all students [2]. That's a lot of people budgeting in bursts with apps built around calendar months.

I also didn't want to upload my bank statements anywhere to get help with it. That's what made hybrid AI interesting: the private stuff can stay on the device, and the cloud can still help with the parts that aren't private.

What it does

Wingmo Buddy is a money planner and buddy for co-op students.

  • Import a bank CSV (or try a made-up student's statements). It's parsed and stored in the browser. No account needed.
  • Rules sort the merchants they know. Gemini Nano sorts the rest on the device with structured output.
  • It finds subscriptions, double charges, price bumps, trials that turned paid, and writes a monthly recap.
  • The co-op planner takes your work and study terms, pay, bills, tuition and goals. It tells you what to set aside from each paycheque and what's safe to spend each week until the study term ends.
  • "Can I afford it?" is decided by the planner. The model only explains the answer, in a chill, strict or roast tone.
  • There's a buddy chat and a weekly check-in (planned vs actual).
  • Optional accounts (email or Google) back your data up with end-to-end encryption. It's encrypted in the browser before upload, so the server only holds ciphertext.

How we built it

It's React + TypeScript + Vite, hosted on Firebase Hosting. All AI goes through the Firebase AI Logic web SDK with the Gemini Developer API, and App Check uses reCAPTCHA.

The main piece is a privacy router that tags every request and picks the inference mode from the tag:

  • Private, full detail: ONLY_ON_DEVICE. Nothing leaves the browser.
  • Private, but there's no Nano: the request gets rewritten into a rounded summary (no merchants, dates, names or account numbers). You see the exact text first, then it runs with PREFER_ON_DEVICE.
  • Unknown merchants: sorted on the device. With your opt-in, only the names can go to the cloud.
  • General questions (TFSA vs FHSA): PREFER_IN_CLOUD. If you're offline, Nano answers instead.
  • Ambiguous questions get a second opinion from Nano on the device (enum output), never from the cloud.

A plain PREFER_ON_DEVICE would have been easier, but its fallback sends the whole private prompt to the cloud. So the router checks Nano availability first and builds two prompts: full detail for the device, redacted for the cloud.

Every answer shows a badge for where it ran, and a Privacy panel logs every request with exactly what was sent. The production site also has a Content-Security-Policy that only allows requests to Firebase AI Logic, App Check and reCAPTCHA.

Accounts are optional and built like a password manager:

  • Your password is stretched with PBKDF2 (600k iterations) into a master key on the device.
  • Firebase Auth only gets a one-way derived secret, never the password.
  • A random AES-256-GCM key encrypts the backup. It's stored in Firestore wrapped by your password key and by a one-time recovery key.
  • Security rules only let you touch your own document, only accept ciphertext, and make every write bump a revision so two devices merge instead of overwriting.

The money math is deterministic code with unit tests. The model never calculates anything. A number guard checks every reply and marks any dollar figure or percentage the app didn't compute.

Challenges we ran into

  • Nano is single-turn, so the chat sends a few recent messages inside the prompt (on the device only, never in the cloud version).
  • The cloud prompt had to be useful without being identifying. Rounding to $5/$10/$50, and leaving out merchants and dates, turned out to be the balance.
  • Password resets. Firebase's reset email sets a raw password, which would break the derived-secret scheme. The app detects that on the next sign-in, opens the backup with the recovery key, and switches Auth back to the derived secret.
  • Co-op math has lots of edge cases: back-to-back work terms, gaps between terms, paydays that land after the term ends, and being in a study term with no income at all.
  • One bank rule from my older code filed shawarma shops under phone and internet, because "Shaw" is a cable company. I caught it in the demo data.

Accomplishments that we're proud of

  • The app works fully without Nano and without any model at all. The fallback is part of the design, not an error state.
  • You can see exactly what the cloud sees, before and after.
  • The planner turns an anxious question ("will I be okay next term?") into two numbers.

What we learned

Hybrid inference is most useful when the app decides what each side gets to see, not only which side runs.

What's next for Wingmo Buddy

  • An iOS companion with Apple Foundation Models through Firebase AI Logic.
  • OSAP and grant timing in the planner.
  • Folding it into wingmo.app.

Sources

[1] Statistics Canada, The Daily, "Tuition in Canada: Modest increases and widening gaps, 2025/2026," September 10, 2025. https://www150.statcan.gc.ca/n1/daily-quotidien/250910/dq250910d-eng.htm [2] University of Waterloo News, "Waterloo co-op program sets record-highs in post-pandemic workforce," October 12, 2021. https://uwaterloo.ca/news/waterloo-co-op-program-sets-record-highs-post-pandemic

Built With

  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • firebase-hosting
  • gemini
  • gemini-nano
  • indexeddb
  • react
  • recaptcha
  • tailwindcss
  • typescript
  • vite
  • vitest
  • web-crypto
Share this project:

Updates

Submission history