WealthView Architecture & Feature Cluster Baseline

This document serves as a high-level technical baseline for developers and AI agents working on the WealthView platform. It details the architecture, feature sets, algorithms, and design decisions to provide context for future enhancements.

1. System Overview & Architecture

WealthView is a self-hosted, multi-tenant personal finance application.

High-Level Architecture

Monorepo Structure

The codebase utilizes an npm workspace monorepo:


2. Tenancy, Auth & Security

Tenant Isolation

Isolation is enforced at the row-level within a single Postgres database. Every table (except tenants and prices) contains a tenant_id foreign key. A Spring Security filter extracts the tenant_id from the user's JWT and enforces this boundary globally across all repository queries, ensuring cross-tenant data spillage is impossible.

Authentication & Role-Based Access Control (RBAC)


3. Core Feature: Investment Portfolio Tracking

Holdings Auto-Computation Algorithm

Rather than storing static holding records, holdings are dynamically driven by transaction history.

Import Deduplication Algorithm

Valuation & Live Price Feeds


4. Core Feature: Rental Property Management

Valuation & Cash Flow Modeling


5. Core Feature: Retirement Projections

This is the most computationally heavy module (wealthview-projection).

Deterministic Engine

Monte Carlo & Guardrail Optimizer


6. Developer Guidelines & Configuration