How enthonydev/real-balance-room-rbr. works
RBR is a local mortgage-planning and simulation application. The main workflow is entering financing details, choosing an amortization strategy, reviewing projected results, and saving or revisiting financing records. The README documents Price/SAC schedules, extra-payment comparisons, dashboard indicators, and a paginated amortization table. The React app and API/storage calls are partly evidenced by excerpts; some client-to-API wiring is not shown, so that link is marked unverified. Bank/Open Finance and document-import capabilities are explicitly roadmap items, not implemented subsystems.
Main entry points: Home.tsx Planning workspace · App.tsx App routing · Auth.tsx Sign-in screen · AuthContext.tsx Auth state
Components 19
User experience
- App routing
client/src/App.tsx - Sign-in screen
client/src/pages/Auth.tsx - Planning workspace
client/src/pages/Home.tsx - Financing inputs
client/src/pages/Home.tsx - Payment strategy
client/src/pages/Home.tsx - Results dashboard
client/src/pages/Home.tsx - Amortization table
client/src/pages/Home.tsx - Financing history
client/src/pages/Home.tsx
Financial domain
- Simulation engine
shared/finance.ts
Persistence and API
- API client
client/src/lib/api.ts - Financing API
server/index.ts - SQLite operations
server/db.ts
Identity and shared UI
- Firebase Auth
- Auth state
client/src/contexts/AuthContext.tsx - Theme provider
client/src/contexts/ThemeContext.tsx - Error boundary
client/src/components/ErrorBoundary.tsx - Stable callback hook
client/src/hooks/usePersistFn.ts - Composition hook
client/src/hooks/useComposition.ts
Other components
- User
Connections 19
- User → App routing: opens app
- App routing → Planning workspace: routes to
client/src/App.tsx - App routing → Sign-in screen: routes to
client/src/App.tsx - App routing → Auth state: provides auth
client/src/App.tsx - App routing → Theme provider: provides theme
client/src/App.tsx - App routing → Error boundary: wraps app
client/src/App.tsx - Planning workspace → Financing inputs: collects
README.md - Planning workspace → Payment strategy: configures
README.md - Planning workspace → Simulation engine: simulates locally
README.md - Planning workspace → Results dashboard: shows projections
README.md - Planning workspace → Amortization table: shows schedule
README.md - Planning workspace → Financing history: manages records
README.md - Planning workspace → API client: uses API
- API client → Financing API: sends requests
- Financing API → SQLite operations: reads and writes
server/index.ts - Sign-in screen → Firebase Auth: authenticates
client/src/pages/Auth.tsx - Sign-in screen → Auth state: reads auth state
client/src/pages/Auth.tsx - Auth state → Firebase Auth: observes session
client/src/contexts/AuthContext.tsx - Composition hook → Stable callback hook: uses callbacks
client/src/hooks/useComposition.ts