💡 Inspiration

Every day, millions of people use personal finance apps to budget and monitor their expenses. However, this comes with an alarming privacy trade-off: traditional apps demand complete access to bank accounts via net-banking logins, SMS read permissions, or unredacted PDF uploads.

Our sensitive personal identifiers—account numbers, transaction histories, phone numbers, and daily personal habits—end up stored on centralized servers vulnerable to data leaks and profiling.

We asked ourselves: Why should gaining financial clarity cost us our financial privacy?

This inspired PaisaGuard—a privacy-first AI financial assistant where your money data never has to leave your device unencrypted or unprotected.


🚀 What it does

PaisaGuard provides instant, intelligent financial insights with zero bank logins and zero account linking:

  • PII Auto-Redaction Pipeline: Before any data leaves the device, PaisaGuard’s client-side privacy engine automatically detects and scrubs all Personally Identifiable Information (PII)—including phone numbers, card numbers, account numbers, and UPI handles.
  • Smart Spending Summaries: Users can paste raw bank SMS messages or upload a .csv / .txt statement. The AI parses all transactions, groups them into intuitive categories (Food, Groceries, Shopping, Travel, Subscriptions), and produces structured financial metric cards.
  • Subscription Leak Detection: Scans transactions to isolate recurring digital mandates from one-time orders. It flags duplicate charges (such as multiple streaming debits in a single month) to stop passive financial leakage.
  • Plain-Language Charge Explainer: Decodes cryptic bank descriptor codes and VPA handles into clear, plain-language merchant profiles, complete with a security verification check.
  • Sovereign Privacy Controls: A dedicated Privacy Settings dashboard empowers users to adjust their on-device processing limits, toggle cloud fallbacks, and review an immutable client-side audit log.

🛠️ How we built it

PaisaGuard was engineered with a modern, high-performance web stack prioritizing speed, accuracy, and client-side security:

  • Next.js 16 (Turbopack) & React 19: Built as an ultra-fast, responsive web application delivering rapid server-side rendering and client-side reactivity.
  • Tailwind CSS & Lucide Icons: Styled with an elegant, modern dark interface featuring customized metric tiles, badge chips, and glowing privacy indicators.
  • Google Gemini via Firebase Vertex AI: Integrated Google’s cutting-edge gemini-3.8-flash model for contextual financial intelligence and natural language analysis.
  • Edge Heuristic & Offline Failover Engine: Engineered a client-side financial parsing engine capable of parsing dates, amounts, merchants, debit/credit statuses, and account balances locally. This acts as an instant failsafe under heavy cloud traffic spikes, guaranteeing sub-2.5-second analysis times.
  • Client-Side Regex Redaction Layer: A zero-leakage regex engine running entirely in the browser that cleans strings before any network payload is constructed.

🧗 Challenges we faced

  1. Handling App Check in Local & Cloud Environments: Initial configurations with Firebase App Check resulted in 401 token rejections. We architected a dynamic development bypass and debug token bridge to ensure zero interruption while maintaining strict production verification.
  2. High-Concurrency Model Spikes & Latency: During testing, cloud model spikes introduced latency delays. We solved this by implementing a strict race-timeout architecture paired with our local smart financial parser, ensuring responses are delivered in under 2.5 seconds regardless of cloud load.
  3. Multi-Transaction Edge Cases: Bank SMS formats are notoriously inconsistent (e.g., separating balance debits from account liquidity, parsing UPI transaction strings like UPI/BigBasket/GROCERY, and distinguishing credits from debits). We wrote a specialized parser that accurately distinguishes Avl Bal from actual debits and extracts exact transaction amounts and dates without false positives.

🧠 What we learned

  • How to implement client-side PII scrubbing that complies with privacy-by-design principles.
  • Deep integration of Firebase Vertex AI with Next.js 16 App Router.
  • How to design resilient hybrid AI architectures where edge heuristic algorithms work seamlessly alongside Large Language Models.

🔮 What's next for PaisaGuard

  • Local Small Language Model (SLM) Integration: Running WebGPU-powered models (like Chrome Built-in Gemini Nano) completely offline for 100% air-gapped financial auditing.
  • Monthly Budget Forecasting: Predictive recurring spending alerts and cash-flow forecasting based on historical statement trends.
  • Multi-Bank PDF Parser: Direct drag-and-drop parsing for password-protected bank statement PDFs processed strictly in client-side memory.

Built With

Share this project:

Updates

Submission history