AstraFlow
Effortless finances. Intelligent insights.
The problem AstraFlow solves
AstraFlow 2.0
AstraFlow is an intelligent, AI-powered financial copilot designed to act as your "digital financial twin." It goes beyond traditional budgeting apps by automatically ingesting, categorizing, and analyzing your financial data across multiple formats to give you a complete, real-time picture of your financial state.
Whether you are tracking personal expenses, managing multiple income streams, or planning for long-term goals, AstraFlow reduces manual data entry and provides actionable insights to help you make safer, smarter financial decisions.
What can people use it for?
Automated Financial Tracking: Stop manually entering receipts and bank statements. AstraFlow automatically processes your data so you always know where your money is going.
Goal Planning & Tracking: Set specific financial goals (like saving for a house or paying off debt) and let the system track your progress and project completion dates based on your actual cash flow.
Income Reliability Analysis: Specifically designed for freelancers, gig workers, and those with variable income. AstraFlow analyzes your income streams to determine reliability and forecast future earnings.
Smart Obligation Detection: Never miss a recurring bill or subscription. The system automatically detects regular financial obligations and warns you about upcoming commitments.
How does it make existing tasks easier & safer?
1. Frictionless Data Ingestion
Manual budgeting is tedious and prone to human error. AstraFlow makes data entry completely frictionless by supporting multiple automated ingestion methods:
OCR Receipt Scanning: Snap a picture of a receipt, and the system extracts the vendor, amount, and date using Tesseract OCR.
** SMS Parsing: **Forward bank SMS alerts directly into the system to log transactions in real-time.
CSV Uploads: Bulk import historical data directly from your bank statements.
2. AI-Powered Financial Copilot
Integrated with the Gemini API, AstraFlow features an intelligent conversational assistant. Instead of digging through spreadsheets, you can ask your financial twin questions like:
"How much did I spend on dining out last month?"
"Am I on track to hit my vacation savings goal?"
"Do I have enough cash flow this week to cover my upcoming bills?"
3. Advanced Ledger Security & Accuracy
AstraFlow utilizes an immutable Event Ledger architecture combined with Duplicate Detection.
**Safer Tracking: **Transactions are securely logged and cannot be silently overwritten, ensuring a perfect audit trail.
**No Double Counting: **If you upload a receipt and later import the corresponding bank statement, the system smartly identifies and merges duplicates so your balances are always accurate.
4. Real-Time Financial State & Threshold Rules
AstraFlow rebuilds your financial state dynamically from your ledger. You can set up custom Threshold Rules and boundaries (e.g., "Alert me if my checking account drops below $500" or "Warn me if my entertainment spending exceeds 20% of my income"). This proactive monitoring acts as a safety net, keeping you well within your financial boundaries.
Challenges we ran into
Challenges we ran into
Building a multi-modal financial copilot that seamlessly merges AI with rigid financial ledgers came with a unique set of technical and architectural hurdles. Here are a few specific challenges we faced and how we overcame them:
1. The Multi-Channel Deduplication Problem
The Hurdle: Because AstraFlow allows users to ingest data from multiple, overlapping sources (OCR receipt scans, SMS bank alerts, and CSV statement uploads), we immediately ran into the problem of double-counting. If a user scans a 15 receipt for lunch and later uploads a bank CSV containing that exact same 15 charge, a naive database update would count the expense twice, ruining the user's financial state.
How we got over it: We moved away from standard CRUD operations and implemented an immutable Event Ledger architecture combined with a custom Duplicate Detection service. Instead of directly updating an account balance, every piece of ingested data acts as an observation. We built matching heuristics that look at time-windows, exact amounts, and fuzzy-matching on vendor names. When the system detects high-confidence overlaps, it groups these observations into a single canonical transaction—ensuring a perfectly accurate financial state without forcing the user to manually reconcile their accounts.
2. Serverless PostgreSQL Connectivity (Deployment)
The Hurdle: Transitioning from our local development environment (which used a local SQLite database) to a production-grade serverless deployment on Vercel backed by PostgreSQL caused immediate 500 Internal Server Error crashes. Debugging the Vercel runtime logs revealed a ModuleNotFoundError: No module named 'psycopg2'. SQLAlchemy was failing to establish a database connection because the standard database adapter requires C-extension compilation, which isn't natively supported in lightweight serverless build steps.
How we got over it: We had to dive into how serverless runtimes handle Python dependencies. We resolved the crash by migrating our requirements to explicitly use psycopg2-binary. This provided a pre-compiled, serverless-friendly PostgreSQL driver that successfully spun up within Vercel's strict execution environment without requiring underlying OS-level C compilers.
3. Monorepo Git Tracking Conflicts
The Hurdle: To streamline our CI/CD pipelines, we restructured the project from isolated folders into a single monorepo containing both the Vite/React frontend/ and the FastAPI backend/. However, upon pushing to GitHub, the entire backend source code was missing. GitHub was only registering an un-clickable, empty folder reference.
How we got over it: We realized that during the migration, the backend/ folder had retained its own hidden .git directory from a previous standalone repository. Git was treating our backend as a nested "submodule" (gitlink mode 160000) rather than standard files. We fixed this by aggressively untracking the cached submodule via the Git CLI (git rm --cached backend), stripping out the nested .git directory entirely, and forcing the parent repository to adopt and track the backend files natively.
Technologies used
