How vinayv15/finance-hub works
Finance Hub is a private personal-finance dashboard. The owner connects financial accounts or imports/enters data; the app syncs and classifies transactions, stores account and loan data, and serves analytics, planning, and mortgage views to the web UI. The README documents both a local Flask/SQLite version and a cloud Supabase/Postgres version. Unsampled modules and routes are represented only where the README or SOURCE INDEX supports their role; the graph does not assume unshown call chains.
Main entry points: index.ts Edge API · classify.py Transaction classification · app.py Flask API · App.tsx App and routes
Components 25
Web dashboard
- App and routes
web/src/App.tsx - API client
web/src/api.ts - Dashboard
web/src/pages/Dashboard.tsx - Goals and projection
web/src/pages/Projection.tsx - Mortgage view
web/src/pages/Mortgage.tsx - Finance pages
web/src/pages - Charts and visualizations
web/src/components/Charts.tsx - Fetch and range state
web/src/hooks.tsx
Local service
- Flask API
app.py
Cloud service
- Edge API
supabase/functions/api/index.ts
Finance domain
- Plaid sync
plaid_sync.py - Cloud Plaid
supabase/functions/api/lib/plaid.ts - Statement import
statements.py - Manual balances
manual.py - Transaction classification
classify.py - Analytics
analytics.py - Insights
insights.py - Planning
planning.py - Mortgage model
mortgage.py - Home value
home.py
Persistence
- SQLite database
db.py - Postgres access
supabase/functions/api/lib/db.ts
Other components
- Owner
- Plaid
- Supabase sign-in
Connections 44
- Owner → App and routes: uses
README.md - App and routes → Dashboard: routes to
web/src/App.tsx - App and routes → Goals and projection: routes to
web/src/App.tsx - App and routes → Mortgage view: routes to
web/src/App.tsx - App and routes → Finance pages: routes to
web/src/App.tsx - Dashboard → API client: fetches from
web/src/pages/Dashboard.tsx - Goals and projection → API client: fetches from
web/src/pages/Projection.tsx - Mortgage view → API client: fetches from
web/src/pages/Mortgage.tsx - Dashboard → Charts and visualizations: renders
web/src/pages/Dashboard.tsx - Dashboard → Fetch and range state: uses
web/src/pages/Dashboard.tsx - API client → Edge API: requests
README.md - API client → Flask API: requests
README.md - Supabase sign-in → App and routes: signs in
README.md - Flask API → SQLite database: reads and writes
app.py - Edge API → Postgres access: uses
supabase/functions/api/index.ts - Flask API → Plaid sync: dispatches sync
app.py - Plaid sync → Plaid: syncs accounts
README.md - Edge API → Cloud Plaid: dispatches
supabase/functions/api/index.ts - Cloud Plaid → Plaid: syncs accounts
README.md - Flask API → Manual balances: dispatches edits
app.py - Flask API → Transaction classification: runs classification
app.py - Plaid sync → Transaction classification: classifies transactions
plaid_sync.py - Statement import → Transaction classification: classifies imports
statements.py - Transaction classification → SQLite database: stores classifications
classify.py - Flask API → Analytics: queries analytics
app.py - Insights → Analytics: uses analytics
insights.py - Insights → Planning: uses planning
insights.py - Insights → Mortgage model: uses mortgage model
insights.py - Planning → Analytics: uses analytics
planning.py - Planning → Mortgage model: uses mortgage model
planning.py - Mortgage model → Home value: uses home data
mortgage.py - Mortgage model → SQLite database: reads and writes
mortgage.py - Analytics → SQLite database: queries
analytics.py - Home value → SQLite database: reads and writes
home.py - Edge API → Transaction classification: dispatches
supabase/functions/api/index.ts - Edge API → Insights: dispatches
supabase/functions/api/index.ts - Edge API → Planning: dispatches
supabase/functions/api/index.ts - Edge API → Mortgage model: dispatches
supabase/functions/api/index.ts - Cloud Plaid → Transaction classification: uses
supabase/functions/api/lib/plaid.ts - Transaction classification → Postgres access: reads and writes
- Analytics → Mortgage model: uses model
analytics.py - Manual balances → SQLite database: stores balances
- Edge API → Manual balances: dispatches
supabase/functions/api/index.ts - Insights → Home value: uses home data
insights.py