# monishajaiganesh/property_pulse architecture

> Architecture diagram of the GitHub repository monishajaiganesh/property_pulse, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/monishajaiganesh/property_pulse
- Repository: https://github.com/monishajaiganesh/property_pulse

## Overview

Value Home Vision is a real-estate valuation and investment-insights platform. The main journey runs from the prediction page’s property form through the API to backend valuation, then presents results and related homes. Separate product branches provide conversational property assistance, regional heatmaps, investment analytics, and account-based favorites. The frontend routing and several page/component relationships are supported by the source index; backend and external-service links are limited to README documentation because their implementation connections are not shown in the excerpts.

Main entry points: [`src/App.tsx`](https://github.com/monishajaiganesh/property_pulse/blob/main/src/App.tsx) (App Router), [`src/pages/Predict.tsx`](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Predict.tsx) (Prediction Page), [`src/contexts/AuthContext.tsx`](https://github.com/monishajaiganesh/property_pulse/blob/main/src/contexts/AuthContext.tsx) (Authentication Context), [`src/components/PredictionForm.tsx`](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PredictionForm.tsx) (Property Form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_app["App Router<br/>[App.tsx]"]
  node_landing["Landing Page<br/>[Landing.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
end

subgraph group_valuation["Property Valuation"]
  node_predict_page["Prediction Page<br/>[Predict.tsx]"]
  node_prediction_form["Property Form<br/>[PredictionForm.tsx]"]
  node_api_client["Prediction API Client<br/>[api.ts]"]
  node_backend["Valuation Backend<br/>[main.py]"]
  node_prediction_state["Prediction State"]
  node_prediction_results["Valuation Results"]
  node_related_homes["Related Homes<br/>[RelatedHouses.tsx]"]
  node_property_types["Property Data Types<br/>[property.ts]"]
end

subgraph group_insights["Market Insights"]
  node_chatbot["AI Assistant<br/>[Chatbot.tsx]"]
  node_heatmap_page["Heatmap Page<br/>[Heatmap.tsx]"]
  node_heatmap_view["Heatmap Visualization<br/>[HeatmapView.tsx]"]
  node_analytics["Investment Analytics<br/>[Analytics.tsx]"]
  node_property_comparison["Property Comparison"]
end

subgraph group_accounts["Identity and Favorites"]
  node_auth["Authentication Context<br/>[AuthContext.tsx]"]
  node_firebase["Firebase Services<br/>[firebase.ts]"]
  node_favorites["Favorites Page<br/>[Favorites.tsx]"]
  node_house_service["House Service<br/>[houseService.ts]"]
end

node_visitor(("User"))
node_gemini{{"Gemini AI"}}
node_firestore[("Firestore")]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_predict_page
node_app -->|"routes to"| node_heatmap_page
node_app -->|"routes to"| node_chatbot
node_app -->|"routes to"| node_analytics
node_landing -->|"renders"| node_navbar
node_predict_page -->|"renders"| node_navbar
node_predict_page -->|"renders"| node_prediction_form
node_prediction_form -->|"requests valuation"| node_api_client
node_api_client -->|"calls prediction API"| node_backend
node_backend -->|"returns valuation"| node_prediction_results
node_predict_page -->|"uses shared state"| node_prediction_state
node_prediction_form -->|"uses data types"| node_property_types
node_prediction_state -->|"stores typed data"| node_property_types
node_predict_page -->|"renders"| node_prediction_results
node_predict_page -->|"renders"| node_related_homes
node_visitor -->|"asks questions"| node_chatbot
node_chatbot -->|"sends chat requests"| node_gemini
node_visitor -->|"explores markets"| node_heatmap_page
node_heatmap_page -.->|"shows map"| node_heatmap_view
node_visitor -->|"analyzes investments"| node_analytics
node_analytics -.->|"offers comparisons"| node_property_comparison
node_app -->|"provides account state"| node_auth
node_auth -->|"uses services"| node_firebase
node_auth -->|"reads and updates profiles"| node_firestore
node_app -->|"routes to"| node_favorites
node_favorites -->|"uses"| node_house_service
node_favorites -->|"reads user favorites"| node_auth

click node_app "https://github.com/monishajaiganesh/property_pulse/blob/main/src/App.tsx"
click node_landing "https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Landing.tsx"
click node_navbar "https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/Navbar.tsx"
click node_predict_page "https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Predict.tsx"
click node_prediction_form "https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PredictionForm.tsx"
click node_api_client "https://github.com/monishajaiganesh/property_pulse/blob/main/src/lib/api.ts"
click node_backend "https://github.com/monishajaiganesh/property_pulse/blob/main/backend/main.py"
click node_prediction_state "https://github.com/monishajaiganesh/property_pulse/blob/main/src/contexts/PredictionContext.tsx"
click node_prediction_results "https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PredictionResults.tsx"
click node_related_homes "https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/RelatedHouses.tsx"
click node_property_types "https://github.com/monishajaiganesh/property_pulse/blob/main/src/types/property.ts"
click node_chatbot "https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Chatbot.tsx"
click node_heatmap_page "https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Heatmap.tsx"
click node_heatmap_view "https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/HeatmapView.tsx"
click node_analytics "https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Analytics.tsx"
click node_property_comparison "https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PropertyComparison.tsx"
click node_auth "https://github.com/monishajaiganesh/property_pulse/blob/main/src/contexts/AuthContext.tsx"
click node_firebase "https://github.com/monishajaiganesh/property_pulse/blob/main/src/lib/firebase.ts"
click node_favorites "https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Favorites.tsx"
click node_house_service "https://github.com/monishajaiganesh/property_pulse/blob/main/src/lib/houseService.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_landing,node_navbar,node_visitor toneBlue
class node_predict_page,node_prediction_form,node_api_client,node_backend,node_prediction_state,node_prediction_results,node_related_homes,node_property_types,node_firestore toneAmber
class node_chatbot,node_heatmap_page,node_heatmap_view,node_analytics,node_property_comparison toneMint
class node_auth,node_firebase,node_favorites,node_house_service toneRose
class node_gemini toneIndigo
```

## Components

### Application Shell

- [App Router](https://github.com/monishajaiganesh/property_pulse/blob/main/src/App.tsx): `src/App.tsx`
- [Landing Page](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Landing.tsx): `src/pages/Landing.tsx`
- [Navigation](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`

### Property Valuation

- [Prediction Page](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Predict.tsx): `src/pages/Predict.tsx`
- [Property Form](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PredictionForm.tsx): `src/components/PredictionForm.tsx`
- [Prediction API Client](https://github.com/monishajaiganesh/property_pulse/blob/main/src/lib/api.ts): `src/lib/api.ts`
- [Valuation Backend](https://github.com/monishajaiganesh/property_pulse/blob/main/backend/main.py): `backend/main.py`
- [Prediction State](https://github.com/monishajaiganesh/property_pulse/blob/main/src/contexts/PredictionContext.tsx): `src/contexts/PredictionContext.tsx`
- [Valuation Results](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PredictionResults.tsx): `src/components/PredictionResults.tsx`
- [Related Homes](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/RelatedHouses.tsx): `src/components/RelatedHouses.tsx`
- [Property Data Types](https://github.com/monishajaiganesh/property_pulse/blob/main/src/types/property.ts): `src/types/property.ts`

### Market Insights

- [AI Assistant](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Chatbot.tsx): `src/pages/Chatbot.tsx`
- [Heatmap Page](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Heatmap.tsx): `src/pages/Heatmap.tsx`
- [Heatmap Visualization](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/HeatmapView.tsx): `src/components/HeatmapView.tsx`
- [Investment Analytics](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Analytics.tsx): `src/pages/Analytics.tsx`
- [Property Comparison](https://github.com/monishajaiganesh/property_pulse/blob/main/src/components/PropertyComparison.tsx): `src/components/PropertyComparison.tsx`

### Identity and Favorites

- [Authentication Context](https://github.com/monishajaiganesh/property_pulse/blob/main/src/contexts/AuthContext.tsx): `src/contexts/AuthContext.tsx`
- [Firebase Services](https://github.com/monishajaiganesh/property_pulse/blob/main/src/lib/firebase.ts): `src/lib/firebase.ts`
- [Favorites Page](https://github.com/monishajaiganesh/property_pulse/blob/main/src/pages/Favorites.tsx): `src/pages/Favorites.tsx`
- [House Service](https://github.com/monishajaiganesh/property_pulse/blob/main/src/lib/houseService.ts): `src/lib/houseService.ts`

### Other components

- **User**
- **Gemini AI**
- **Firestore**

## Connections

- User → App Router: opens (evidence: `README.md`)
- App Router → Landing Page: routes to (evidence: `src/App.tsx`)
- App Router → Prediction Page: routes to (evidence: `src/App.tsx`)
- App Router → Heatmap Page: routes to (evidence: `src/App.tsx`)
- App Router → AI Assistant: routes to (evidence: `src/App.tsx`)
- App Router → Investment Analytics: routes to (evidence: `src/App.tsx`)
- Landing Page → Navigation: renders (evidence: `src/pages/Landing.tsx`)
- Prediction Page → Navigation: renders (evidence: `src/pages/Predict.tsx`)
- Prediction Page → Property Form: renders (evidence: `src/pages/Predict.tsx`)
- Property Form → Prediction API Client: requests valuation (evidence: `src/components/PredictionForm.tsx`)
- Prediction API Client → Valuation Backend: calls prediction API (evidence: `README.md`)
- Valuation Backend → Valuation Results: returns valuation (evidence: `README.md`)
- Prediction Page → Prediction State: uses shared state (evidence: `src/pages/Predict.tsx`)
- Property Form → Property Data Types: uses data types (evidence: `src/components/PredictionForm.tsx`)
- Prediction State → Property Data Types: stores typed data (evidence: `src/contexts/PredictionContext.tsx`)
- Prediction Page → Valuation Results: renders (evidence: `src/pages/Predict.tsx`)
- Prediction Page → Related Homes: renders (evidence: `src/pages/Predict.tsx`)
- User → AI Assistant: asks questions (evidence: `README.md`)
- AI Assistant → Gemini AI: sends chat requests (evidence: `README.md`)
- User → Heatmap Page: explores markets (evidence: `README.md`)
- Heatmap Page → Heatmap Visualization: shows map
- User → Investment Analytics: analyzes investments (evidence: `README.md`)
- Investment Analytics → Property Comparison: offers comparisons
- App Router → Authentication Context: provides account state (evidence: `src/App.tsx`)
- Authentication Context → Firebase Services: uses services (evidence: `src/contexts/AuthContext.tsx`)
- Authentication Context → Firestore: reads and updates profiles (evidence: `src/contexts/AuthContext.tsx`)
- App Router → Favorites Page: routes to (evidence: `src/App.tsx`)
- Favorites Page → House Service: uses (evidence: `src/pages/Favorites.tsx`)
- Favorites Page → Authentication Context: reads user favorites (evidence: `src/pages/Favorites.tsx`)
