-
-
Dashboard: memory activity, quick questions, and a live indicator of which AI is running.
-
Five memory types captured: notes, images, PDFs, audio and video
-
Notes and PDFs are analysed on this device. Nothing is sent to a cloud model.
-
Audio is understood by Gemini in the cloud, through the same Firebase AI Logic SDK.
-
The timeline links the day's events: image, audio, voice message.
-
Prefer-local mode: Gemini Nano wasn't available here, so Firebase AI Logic fell back to the cloud
-
My Story: one day'sA memories woven into a single narrative, each source cited
-
Routing at a glance: notes and PDFs stay local, images, audio and video go to the cloud
-
Secure sign-in with Firebase Authentication.
Inspiration
We all capture pieces of our lives in different forms: a quick note, a PDF, a photo of a whiteboard, a voice memo. Weeks later they are scattered, and none of them tells us what actually happened that day. We wanted an app that gathers them and tells the story back to us.
Personal memories are also deeply private. That made hybrid inference a natural fit: keep the most sensitive text on the device, and use the cloud only for what a small local model cannot do.
What it does
Life Trace is a personal memory app. You add notes, PDFs, images, audio and video. Each memory is analysed automatically into a summary, category, tags, people, places, tasks and an event date.
- Notes and PDFs are analysed on-device with Gemini Nano in Chrome. They are never sent to the cloud. If Nano isn't available, a local rule-based analyser takes over, with no network and no data leaving the machine.
- Images, audio and video are analysed by Gemini in the cloud (multimodal).
- "My story": pick a day (or type "yesterday", "12 November") and Life Trace links that day's memories into one chronological story, with numbered citations back to each source and the people and places that connect them.
- Every result carries a badge showing where it really ran: Local or Cloud.
- It works offline: memories are saved locally, notes and PDFs are still analysed, and everything syncs when the connection returns.
How we built it
- Firebase AI Logic hybrid inference is the core:
ONLY_ON_DEVICEfor text analysis,ONLY_IN_CLOUDwith inline multimodal data for images, audio and video, and a mode selector in the assistant. - Cloud Firestore with a persistent local cache stores memories; security rules restrict every document to its owner.
- Firebase Authentication for accounts and App Check (reCAPTCHA Enterprise, debug tokens in development) in front of every AI call.
- React + TypeScript + Vite on the front end. PDF text is extracted in the browser with pdf.js.
- Before any text reaches the cloud (for the story), emails, phone numbers and amounts are anonymised and restored afterwards.
- An offline queue (IndexedDB) keeps uploads and analyses until the network is back.
- The repository is split into
frontend/andbackend/(Firebase rules and hosting), with a setup script and a diagnostics script.
Challenges we ran into
- Gemini Nano's requirements. It needs a recent desktop Chrome, about 22 GB of free disk and either a capable GPU or 16 GB of RAM. One of our development machines has 8 GB, so Nano could not run there. That pushed us to build a rule-based local fallback and to make the UI honest about which engine produced each result.
- Offline writes. With Firestore's persistent cache, a write only resolves once the server confirms it, so creating a note offline appeared to hang. We changed our write path so local saves return immediately and sync later.
- Structured output from a small model. Gemini Nano doesn't always return clean JSON, so we added tolerant parsing and fallbacks.
- French date understanding. Phrases like "yesterday", "last Friday" and "12 November" had to resolve to real days so the story page finds the right memories.
- Privacy vs. quality. Deciding what may go to the cloud: we send only short summaries for the story, anonymised, and nothing from notes or PDFs.
What we learned
Hybrid inference is less about picking a model than about designing for the device you don't control. Availability checks, graceful fallbacks and telling users where their data was processed matter as much as the prompts. Offline-first behaviour and AI each have their own failure modes, and they interact.
What's next
- English and multilingual interface and prompts
- Android and iOS versions using the same hybrid SDK
- Smarter cross-day stories ("my week", "this trip")
- Remote Config to adjust the routing rules without redeploying
Built during the hackathon
[If the app existed before the submission period, summarise here what you built during it: for example the hybrid analysis pipeline, the "My story" feature, offline mode and the restructured repository.]
Built With
- chrome-built-in-ai
- cloud-firestore
- cloudinary
- css3
- firebase-ai-logic
- firebase-app-check
- firebase-authentication
- firebase-hosting
- gemini
- gemini-nano
- google-cloud
- html5
- indexeddb
- javascript
- lucide
- node.js
- pdf.js
- react
- recaptcha-enterprise
- typescript
- vite