How advaith-3683/smartspendai works
SmartSpend AI is a personal-finance web app for tracking budgets and expenses, importing transactions, and getting spending guidance. The main workflow runs from the dashboard through its API client to backend routes, which use services and persistent models to return financial summaries or record changes. Separate capabilities cover statement/SMS ingestion, recurring bills, savings planning, anomaly detection, subscriptions, and AI coaching. The README gives only the product name; several feature connections are therefore shown only where source excerpts or the index support them, with uncertain links omitted or dashed.
Main entry points: App.jsx Dashboard · api.js API Client · main.py API Routes · models.py Finance Models
Components 18
Dashboard UI
- Dashboard
smartspend frontend/src/App.jsx - API Client
smartspend frontend/src/api.js - Budget Views
smartspend frontend/src/components/BudgetCard.jsx - Bills Panel
smartspend frontend/src/components/BillsPanel.jsx
Expense Entry
- Transaction Entry
smartspend frontend/src/components/TransactionForm.jsx - Import Review
smartspend frontend/src/components/ImportPanel.jsx - Transaction Parsing
smartspend backend/ingestion.py
Finance Backend
- API Routes
smartspend backend/main.py - Finance Services
smartspend backend/services.py - Finance Models
smartspend backend/models.py - SQLite Access
smartspend backend/database.py - API Schemas
smartspend backend/schemas.py
Guidance and Insights
- Coach Chat
smartspend frontend/src/components/CoachPanel.jsx - Savings Planner
smartspend frontend/src/components/SavingsGoalPlanner.jsx - Weekly Digest
smartspend frontend/src/components/WeeklyDigest.jsx - LLM Coach
smartspend backend/llm_coach.py
Other components
- User
- Gemini API
Connections 25
- User → Dashboard: uses
- Dashboard → API Client: requests data
smartspend frontend/src/App.jsx - Dashboard → Budget Views: renders
smartspend frontend/src/App.jsx - Dashboard → Transaction Entry: renders
smartspend frontend/src/App.jsx - Dashboard → Import Review: renders
smartspend frontend/src/App.jsx - Dashboard → Bills Panel: renders
smartspend frontend/src/App.jsx - Dashboard → Coach Chat: renders
smartspend frontend/src/App.jsx - Dashboard → Savings Planner: renders
smartspend frontend/src/App.jsx - Dashboard → Weekly Digest: renders
smartspend frontend/src/App.jsx - Import Review → API Client: parses and commits
smartspend frontend/src/components/ImportPanel.jsx - Bills Panel → API Client: manages bills
smartspend frontend/src/components/BillsPanel.jsx - Coach Chat → API Client: chats and loads history
smartspend frontend/src/components/CoachPanel.jsx - Transaction Entry → API Client: submits expense
- Savings Planner → API Client: requests plan
smartspend frontend/src/components/SavingsGoalPlanner.jsx - Weekly Digest → API Client: loads digest
smartspend frontend/src/components/WeeklyDigest.jsx - API Client → API Routes: HTTP requests
- API Routes → Finance Services: delegates calculations
smartspend backend/main.py - API Routes → Transaction Parsing: parses imports
smartspend backend/main.py - API Routes → LLM Coach: requests coaching
smartspend backend/main.py - API Routes → API Schemas: validates responses
smartspend backend/main.py - Finance Services → Finance Models: queries finance data
smartspend backend/services.py - API Routes → Finance Models: queries records
smartspend backend/main.py - Finance Models → SQLite Access: uses ORM base
smartspend backend/models.py - Transaction Parsing → LLM Coach: uses model config
smartspend backend/ingestion.py - LLM Coach → Gemini API: generates responses
smartspend backend/llm_coach.py