How shristibajpai/arthsetu works
Arthsetu is a personal-finance planning dashboard: users review their financial health, track expenses, manage emergency-fund and goal plans, and explore financial-learning content. The React app owns screen state and persists profile and planning data through browser storage; specialized views present calculations and editing workflows. Account linking and AI guidance are separate capabilities. Source excerpts establish the main UI, storage, and service relationships; unsampled backend and learning-data wiring is left unasserted.
Main entry points: App.tsx App state and routing · calculations.ts Financial metrics · LearnView.tsx Learning library · storage.ts Browser data access
Components 23
App shell
- App state and routing
src/App.tsx - Navigation
src/components/Sidebar.tsx - Header controls
src/components/Header.tsx
Financial planning
- Financial dashboard
src/components/DashboardView.tsx - Expense ledger
src/components/ExpensesView.tsx - Emergency fund
src/components/EmergencyFundView.tsx - Goals and scenarios
src/components/GoalsWhatIfView.tsx - Financial profile
src/components/ProfileView.tsx - Planning forms
src/components/Modals.tsx - Confirmation dialog
src/components/ConfirmationModal.tsx
Guidance and learning
- AI assistant
src/components/AIAssistantModal.tsx - Learning library
src/components/LearnView.tsx - Academy content
src/data/academyData.ts
Connected services
- Account connection
src/components/ConnectAccountModal.tsx - Account aggregator
src/services/financialDataService.ts - AI chat service
src/services/aiService.ts - Chat API server
server.ts
Data and utilities
- Browser data access
src/utils/storage.ts - Starter records
src/data/mockData.ts - Financial metrics
src/utils/calculations.ts - Currency and formatting
src/utils/formatters.ts
Other components
- User
- Browser local storage
Connections 26
- User → App state and routing: uses
src/App.tsx - App state and routing → Navigation: renders
src/App.tsx - App state and routing → Header controls: renders
src/App.tsx - App state and routing → Financial dashboard: routes to
src/App.tsx - App state and routing → Expense ledger: routes to
src/App.tsx - App state and routing → Emergency fund: routes to
src/App.tsx - App state and routing → Goals and scenarios: routes to
src/App.tsx - App state and routing → Financial profile: routes to
src/App.tsx - App state and routing → Learning library: routes to
src/App.tsx - App state and routing → AI assistant: renders
src/App.tsx - App state and routing → Planning forms: renders
src/App.tsx - App state and routing → Browser data access: loads and saves
src/App.tsx - Browser data access → Browser local storage: reads and writes
src/utils/storage.ts - Browser data access → Starter records: loads defaults
src/utils/storage.ts - Financial dashboard → Financial metrics: uses metrics
src/components/DashboardView.tsx - Expense ledger → Financial metrics: uses metrics
src/components/ExpensesView.tsx - Emergency fund → Financial metrics: uses metrics
src/components/EmergencyFundView.tsx - Financial metrics → Currency and formatting: clamps values
src/utils/calculations.ts - Header controls → Navigation: uses navigation
src/components/Header.tsx - Account connection → Account aggregator: requests account data
src/components/ConnectAccountModal.tsx - Account aggregator → Browser local storage: reads and writes
src/services/financialDataService.ts - AI assistant → AI chat service: sends chat
src/components/AIAssistantModal.tsx - AI chat service → Chat API server: posts chat request
- Learning library → Starter records: uses records
src/components/LearnView.tsx - Learning library → Academy content: may use content
- Planning forms → Confirmation dialog: uses dialog