How niveditamh21/explain-my-money works
Explain My Money is a demo financial-coaching app: users review a spending snapshot and dated transactions, then ask plain-language questions about their spending. The dashboard and transaction list use analytics over mock Indian financial data; chat requests go through an API route, which uses rule-based answers by default and can optionally use OpenAI. The roadmap mentions real-account ingestion, budgets, and reports, but these are not implemented in the sampled runtime. Edges reflect sampled calls and documented behavior; unsampled roadmap links are omitted.
Main entry points: analytics.ts Analytics · page.tsx Home Dashboard · route.ts Chat API · SpendingSnapshot.tsx Spending Snapshot
Components 10
Dashboard
- Home Dashboard
src/app/page.tsx - Spending Snapshot
src/components/SpendingSnapshot.tsx - Transaction List
src/components/TransactionList.tsx
Coaching
- Chat Interface
src/components/ChatInterface.tsx - Chat API
src/app/api/chat/route.ts - Rule-Based Replies
src/lib/ruleBasedChat.ts
Spending Analysis
- Analytics
src/lib/analytics.ts
Financial Data
- Mock Financial Data
src/lib/mockData.ts
Other components
- User
- OpenAI API
Connections 14
- User → Home Dashboard: opens
README.md - Home Dashboard → Spending Snapshot: renders
src/app/page.tsx - Home Dashboard → Transaction List: renders
src/app/page.tsx - Home Dashboard → Chat Interface: renders
src/app/page.tsx - Chat Interface → Chat API: posts questions
src/components/ChatInterface.tsx - Chat API → Analytics: builds context
src/app/api/chat/route.ts - Chat API → Rule-Based Replies: requests fallback
src/app/api/chat/route.ts - Chat API → OpenAI API: requests completion
src/app/api/chat/route.ts - Spending Snapshot → Analytics: reads metrics
src/components/SpendingSnapshot.tsx - Spending Snapshot → Mock Financial Data: reads subscriptions
src/components/SpendingSnapshot.tsx - Transaction List → Analytics: loads monthly entries
src/components/TransactionList.tsx - Analytics → Mock Financial Data: aggregates transactions
src/lib/analytics.ts - Rule-Based Replies → Analytics: queries spending
src/lib/ruleBasedChat.ts - Rule-Based Replies → Mock Financial Data: reads subscription data
src/lib/ruleBasedChat.ts