I kept running into the same little writing tasks every day. Shorten this paragraph. Make this email sound less stiff. Translate this note. I wanted one tiny tool for all of that, and I wanted it to respect my privacy when it could.
NanoDesk is that tool. It does eight everyday jobs: summarize, fix and polish, make a text formal, make it friendly, translate between English and Indonesian, expand a short note into a full paragraph, and describe an image.
The interesting part is where the AI runs. NanoDesk is built on Firebase AI Logic with hybrid inference turned on. Simple requests first try Gemini Nano, the model that lives inside Chrome on the user's own machine. That answer comes back fast, it costs nothing, and the text never leaves the device. When the device does not have Nano, or the model is not ready, the same request goes to a Gemini model in the cloud instead. Nothing breaks. It just runs somewhere else.
Every result shows a small badge that says where the request actually ran, on-device or in the cloud, and how long it took. I did not want a vague "hybrid" claim on the landing page. I wanted proof on every single answer. The app also lets you pick the routing yourself, with all four Firebase inference modes in a dropdown: prefer on-device, on-device only, prefer cloud, and cloud only. Playing with those four modes is honestly the fastest way to understand what hybrid inference really does.
How I built it
Plain HTML and JavaScript, no framework, hosted on GitHub Pages. All AI goes through the Firebase AI Logic SDK with the Gemini Developer API backend. App Check protects the project, and during development I use a registered debug token, which the hackathon rules allow. The on-device side uses the Chrome Prompt API through the SDK, including the model warm-up call after a user tap, with a progress bar while Nano downloads.
One real bug is worth mentioning. My first live test failed on every request with a 404. It turned out the SDK version I pinned still pointed at a cloud model that Google had retired. The fix was one line: pin the cloud model name myself instead of trusting the default. Lesson learned, always pin your model names.
What I learned
Hybrid inference is not just a performance trick. It changes what you can promise a user. You can honestly say "your words stay on your machine" for most requests, and still have a strong model ready for the moments the local one is not there. The routing badge also taught me something: people trust a feature more when the app shows its work.