Inspiration
Students and researchers frequently review lecture notes in low-connectivity environments—such as classrooms, public transit, or offline study sessions—where cloud-only AI tools stall or fail. At the same time, generating comprehensive study guides and practice quizzes requires deeper reasoning best handled by frontier cloud models. NanoCloud Notes bridges that gap by intelligently splitting lightweight note summarization and heavy study synthesis across local and cloud AI.
What it does
NanoCloud Notes is an adaptive hybrid AI study and research workspace built with the Firebase AI Logic Hybrid Inference SDK:
- Smart Auto-Route: Evaluates note complexity and real-time online/offline status—routing concise notes or offline sessions to
prefer_on_device(Gemini Nano) and escalating dense multi-paragraph lectures toprefer_in_cloud(Gemini in Firebase). - Quick Summary (
prefer_on_device): Prioritizes local execution on supported Chrome browsers to extract 3 bullet points and key terms privately, automatically falling back to the cloud on unsupported hardware. - Study Guide & Quiz (
prefer_in_cloud): Routes complex synthesis to Gemini in Firebase to generate structured core concepts and practice quizzes with answer keys. - Offline Study Vault: Automatically caches generated summaries and study guides locally (
localStorage) so students can review past outputs anytime without internet access.
How we built it
- Frontend & Hosting: Built as a zero-dependency progressive web workspace hosted live on GitHub Pages (
https://github.io). - Hybrid AI Engine: Integrated the Firebase JS SDK (
firebase-ai.js) usingGoogleAIBackendandgetGenerativeModelconfigured withprefer_on_deviceandprefer_in_cloudinference modes. - Security & Telemetry: Secured backend endpoints with Firebase App Check (configured with a debug token for frictionless hackathon judging) and instrumented real-time latency and inference source badges (
On-Devicevs.Cloud Fallback).
Challenges we ran into
Developing, debugging, and deploying a complete hybrid AI web application entirely from a mobile workflow required careful ES module handling, App Check debug token configuration across hosted domains, and designing resilient offline caching and graceful fallback behavior across mobile and desktop Chrome environments.
Accomplishments that we're proud of
- Built and shipped a complete, live hybrid AI web application end-to-end from a mobile device with an Apache 2.0 open-source repository.
- Implemented transparent hybrid routing telemetry (
On-Devicevs.Cloud Fallbackbadges and latency readouts) alongside an offline-first study vault.
What's next for NanoCloud Notes
- Adding Cloud Firestore sync and Firebase Authentication for multi-device notebook syncing.
- Adding Firebase Remote Config to dynamically tune character/token routing thresholds without redeploying.