How veerbhadramahant/finpilot works
FinPilot is a financial health and wealth-planning application: users connect or upload financial data, inspect forecasts and health insights, then explore simulated actions through the copilot and planning tools. The README documents major capabilities including budgets, tax optimization, goals, a printable executive statement, and verification-contract answers. The tree also contains Focal, a separate expense-tracking application with a React client and a Cloudflare Worker backend. Several subsystem paths are included from the tree and README, but their internal links are left out where source excerpts do not establish them.
Main entry points: routes.py Core API routes · auth.handler.ts Authentication handlers · receipts.handler.ts Receipt processing · engine.py What-if simulator
Components 26
FinPilot experience
- FinPilot app
frontend/app - API application
backend/app/main.py - Core API routes
backend/app/api/routes.py - Data contracts
backend/app/schemas.py - Executive statement
frontend/components/statement/ExecutiveStatement.tsx
Financial data
- Identity and settings
backend/app/core/auth.py - Financial data store
backend/app/core/store.py - Data ingestion
backend/app/ingest/upload.py - Recurring obligations
backend/app/analytics/recurring.py
Analysis and planning
- Health dashboard
backend/app/api/routes.py - Cash-flow forecasting
backend/app/forecast/cashflow.py - Health score
backend/app/analytics/health_score.py - What-if simulator
backend/app/simulate/engine.py - Action recommendations
backend/app/recommend/engine.py - Financial copilot
backend/app/copilot/engine.py - Tax optimization
backend/app/analytics/tax.py - Financial planning
backend/app/plan/planner.py
Focal expense tracker
- Expense tracker UI
focal/src/App.tsx
Focal services
- Worker router
focal/worker/router.ts - Authentication handlers
focal/worker/handlers/auth.handler.ts - Receipt processing
focal/worker/handlers/receipts.handler.ts - Expense database
focal/worker/services/db.service.ts - Token and password service
focal/worker/services/auth.service.ts
Other components
- User
- Expense user
- AI providers
Connections 24
- User → FinPilot app: uses
- FinPilot app → API application: requests data
- API application → Core API routes: mounts routes
backend/app/main.py - Core API routes → Identity and settings: resolves identity
backend/app/api/routes.py - Core API routes → Data contracts: validates responses
backend/app/api/routes.py - Core API routes → Financial data store: reads and writes
backend/app/api/routes.py - Core API routes → Health dashboard: builds snapshot
backend/app/api/routes.py - Health dashboard → Recurring obligations: uses obligations
backend/app/api/routes.py - Core API routes → Financial copilot: answers chat
backend/app/api/routes.py - Core API routes → Cash-flow forecasting: serves forecasts
backend/app/api/routes.py - Core API routes → What-if simulator: runs scenarios
backend/app/api/routes.py - Action recommendations → What-if simulator: simulates actions
backend/app/recommend/engine.py - What-if simulator → Cash-flow forecasting: computes projections
backend/app/simulate/engine.py - User → Executive statement: prints report
- User → Expense tracker UI: tracks expenses
- Worker router → Authentication handlers: routes auth
focal/worker/router.ts - Worker router → Receipt processing: routes receipts
focal/worker/router.ts - Authentication handlers → Expense database: stores sessions
focal/worker/handlers/auth.handler.ts - Authentication handlers → Token and password service: handles credentials
focal/worker/handlers/auth.handler.ts - Receipt processing → Expense database: stores expenses
focal/worker/handlers/receipts.handler.ts - Receipt processing → AI providers: processes receipts
focal/worker/handlers/receipts.handler.ts - Core API routes → Health score: provides health insights
- Core API routes → Tax optimization: provides tax tools
- Core API routes → Financial planning: provides planning