VaultLens — Your Knowledge. Your AI. Your Control.
One Knowledge Engine. Multiple AI Models. Four Platforms. Privacy at the Center.
VaultLens is a privacy-first hybrid AI knowledge ecosystem that combines on-device intelligence, Firebase AI Logic, personal RAG, encrypted storage, deterministic analytics, and interactive AI experiences across Web, Android, iOS, and Chrome Extension.

GitHub Repository | Product Visual Tour | Demo Walkthrough
Inspiration
AI is becoming increasingly powerful, but accessing that intelligence often requires sending personal documents, financial records, conversations, and sensitive information to external servers.
We wanted to challenge this trade-off.
What if an AI assistant could understand your entire personal knowledge base, remember important information, analyze documents and spreadsheets, and generate interactive insights — without requiring you to surrender control of your data?
This inspired VaultLens.
Rather than building another chatbot, we set out to build a complete personal intelligence ecosystem where knowledge, AI, privacy, and productivity work together.
What it does
VaultLens transforms scattered information into a unified, searchable, intelligent personal knowledge workspace.
🧠 1. Hybrid AI Intelligence
Powered by Firebase AI Logic and supported on-device models, VaultLens combines local and cloud intelligence through capability-aware routing.
Its five primary routing modes are:
- Auto
- Prefer Device
- Sanitize & Cloud
- Prefer Cloud
- Cloud Only
Additional capabilities include:
- Gemini Nano on-device intelligence
- Firebase AI Logic cloud Gemini models
- Apple Foundation Models on supported iOS devices
- Automatic device capability detection
- Configurable cloud model catalog
- Streaming and multi-turn conversations
- Structured JSON responses
- Function calling and tool orchestration
- Transparent inference-source reporting
VaultLens is designed to use the appropriate intelligence engine while respecting information-access policies.

🔍 2. Privacy-Aware RAG — Your Entire Knowledge, Connected
VaultLens goes beyond traditional document-based chat by introducing a personal Retrieval-Augmented Generation engine that connects information across the user's knowledge workspace.

Supported knowledge sources include:
- Notes and personal facts
- Previous chats and conversations
- Contacts and events
- Tasks and projects
- Receipts and extracted information
- PDFs and text documents
- CSV datasets and supported Excel workbooks
- Web articles and captured browser content
- Eligible unlocked Protected Vault records
- Linked knowledge and source relationships
Intelligent retrieval capabilities include:
- Automatic knowledge extraction
- Classification and tagging
- Full-text lexical search
- Semantic and vector retrieval where enabled
- Hybrid ranking
- Structured filtering
- Linked-record expansion
- Conversation context assembly
- Source citations and provenance
- Privacy-aware context selection
Two independent RAG pathways
Local RAG: Retrieves eligible local records and authorized unlocked Vault knowledge directly on the device.
Cloud RAG: Retrieves authorized cloud-eligible information while excluding Device Only and Protected Vault records.
Instead of repeatedly uploading files, users can ask questions across their accumulated knowledge.
For example:
- Summarize my recent project discussions.
- Compare expenses across my saved receipts.
- Generate a graph from my stored financial records.
- Find information across my notes and documents.
- Create a table of upcoming tasks and events.
- Identify related information across multiple knowledge sources.
VaultLens is designed to transform personal data into actionable intelligence.
📚 3. Intelligent Knowledge Workspace

VaultLens provides a unified environment for capturing, organizing, searching, editing, and managing personal knowledge.
Features include:
- Automatic knowledge organization
- Multiple structured record types
- Intelligent tagging
- Local knowledge indexing
- Natural-language knowledge retrieval
- Search and filtering
- Source tracking
- Markdown note creation and editing
- Attachment management
- Automatic title generation
- Record-level privacy settings
- Knowledge export and deletion
- AI-assisted summaries and extraction
Users can turn AI responses into persistent, editable knowledge that becomes available to future conversations.
🔐 4. Privacy by Architecture
Privacy is not simply a toggle in VaultLens. It is an architectural boundary.
VaultLens separates:
- AI model access
- Cloud synchronization
- Local storage
- Protected Vault access
- Record-level authorization
- Cloud request review
- Network admission
Its Sanitize & Cloud workflow is designed to:
- Process private information locally.
- Prepare a sanitized public question.
- Present the proposed cloud payload for review.
- Send authorized information to cloud Gemini.
- Combine eligible cloud insights with private context locally.
Users can benefit from cloud intelligence without automatically exposing their entire personal knowledge base.
🛡️ 5. Independent Encrypted Vault

VaultLens includes a dedicated encrypted environment for sensitive knowledge.
The Vault architecture features:
- AES-256-GCM authenticated encryption
- PBKDF2 password-based key derivation
- Independent encryption keys
- Password-protected access
- Automatic locking
- Protected notes and conversations
- Sensitive credential storage
- Encrypted attachments
- Local encrypted backup and recovery
- Session-scoped access to decrypted knowledge
- Face ID-assisted access architecture on supported Apple devices
Locked Vault content is excluded from retrieval, and Protected Vault information is isolated from cloud RAG.
This allows users to maintain ordinary and highly sensitive knowledge within the same application while retaining distinct privacy boundaries.
📊 6. Interactive AI Answers and Artifact Studio
AI answers should be more than paragraphs of text.
VaultLens includes an interactive artifact architecture that transforms AI responses into explorable visual experiences.
Capabilities include:
- Interactive charts and graphs
- Structured data tables
- Spreadsheet exploration
- KPI and metric cards
- Comparison views
- Interactive diagrams
- Markdown documents
- Mathematical expressions
- Code blocks
- Source and evidence previews
- Contextual Artifact Studio
- Follow-up suggestions
Users can explore information, inspect structured results, and continue working with generated insights.
📈 7. Private, Deterministic Spreadsheet Analytics
AI models are powerful reasoning engines, but they are not inherently reliable calculation engines.
VaultLens separates AI reasoning from numerical execution.
AI understands the question. A deterministic engine performs the calculation.
Its analytics architecture supports:
- CSV and supported Excel workbook ingestion
- Count, Sum, Average, Minimum, and Maximum
- Grouped aggregations
- Structured filtering
- Exact decimal arithmetic
- Interactive data visualization
- Spreadsheet exploration
- Formula-safe CSV exports
- Natural-language analytical questions
On the Web, DuckDB-Wasm executes analytical workloads directly inside the browser. Native platforms use their own deterministic numerical engines.
This enables private data analysis while reducing the risk of fabricated numerical results.
📄 8. Multimodal Document Intelligence
VaultLens brings different information formats into a unified AI knowledge environment.
Its document and attachment architecture covers:
- DOCX
- XLSX
- CSV
- TXT
- Markdown
- JSON
- JPEG and PNG
- Supported additional image formats
- OCR and scanned documents
- Audio and video through eligible cloud workflows
Users can summarize documents, extract structured information, analyze images, process receipts, create notes, and connect extracted knowledge with existing records.
🎙️ 9. Voice and Conversational Intelligence
VaultLens includes local and cloud-assisted voice capabilities:
- Voice dictation
- Local speech recognition
- Text-to-speech
- Gemini Live audio conversations
- Voice-assisted knowledge exploration
- Local translation and language tools where supported
This makes VaultLens useful for mobile users, field workers, researchers, and anyone who prefers natural conversation.
🌐 10. Cloud Research and Intelligent Tools
Firebase AI Logic provides the foundation for advanced cloud-assisted capabilities, including:
- Google Search grounding
- URL Context
- Structured generation
- Function calling
- Multimodal analysis
- Cloud-assisted research
- Controlled local tool execution
- Authorized aggregate analysis
- Configurable Gemini model selection
These capabilities are subject to provider availability, project configuration, platform support, and privacy authorization.
📴 11. Offline-First Workspace
VaultLens is designed to remain useful without a continuous internet connection.
Its local capabilities include:
- Knowledge capture and editing
- Local search
- Markdown editing
- Protected Vault access
- Deterministic analytics
- Supported document processing
- Saved conversation access
- Supported on-device AI inference
- Offline PWA access after preparation
Local functionality does not inherently require a cloud AI model or user account.
🔄 12. Encrypted Cross-Platform Synchronization
VaultLens includes an encrypted synchronization architecture powered by Firebase Authentication and Cloud Firestore.
Features include:
- Optional Google Sign-In
- Independent Normal and Vault synchronization
- Client-side encryption
- Compatible cross-platform encryption contracts
- Recovery key transfer
- Revision management
- Conflict resolution
- Remote copy management
- Explicit synchronization controls
Users can choose between a purely local workspace and an encrypted connected experience.
⚡ 13. Transparent AI Execution Inspector
VaultLens is designed to make AI execution observable.
Its Execution Inspector architecture reports:
- Observed inference source
- Selected AI model
- Routing decisions
- Execution latency
- Retrieved knowledge context
- Tool execution
- Cloud request information
- Privacy activity
- Capability availability
Users can understand how their answers were generated rather than treating AI as a black box.
One Ecosystem. Four Platforms.

💻 Web Application
A comprehensive browser-based AI workspace.
- React 19 and TypeScript
- Chrome Gemini Nano
- Firebase AI Logic
- Local and cloud RAG
- DuckDB-Wasm analytics
- Interactive Artifact Studio
- Encrypted Vault
- Offline-first PWA
- Document intelligence
📱 Native Android
A native mobile intelligence workspace.
- Kotlin and Jetpack Compose
- Material 3 Expressive
- Gemini Nano and AICore
- Firebase AI Logic
- Room and SQLite
- Native interactive charts
- Local knowledge retrieval
- Encrypted Vault and sync architecture
🍎 Native iOS and iPadOS
A native Apple-platform intelligence experience.
- Swift and SwiftUI
- Apple Foundation Models
- Firebase AI Logic
- CryptoKit encryption
- SQLite FTS5
- PDFKit and Vision OCR
- Swift Charts
- Keychain and biometric access architecture
🧩 Chrome Extension
VaultLens directly inside the browsing experience.
- Manifest V3 architecture
- Quick-action toolbar popup
- Browser side panel
- Full workspace and Studio tab
- Selected-text capture
- Web article extraction
- HTML table-to-CSV conversion
- Context-menu actions
- Hybrid AI-assisted browsing
- Local knowledge integration
- Cross-surface Vault locking
- User-triggered page access
All four implementations are maintained within one unified repository.
How we built it
VaultLens uses a modular architecture separating user interfaces, AI orchestration, privacy enforcement, retrieval, storage, cryptography, analytics, and synchronization.
Firebase — The Hybrid Intelligence Foundation
Firebase is central to the VaultLens architecture.
| Firebase Technology | Role in VaultLens |
|---|---|
| Firebase AI Logic | Hybrid AI, Gemini inference, multimodal intelligence and function calling |
| Firebase Authentication | Optional Google identity and account management |
| Cloud Firestore | Encrypted synchronization and revision management |
| Firebase App Check | Application attestation and backend protection |
| Firebase Remote Config | Model catalogs, routing configuration and feature controls |
| Firebase Hosting | Web deployment infrastructure |
Firebase AI Logic enables VaultLens to combine supported on-device intelligence with cloud Gemini while retaining application-level control over knowledge retrieval and privacy.
Technology Stack
Web and Chrome Extension: React 19, TypeScript, Vite, Gemini Nano, Firebase AI Logic, IndexedDB, Dexie, SQLite-Wasm, MiniSearch, Transformers.js, DuckDB-Wasm, WebAssembly, Web Workers, Web Crypto, PDF.js, Tesseract.js, CodeMirror, Streamdown, Service Workers and Manifest V3.
Android: Kotlin, Jetpack Compose, Material 3 Expressive, Gemini Nano, AICore, Firebase Android SDK, Room, SQLite FTS5, BigDecimal and native Canvas.
iOS: Swift, SwiftUI, Apple Foundation Models, Firebase iOS SDK, CryptoKit, SQLite3, Swift Charts, PDFKit, Vision, Keychain and Swift Concurrency.
Challenges we ran into
Combining local and cloud intelligence safely
Hybrid AI requires more than selecting a model. It requires controlling what information reaches each engine. We developed privacy-aware routing, retrieval boundaries, and cloud request authorization.
Building privacy-aware RAG
Traditional RAG often assumes that every indexed record is available to the AI model. VaultLens required distinct retrieval scopes for local intelligence, cloud intelligence, and Protected Vault knowledge.
Making AI analytics reliable
We separated natural-language interpretation from deterministic mathematical computation to improve numerical reliability.
Supporting four different platforms
Web browsers, Android, Apple devices, and Chrome extensions have different storage systems, permissions, security constraints, model availability, and lifecycle behavior.
We developed platform-specific adapters around shared architectural principles and compatible data contracts.
Protecting the complete data lifecycle
We considered privacy across storage, indexing, retrieval, AI inference, attachments, background operations, synchronization, locking, deletion, and recovery.
Accomplishments that we're proud of
- Building a four-platform hybrid AI knowledge ecosystem.
- Integrating Firebase AI Logic into a privacy-aware intelligence architecture.
- Connecting diverse personal knowledge sources through RAG.
- Supporting distinct local and cloud retrieval pathways.
- Combining AI reasoning with deterministic local analytics.
- Developing an independent encrypted knowledge Vault.
- Creating rich interactive AI answers and artifact workspaces.
- Extending personal knowledge capture into everyday browsing.
- Designing compatible cross-platform encryption and synchronization contracts.
- Maintaining an offline-first architecture with optional cloud intelligence.
Our greatest accomplishment is bringing these capabilities together within one cohesive product.
What we learned
The future of AI does not need to be exclusively cloud-based or device-based.
Hybrid intelligence offers the opportunity to combine both approaches while respecting user preferences and privacy boundaries.
Building VaultLens taught us that:
- Personal RAG needs authorization-aware retrieval.
- Privacy must extend across the complete data lifecycle.
- AI reasoning and exact computation should be complementary.
- On-device model availability must be handled dynamically.
- Cross-platform interoperability requires shared contracts.
- AI transparency is essential for user trust.
What's next for VaultLens
Our vision is to make VaultLens a universal personal intelligence layer.
Future development includes:
- Advanced personal knowledge graphs
- Richer semantic retrieval and reranking
- Autonomous knowledge organization
- Passkey-assisted Vault access
- Expanded encrypted attachment synchronization
- Advanced local AI agents
- Expanded multimodal intelligence
- Additional desktop integrations
- Continued security, device compatibility, and production-release verification
Project Availability
VaultLens contains Web, Android, iOS/iPadOS, and Chrome Extension implementations in a unified public repository under the MIT License.
Advanced capabilities depend on supported hardware, platform compatibility, provider configuration, and applicable runtime verification and release gates.
Explore VaultLens:
Your Knowledge. Your AI. Your Control.
VaultLens is not just another AI assistant. It is a foundation for personal intelligence that belongs to you.
Built With
- ai
- apple
- cloud
- compose
- duckdb
- firebase
- foundationdb
- gemini
- hybrid
- indexeddb
- jetpack
- kotlin
- live
- logic
- models
- nano
- on-device
- rag
- react
- sqlite
- swift
- swiftui
- typescript
- webassembly