Inspiration

Couples planning a wedding often scatter notes, budgets, and vendor quotes across chat apps and spreadsheets. At the same time, each partner wants a private space to organize personal thoughts and priorities before bringing a clear summary to their partner. WedMate solves this by combining strict local privacy with collaborative planning using Firebase AI Logic Hybrid Inference.

What it does

WedMate separates wedding planning into two distinct environments:

  • My Private Space (On-Device Only): Each partner keeps personal notes, preferences, and private AI conversations in local browser IndexedDB (Dexie.js). Private AI runs with InferenceMode.ONLY_ON_DEVICE and never falls back to the cloud. When ready, a partner can explicitly approve a generated summary to share with the couple workspace.
  • Our Wedding (Shared Couple Workspace): Two partners collaborate in Cloud Firestore (enforced at max 2 active members by Firestore Security Rules) to manage wedding dates, IDR budgets, vendor quotations, and shared tasks. Budget analysis and side-by-side vendor comparisons use InferenceMode.ONLY_IN_CLOUD with Zod-validated JSON responses.
  • General Hybrid Assistant & AI Lab: Non-sensitive planning queries use InferenceMode.PREFER_ON_DEVICE and display the actual execution route (ON_DEVICE or IN_CLOUD) from result.response.inferenceSource.

How we built it

  • Frontend: React, TypeScript, Vite, Tailwind CSS, React Hook Form, Zod, Zustand, Recharts, and vite-plugin-pwa for an offline-capable app shell.
  • Firebase: Firebase Authentication (Email/Password), Cloud Firestore with Security Rules, Firebase AI Logic (firebase/ai), Firebase App Check, Firebase Remote Config, and Firebase Hosting.
  • Offline Persistence: Dexie.js (IndexedDB) for private notes/preferences and a conservative offline write queue for shared updates.

Challenges we ran into

  • Ensuring strict privacy isolation so Private AI never silently falls back to cloud inference when Chrome's on-device Gemini Nano model is unavailable or still downloading, while preserving user input.
  • Handling offline-first shared updates conservatively so stale offline edits never silently overwrite newer partner updates in Firestore.

Accomplishments that we're proud of

  • Real runtime integration of all three Firebase AI Logic InferenceMode options (ONLY_ON_DEVICE, ONLY_IN_CLOUD, and PREFER_ON_DEVICE) with transparent inferenceSource reporting in the UI.
  • Deterministic IDR budget and per-guest vendor calculations paired with advisory Cloud AI insights.

What we learned

  • Using GenerativeModel.initializeDeviceModel() and window.LanguageModel.availability() gives users clear feedback on Chrome on-device model readiness before running private inference.
  • Combining IndexedDB for private state with Firestore Security Rules for shared couple state keeps the privacy boundary enforceable rather than cosmetic.

What's next for WedMate

  • Guest RSVP management and seating arrangement tools.
  • Wedding day rundown timeline and post-wedding household budget planning.

Built With

  • cloud-firestore
  • dexie
  • firebase
  • firebase-ai-logic
  • firebase-app-check
  • firebase-auth
  • firebase-hosting
  • firebase-remote-config
  • gemini-nano
  • react
  • tailwindcss
  • typescript
  • vite
  • zod
Share this project:

Updates

Submission history