Inspiration
Millions of households worldwide own Wi-Fi-only tablets and spare smartphones with no SIM card or phone number. Staying connected across borders—such as between the USA and India—often forces close circles onto public, ad-driven social apps that require phone-number registration, constant connectivity, and permanent cloud data retention. We built VanDox WiFi Messenger to give any Wi-Fi device a private, offline-first, SIM-free voice bridge.
What it does
VanDox WiFi Messenger is an installable Progressive Web App (PWA) for private voice messaging and peer-to-peer Wi-Fi audio calling:
- SIM-Free Private Rooms (
VDX-XXXXXX): A host signs in with Google Auth to generate a collision-free 6-character room code and 1-click invite link (?room=VDX-XXXXXX), with optional Host Knock-to-Join Approval. Guests worldwide join via Firebase Anonymous Auth—zero SIM or phone number needed. - On-Device AI (
Gemini Nano— Offline & Private):Transcribes voice notes locally without sending raw audio to external servers, runs a real-time Tone & Kindness Check before queuing, and suggests one-tap smart replies offline. - Cloud AI (
Gemini Cloud— Global Voice Bridge):Translates voice messages between English, Gujarati, and Hindi in one tap with instant Text-to-Speech playback. - Encrypted P2P Wi-Fi Audio Calls & Offline Outbox: Direct WebRTC audio calling over Wi-Fi with live AI captions, paired with an offline outbox that auto-syncs the moment Wi-Fi reconnects.
- Zero-Cost & Privacy Guardrails: Protected by Firebase App Check,
request.auth != nullFirestore rules, a 30-second voice cap, room/daily rate limits, and automatic 24-hour message deletion.
How we built it
Frontend & PWA: React (Vite), Tailwind CSS, Lucide Icons, Web Manifest (manifest.json), and a Service Worker (sw.js) for full home-screen installation and offline launch.
-Hybrid AI (firebase/ai): Official Firebase AI Logic SDK configured with InferenceMode.PREFER_ON_DEVICE at runtime to prioritize local Gemini Nano inference and seamlessly bridge to Gemini Cloud for cross-language translation, paired with the browser Web Speech API.
- Backend & Real-Time Media: Firebase Authentication (Google + Anonymous), Cloud Firestore (real-time sync and WebRTC signaling), Firebase App Check, and WebRTC (
RTCPeerConnection) for peer-to-peer Wi-Fi voice calls.
Challenges we ran into
- Cross-Browser WebRTC Audio Reliability: Ensuring incoming remote audio streams attach and play cleanly across mobile and desktop browsers required handling
event.streams[0]explicitly alongsideplaysInlineautoplay policies and Firestore ICE candidate synchronization. - Zero-Cost Free-Tier Protection: Designing strict client and Firestore guardrails—including 30-second audio caps (staying well below Firestore's 1MB document limit), daily message limits, and automatic 24-hour TTL purges—to keep storage near zero.
Accomplishments that we're proud of
Delivering a truly SIM-free, phone-number-free global communication bridge that works smoothly on spare Wi-Fi tablets and phones.
- Achieving real-time hybrid inference switching with a transparent live status badge (
On-Device AI,Cloud Bridge, andOffline Outbox Mode).
What we learned
- Balancing On-Device and Cloud AI (
InferenceMode.PREFER_ON_DEVICE): Learned how to architect a true hybrid AI pipeline using thefirebase/aiSDK—running privacy-sensitive tasks like local voice transcription, tone checks, and smart replies offline on Gemini Nano while reserving Gemini Cloud for cross-language translation (English ↔ Gujarati / Hindi). - Building SIM-Free, Multi-Tenant Isolation: Learned how to combine Google Auth for room hosts with Firebase Anonymous Auth (
request.auth.uid) for SIM-less guests, backed by collision-freeVDX-XXXXXXroom codes, Host Knock-Approval, App Check, and strict Firestore Security Rules. - Cross-Platform WebRTC Audio & Autoplay Handling: Gained hands-on experience managing peer-to-peer WebRTC signaling over Firestore, fixing remote
MediaStreamtrack attachment (event.streams[0]), and handling mobile/desktopplaysInlineaudio playback policies. - Offline-First PWA Architecture & Zero-Cost Guardrails: Learned how to keep a real-time voice app 100% within Firebase's Free Spark Plan using Service Worker caching, an auto-syncing offline outbox queue, 30-second audio caps, daily rate limits, and automatic 24-hour message purging.
What's next for VanDox WiFi Messenger
Expanding multi-language voice translation to additional regional languages and adding multi-party WebRTC group audio rooms while preserving our strict 24-hour zero-retention privacy model.