How natiman1/cashflow works
CashFlow is a personal-finance tracker, with the web application as its documented primary product and a mobile app also present in the tree. The user journey is account access, recording and categorizing transactions, setting category budgets, then reviewing dashboard and statistical summaries; settings and exports support ongoing use. The graph includes the shared auth and database layers and documented alert capability. Several action and screen implementations were not sampled, so their internal calls are not asserted.
Main entry points: actions Server actions · transactions.ts Transactions table · budgets.ts Budgets table · categories.ts Categories table
Components 22
Web experience
- Product landing
apps/web/src/app/page.tsx - Web sign-in
apps/web/src/app/(auth) - Mobile sign-in
apps/mobile/app/(auth)
Finance features
- Transactions
apps/web/src/app/dashboard/transactions/page.tsx - Categories
apps/web/src/app/dashboard/categories/page.tsx - Budgets
apps/web/src/actions/budgets.ts - Dashboard
apps/web/src/app/dashboard/page.tsx - Statistics
apps/web/src/app/dashboard/statistics/page.tsx - Settings
apps/web/src/app/dashboard/settings/page.tsx - CSV export
apps/web/src/components/transactions/exportToCsv.tsx - Budget alerts
apps/web/src/lib/notifications/budget-alert.ts
Application services
- Auth API route
apps/web/src/app/api/auth/[...all]/route.ts - Auth configuration
packages/auth/src/index.ts - Server actions
apps/web/src/actions - Email service
apps/web/src/lib/email.ts
Persistence
- PostgreSQL
- Auth tables
packages/db/src/schema/auth.ts - Transactions table
packages/db/src/schema/transactions.ts - Categories table
packages/db/src/schema/categories.ts - Budgets table
packages/db/src/schema/budgets.ts - Schema relations
packages/db/src/schema/relations.ts
Other components
- User
Connections 30
- User → Product landing: visits
apps/web/src/app/page.tsx - User → Web sign-in: signs in
- User → Mobile sign-in: uses
- Product landing → Web sign-in: offers access
- Web sign-in → Auth API route: authenticates
- Auth API route → Auth configuration: routes to
- Auth configuration → Auth tables: uses schema
packages/auth/src/index.ts - Auth configuration → PostgreSQL: persists auth
- Transactions → Server actions: loads transactions
apps/web/src/app/dashboard/transactions/page.tsx - Transactions → Categories: loads categories
apps/web/src/app/dashboard/transactions/page.tsx - Dashboard → Server actions: loads summaries
apps/web/src/app/dashboard/page.tsx - Statistics → Server actions: loads statistics
apps/web/src/app/dashboard/statistics/page.tsx - Server actions → Transactions table: reads and writes
- Server actions → Categories table: reads and writes
- Server actions → Budgets table: reads and writes
- Server actions → PostgreSQL: queries
- Transactions table → Auth tables: references user
packages/db/src/schema/transactions.ts - Transactions table → Categories table: references category
packages/db/src/schema/transactions.ts - Budgets table → Auth tables: references user
packages/db/src/schema/budgets.ts - Budgets table → Categories table: references category
packages/db/src/schema/budgets.ts - Schema relations → Transactions table: relates
packages/db/src/schema/relations.ts - Schema relations → Budgets table: relates
packages/db/src/schema/relations.ts - Schema relations → Categories table: relates
packages/db/src/schema/relations.ts - User → Transactions: records activity
- User → Budgets: sets limits
- User → Settings: manages preferences
- User → Statistics: reviews trends
- User → CSV export: exports data
- Budgets → Budget alerts: triggers alerts
- Budget alerts → Email service: may notify