How dilshodimomov/finance-tracker works
Finance Tracker ingests DIB purchase notifications, stores and categorizes transactions, then lets authorized users inspect and correct spending in a dashboard. Its documented workflow includes Gmail and Apps Script, an ingest API, Postgres, merchant rules, and dashboard reporting and editing. Authentication combines Supabase sessions with app-level authorization. The repository also contains an optional Remotion showcase video. Web relationships below rely chiefly on README descriptions; unsampled internals are represented at subsystem level rather than inferred call-by-call.
Main entry points: DIBFinanceAd.tsx Finance showcase composition · Background.tsx Animated background · GlassCard.tsx Glass card · page.tsx Finance dashboard
Components 29
Ingest and categorization
- DIB ingest API
apps/web/src/app/api/ingest/dib/route.ts - DIB parser
apps/web/src/lib/dib-parser.ts - Merchant rules
apps/web/src/lib/repo.ts
Dashboard and APIs
- Finance dashboard
apps/web/src/app/dashboard/page.tsx - Transaction editor
apps/web/src/components/transactions-table-client.tsx - Spending statistics APIs
apps/web/src/app/api/stats - Transaction APIs
apps/web/src/app/api/transactions - Category APIs
apps/web/src/app/api/categories - Rule APIs
apps/web/src/app/api/rules - Admin recategorization
apps/web/src/app/api/admin/recategorize/route.ts
Identity and persistence
- Postgres
- Login interface
apps/web/src/components/login-client.tsx - Auth APIs
apps/web/src/app/api/auth - App authorization
apps/web/src/lib/auth.ts - Supabase Auth
Promotional video
- Finance showcase composition
apps/remotion/src/compositions/DIBFinanceAd.tsx - Hook scene
apps/remotion/src/compositions/scenes/Scene1_Hook.tsx - Dashboard scene
apps/remotion/src/compositions/scenes/Scene2_Dashboard.tsx - Spending graph scene
apps/remotion/src/compositions/scenes/Scene3_Graph.tsx - Categories scene
apps/remotion/src/compositions/scenes/Scene4_Categories.tsx - Transactions scene
apps/remotion/src/compositions/scenes/Scene5_Transactions.tsx - Automation scene
apps/remotion/src/compositions/scenes/Scene6_Automation.tsx - Call-to-action scene
apps/remotion/src/compositions/scenes/Scene7_CTA.tsx - Animated background
apps/remotion/src/components/Background.tsx - Glass card
apps/remotion/src/components/GlassCard.tsx - Animated counter
apps/remotion/src/components/AnimatedCounter.tsx - Video theme
apps/remotion/src/theme.ts
Other components
- DIB Gmail
- Gmail Apps Script
Connections 40
- DIB Gmail → Gmail Apps Script: supplies emails
- Gmail Apps Script → DIB ingest API: posts batches
- DIB ingest API → DIB parser: parses payload
- DIB ingest API → Postgres: dedupes and stores
- DIB ingest API → Merchant rules: categorizes merchants
- Finance dashboard → Spending statistics APIs: requests trends
- Finance dashboard → Transaction APIs: requests transactions
- Transaction editor → Transaction APIs: edits transactions
- Finance dashboard → Category APIs: manages categories
- Finance dashboard → Rule APIs: manages rules
- Admin recategorization → Merchant rules: recategorizes
- Transaction APIs → Postgres: reads and writes
- Spending statistics APIs → Postgres: reads spending data
- Category APIs → Postgres: reads and writes
- Rule APIs → Postgres: reads and writes
- Login interface → Auth APIs: submits credentials
- Auth APIs → Supabase Auth: authenticates
- Auth APIs → App authorization: checks access
- App authorization → Postgres: checks approved users
- Finance showcase composition → Hook scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Finance showcase composition → Dashboard scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Finance showcase composition → Spending graph scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Finance showcase composition → Categories scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Finance showcase composition → Transactions scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Finance showcase composition → Automation scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Finance showcase composition → Call-to-action scene: sequences
apps/remotion/src/compositions/DIBFinanceAd.tsx - Dashboard scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene2_Dashboard.tsx - Dashboard scene → Animated counter: renders
apps/remotion/src/compositions/scenes/Scene2_Dashboard.tsx - Spending graph scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene3_Graph.tsx - Spending graph scene → Glass card: renders
apps/remotion/src/compositions/scenes/Scene3_Graph.tsx - Categories scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene4_Categories.tsx - Categories scene → Glass card: renders
apps/remotion/src/compositions/scenes/Scene4_Categories.tsx - Transactions scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene5_Transactions.tsx - Transactions scene → Glass card: renders
apps/remotion/src/compositions/scenes/Scene5_Transactions.tsx - Automation scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene6_Automation.tsx - Automation scene → Glass card: renders
apps/remotion/src/compositions/scenes/Scene6_Automation.tsx - Hook scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene1_Hook.tsx - Call-to-action scene → Animated background: renders
apps/remotion/src/compositions/scenes/Scene7_CTA.tsx - Animated background → Video theme: uses palette
apps/remotion/src/components/Background.tsx - Glass card → Video theme: uses palette
apps/remotion/src/components/GlassCard.tsx