Inspiration
Most AI writing tools send every draft to the cloud by default. For cover letters, personal notes, and study text, that feels wrong - people either overshare sensitive writing or avoid AI entirely.
EchoDraft started from a simple product rule: short sensitive edits should stay on-device; deeper reasoning should use the cloud only when the user opts in - and that handoff should be visible, not hidden. Firebase AI Logic hybrid inference made that architecture possible in one SDK for Chrome.
What it does
EchoDraft is a privacy-first writing desk for students and job seekers.
- Private Mode - rewrite, shorten, tone, and bullets using Firebase AI Logic
PREFER_ON_DEVICE(or Privacy Lock withONLY_ON_DEVICE) - Deep Mode - outline, study Q&A, and critique using
ONLY_IN_CLOUD - Hybrid handoff - before anything goes to the cloud, a confirm sheet shows exactly which draft leaves the device
- Honest inference badges - every result shows On-device, In cloud, or Source unverified (never fabricated)
- Recent runs - a short history strip compares on-device vs cloud side by side
- Remote Config thresholds nudge long drafts toward Deep Mode
- App Check, Anonymous Auth, and Firestore draft sync round out the Firebase stack
Live demo: https://echodraft-visshva.web.app
Source: https://github.com/visshva-r/EchoDraft
How we built it
- Vite + React + TypeScript web app targeting Chrome desktop
- Firebase AI Logic hybrid inference via
getGenerativeModelandInferenceMode - Gemini Nano on-device through the Chrome Prompt API; cloud model for Deep Mode
- Supporting Firebase products: App Check (reCAPTCHA Enterprise), Authentication, Cloud Firestore, Remote Config, and Hosting
Core routing and prompting live in src/lib/ai.ts. The UI is designed so judges can see the hybrid path in seconds: mode tabs, live badges, handoff confirm, and inference history.
Challenges we ran into
- Getting App Check right on production Hosting (not just localhost debug tokens)
- Keeping the On-device AI Ready pill honest - only after a real on-device probe, never a green lie
- Avoiding fabricated badges when the SDK returns an unknown inference source
- Turning cloud fallback into a deliberate product handoff, not a silent failure
- Shipping a clear hybrid demo under a hard deadline
Accomplishments that we're proud of
- A complete hybrid loop judges can see: Private → On-device, Deep → In cloud
- An intentional cloud handoff sheet that shows what leaves the device
- Honest
inferenceSourcebadges and a recent-runs comparison strip - A hosted demo, public Apache-licensed repo, and end-to-end Firebase stack (AI Logic + App Check + Auth + Firestore + Remote Config + Hosting)
- Product feel over hackathon chrome - privacy as the feature, not a slogan
What we learned
Hybrid inference is a product decision, not just an SDK flag. Showing where inference ran, confirming cloud use, and failing honestly matters as much as generating good text. We also learned how App Check, on-device model readiness, and Chrome Prompt API setup interact in a real hosted web app.
What's next for EchoDraft
- Stronger offline Private Mode sessions with clearer Nano setup guidance
- Chrome extension for select-to-rewrite on any page (still on-device first)
- Optional export with per-paragraph inference provenance
- Broader document workflows (longer notes → intentional Deep Mode) while keeping the privacy handoff as the core experience
Built With
- chrome
- cloud-firestore
- firebase-ai-logic
- firebase-app-check
- firebase-authentication
- firebase-hosting
- firebase-remote-config
- gemini-nano
- javascript
- react
- typescript
- vite