How semjanivnikola/smart-money works
Smart Money is a Next.js personal-finance interface for authentication, account and wallet overviews, payment creation, transaction records, and analytics. The main user flow enters the authenticated area, chooses a payment type, fills in payment or shopping-invoice details, and reviews payment information; separate screens expose accounts, wallets, transactions, and analytics. The tree supports these product areas, but most page and API implementations were not sampled, so uncertain page-to-API wiring is omitted. The sampled authentication code does show a credentials request to an external backend.
Main entry points: create/page.tsx Payment type chooser · sign-in/page.tsx Sign-in / sign-up · layout.tsx Finance workspace · regular/page.tsx Regular payment
Components 25
Access
- Sign-in / sign-up
app/(auth)/sign-in/page.tsx - Auth forms
src/forms/SignInForm.tsx
Finance workspace
- Finance workspace
app/(main)/layout.tsx - Dashboard
app/(main)/page.tsx - Accounts
app/(main)/accounts/page.tsx - Wallets
app/(main)/wallets/page.tsx - Analytics
app/(main)/analytics/page.tsx - Transactions
app/(main)/transactions/page.tsx - Transaction receipt
app/(main)/transactions/[id]/page.tsx
Payment flows
- Payment records
app/(main)/payments/page.tsx - Payment type chooser
app/(main)/payments/create/page.tsx - Payment wizard
app/(main)/payments/create/PaymentWizard.tsx - Regular payment
app/(main)/payments/create/(payment-types)/regular/page.tsx - Review and pay
app/(main)/payments/create/(payment-types)/regular/review-&-pay/page.tsx - Internal transfer
app/(main)/payments/create/(payment-types)/internal-transfer/page.tsx - Shopping payment
app/(main)/payments/create/(payment-types)/shopping/page.tsx - Invoice details
src/forms/ShoppingPaymentForm.tsx - Shopping draft
api/fetchShoppingPaymentDraft.ts
Service integration
- Auth endpoint
app/api/auth/[...nextauth]/route.ts - Credentials auth
auth.ts - Payment APIs
api/createPayment.ts - Account APIs
api/payments/fetchPayments.ts - Transaction APIs
api/transactions/fetchTransactios.ts
Other components
- User
- Finance backend
Connections 13
- User → Sign-in / sign-up: opens access
- Sign-in / sign-up → Auth forms: presents form
- User → Finance workspace: enters workspace
- Finance workspace → Dashboard: shows overview
- User → Payment type chooser: starts payment
- Payment type chooser → Payment wizard: opens wizard
- Payment type chooser → Regular payment: chooses regular
- Payment type chooser → Internal transfer: chooses transfer
- Payment type chooser → Shopping payment: chooses shopping
- Regular payment → Review and pay: reviews details
- Shopping payment → Invoice details: enters invoice
- Auth endpoint → Credentials auth: dispatches handlers
- Credentials auth → Finance backend: posts credentials