How antoniusjairus4/palindrome works
Purpose and deployment shape
This is a personal-finance/wealth-management system: a React client supports dashboards, transactions, assets, household sharing, subscriptions, tax, trips, portfolio views, and an advisor; a Node/Express API owns authenticated financial workflows and persistence. Firebase Hosting deploys the client, while Render configuration suggests server hosting. Paths: client/src/main.jsx, server/server.js, firebase.json, render.yaml.
Client application shell
Vite boots a React SPA. App.jsx likely composes navigation and page/module routing, with dashboard and landing as primary top-level experiences. Shared contexts carry cross-cutting UI state including currency, theme, UX mode, confirmation/error handling, and WebSocket state. Paths: client/src/main.jsx, client/src/App.jsx, client/src/pages/Dashboard.jsx, client/src/context/WebSocketContext.jsx.
Finance dashboard and domain modules
The dashboard is assembled from domain modules for transaction entry/history, assets, analytics, subscriptions, wealth targets, household, splits, and real-time net worth. Reusable dashboard layout and visual widgets separate page composition from financial views. Paths: client/src/modules/CoreDashboard.jsx, client/src/modules/Transactions.jsx, client/src/modules/Assets.jsx, client/src/components/DashboardLayout.jsx.
API boundary, authentication, and validation
Express routes divide the API by business domain; controllers implement request workflows. Authentication and security middleware guard server operations, while schemas validate action and transaction payloads before mutation. Paths: server/server.js, server/routes/transactionRoutes.js, server/controllers/transactionController.js, server/middleware/authMiddleware.js, server/schemas/transactionSchemas.js.
Persistence and financial ledger
The server models transactions, assets, subscriptions, tax records, household state, split transactions, and dashboard aggregates. The transaction/ledger paths are the central source-of-truth boundary; reconciliation and normalization utilities support consistent balances and canonicalized input. Paths: server/models/Transaction.js, server/models/DashboardAggregate.js, server/controllers/ledgerController.js, server/utils/balanceReconciliation.js, server/utils/normalizer.js.
Asynchronous intelligence and advisor workflows
Action and inference queues decouple background work from request handling. Advisor routes/controllers use advisor engine/chat utilities and persist suggestions; the client exposes advisor chat/cards. A separate Python application contains ML inference, implying an internal or deployable inference-service boundary. Paths: server/queues/actionQueue.js, server/queues/inferenceQueue.js, server/controllers/advisorController.js, server/utils/advisorEngine.js, app/main.py, app/ml/inference.py.
External data and client-side processing
Market and FX functionality are represented at both API and client utility layers, likely allowing portfolio valuation in the UI while server controllers/services obtain authoritative data. Receipt scanning performs browser-side OCR with bundled Tesseract WASM/language assets; its result feeds expense/transaction creation. Paths: server/controllers/marketController.js, server/utils/fxService.js, client/src/utils/marketEngine.js, client/src/components/ReceiptScanner.jsx, client/public/tesseract/tesseract-core.wasm.
Real-time and operational integrations
Client hooks for dashboard sockets, transactions, and net worth indicate live update flow from server-side financial mutations to active dashboard views. Email, encryption, asset streaming, and Firebase deployment are material operational integrations. Paths: client/src/hooks/useDashboardSocket.js, client/src/hooks/useRealTimeNetWorth.js, server/utils/emailService.js, server/utils/encryption.js, .github/workflows/deploy.yml.
Main entry points: CoreDashboard.jsx Dashboard composition · transactionController.js Transaction workflow · ledgerController.js Ledger workflow · server.js Express API
Components 22
React client
- React SPA shell · Bootstraps navigation, pages, and shared UI state.
client/src/main.jsx - Dashboard composition · Composes financial views and reusable layout.
client/src/modules/CoreDashboard.jsx - Transactions UI
client/src/modules/Transactions.jsx - Assets UI
client/src/modules/Assets.jsx - Live dashboard updates
client/src/hooks/useDashboardSocket.js - Receipt scanner · Extracts expense data before transaction creation.
client/src/components/ReceiptScanner.jsx - Client market valuation
client/src/utils/marketEngine.js
Node API
- Express API · Authenticated boundary for financial workflows.
server/server.js - Auth & security
server/middleware/authMiddleware.js - Transaction workflow · Validates and applies transaction mutations.
server/controllers/transactionController.js - Transaction validation
server/schemas/transactionSchemas.js - Advisor workflow · Creates and persists advisor suggestions.
server/controllers/advisorController.js - Market & FX service · Provides authoritative market and exchange data.
server/controllers/marketController.js
Ledger & background work
- Ledger workflow · Maintains balances and ledger-facing operations.
server/controllers/ledgerController.js - Financial records · Transactions are the central financial source of truth.
server/models/Transaction.js - Dashboard aggregates
server/models/DashboardAggregate.js - Balance reconciliation
server/utils/balanceReconciliation.js - Action queue
server/queues/actionQueue.js - Inference queue
server/queues/inferenceQueue.js
ML inference
- Python inference service · Provides asynchronous model inference.
app/main.py
Deployment & integrations
- Client deployment
firebase.json - Deployment pipeline
.github/workflows/deploy.yml
Connections 21
- React SPA shell → Dashboard composition: renders
- Dashboard composition → Transactions UI: composes
- Dashboard composition → Assets UI: composes
- Dashboard composition → Live dashboard updates: subscribes through
- Receipt scanner → Transactions UI: supplies extracted expenses
- Client market valuation → Market & FX service: gets market data
- React SPA shell → Express API: API requests
- Live dashboard updates → Express API: socket connection
- Express API → Auth & security: guards with
- Auth & security → Transaction workflow: authorizes
- Transaction workflow → Transaction validation: validates with
- Transaction workflow → Ledger workflow: posts mutations
- Ledger workflow → Financial records: reads and writes
- Ledger workflow → Dashboard aggregates: updates
- Ledger workflow → Balance reconciliation: reconciles via
- Transaction workflow → Action queue: enqueues follow-up work
- Advisor workflow → Inference queue: queues inference
- Inference queue → Python inference service: dispatches
- Express API → Advisor workflow: serves advisor requests
- Deployment pipeline → Client deployment: deploys client
- Client deployment → React SPA shell: hosts