Inspiration
Knowledge workers, lawyers, researchers, and engineers handle sensitive documents every day—confidential M&A memos, medical field notes, and proprietary architecture specs. Sending every quick summary or classification request to a remote cloud server compromises privacy and adds network latency, yet local browser models aren't available on every device or capable of heavy multi-step reasoning. HybridVault AI was built for #BuildHybridAI 2026 to solve this exact trade-off using Firebase AI Logic Hybrid Inference.
What it does
HybridVault AI is a privacy-first Hybrid AI Document & Note Studio for Web (Chrome) that intelligently routes AI workloads across three resilience tiers:
- Tier 1 — On-Device Inference (
InferenceMode.PREFER_ON_DEVICE/ONLY_ON_DEVICE): Leverages Chrome Built-in AI (Gemini Nano) via Firebase AI Logic for zero-cloud private summaries and instant local processing. - Tier 2 — Cloud Fallback (
InferenceMode.PREFER_IN_CLOUD): Automatically falls back to cloud Gemini models viaGoogleAIBackend()when deep reasoning is requested or when a user's browser lacks on-device model weights. - Tier 3 — Offline-Resilient Local Edge NLP Engine: Guarantees uninterrupted document synthesis, structured JSON action-item extraction, and telemetry even offline or during transient cloud demand spikes.
Key studio capabilities include:
- Live Hybrid Mode Switcher & Telemetry Bar: Switch in real time between Auto Hybrid (Prefer On-Device), Strict On-Device (Chrome Gemini Nano), and Cloud Deep Reasoning, while inspecting active inference source, latency (
ms), character count, andAPP CHECK VERIFIEDstatus. - One-Click AI Workflows: Private Local Summary, Extract Action Items (JSON), Deep Cloud Synthesis, Translate & Tone Polish, plus custom prompts.
- Hybrid Architecture & Diagnostics Drawer: Live inspection of Firebase AI Logic SDK initialization, browser
LanguageModelhardware capability, and Firebase App Check verification.
How we built it
- Frontend: Zero-build, pure HTML5, modern dark-mode CSS3, and Vanilla ES Module JavaScript deployed statically on GitHub Pages.
- Firebase AI Logic SDK (
firebase/ai): ConfiguredgetAI(app, { backend: new GoogleAIBackend() })andgetGenerativeModel()withInferenceModerouting (PREFER_ON_DEVICE,ONLY_ON_DEVICE,PREFER_IN_CLOUD). - Firebase App Check (
firebase/app-check): InitializedinitializeAppCheckwithReCaptchaEnterpriseProviderand a registered submission debug token (11111111-2222-4333-8444-555555555555) so judges can test all hybrid features immediately without authentication friction.
Challenges we ran into
Ensuring seamless execution across browsers with different Chrome Built-in AI hardware availability and handling transient cloud model demand spikes required building a deterministic multi-tier fallback pipeline (On-Device -> Cloud Model Chain -> Local Edge NLP) plus cache-busted static module delivery.
What's next for HybridVault AI
Adding client-side IndexedDB encrypted vault storage, multi-document cross-referencing via local embeddings, and Chrome Extension side-panel integration.
Built With
- chrome-ai
- css3
- firebase
- firebase-ai-logic
- firebase-app-check
- gemini
- html5
- javascript