# k-heman/honesty-realtors architecture

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

- Interactive diagram: https://gitdiagram.com/k-heman/honesty-realtors
- Repository: https://github.com/k-heman/honesty-realtors

## Overview

This is a React real-estate browsing application: visitors explore and filter listings, open property details, save favorites, compare listings, and submit enquiry or visit requests. App provides routing and shared state; listing data comes from Firebase-backed property state, with local sample data available to that layer. The graph preserves the major browsing, detail, engagement, and persistence stages. Some components and integrations are represented from the source index rather than inspected excerpts, so only indexed or excerpt-supported connections are shown.

Main entry points: [`src/App.jsx`](https://github.com/k-heman/honesty-realtors/blob/main/src/App.jsx) (Routes and shell), [`src/context/PropertyContext.jsx`](https://github.com/k-heman/honesty-realtors/blob/main/src/context/PropertyContext.jsx) (Property search state), [`src/components/PropertyCard.jsx`](https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyCard.jsx) (Listing card), [`src/firebase.js`](https://github.com/k-heman/honesty-realtors/blob/main/src/firebase.js) (Firebase setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["Routes and shell<br/>[App.jsx]"]
end

subgraph group_browse["Property discovery"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_filter["Listing filters<br/>[FilterCard.jsx]"]
  node_grid["Property results<br/>[PropertyGrid.jsx]"]
  node_card["Listing card<br/>[PropertyCard.jsx]"]
  node_categories["Browse categories"]
  node_localities["Featured localities"]
  node_testimonials["Testimonials<br/>[Testimonials.jsx]"]
end

subgraph group_engage["Property engagement"]
  node_details["Property details"]
  node_enquiry["Enquiry request<br/>[EnquiryModal.jsx]"]
  node_visit["Visit booking<br/>[BookVisitModal.jsx]"]
  node_share["Property sharing<br/>[ShareModal.jsx]"]
  node_favorites["Favorites page<br/>[FavoritesPage.jsx]"]
  node_compare["Compare page<br/>[ComparePage.jsx]"]
end

subgraph group_state["State and data"]
  node_property_state["Property search state"]
  node_favorite_state["Favorites state"]
  node_compare_state["Comparison state<br/>[CompareContext.jsx]"]
  node_settings["Site settings"]
  node_sample_data["Sample listings<br/>[properties.js]"]
  node_seeder["Database seeder<br/>[dbSeeder.js]"]
end

subgraph group_shared["Shared services"]
  node_firebase["Firebase setup<br/>[firebase.js]"]
  node_seo["SEO metadata<br/>[useSEO.js]"]
  node_image["Lazy image<br/>[LazyImage.jsx]"]
  node_strip["Description cleanup<br/>[stripHtml.js]"]
end

node_visitor(("Visitor"))
node_firestore[("Cloud Firestore")]

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_details
node_app -->|"routes to"| node_favorites
node_app -->|"routes to"| node_compare
node_app -->|"provides"| node_property_state
node_app -->|"provides"| node_settings
node_app -->|"provides"| node_favorite_state
node_app -->|"provides"| node_compare_state
node_home -->|"renders"| node_filter
node_home -->|"renders"| node_grid
node_home -->|"renders"| node_categories
node_home -->|"renders"| node_localities
node_home -->|"renders"| node_testimonials
node_grid -->|"renders"| node_card
node_grid -->|"reads listings"| node_property_state
node_filter -->|"updates search"| node_property_state
node_details -->|"reads listing"| node_property_state
node_details -->|"opens"| node_enquiry
node_details -->|"opens"| node_visit
node_details -->|"opens"| node_share
node_details -->|"sets metadata"| node_seo
node_card -->|"toggles favorite"| node_favorite_state
node_card -->|"toggles compare"| node_compare_state
node_card -->|"opens"| node_share
node_card -->|"renders image"| node_image
node_card -->|"cleans description"| node_strip
node_favorites -->|"reads saved ids"| node_favorite_state
node_favorites -->|"reads listings"| node_property_state
node_favorites -->|"renders"| node_card
node_compare -->|"reads selected ids"| node_compare_state
node_compare -->|"reads listings"| node_property_state
node_compare -->|"renders image"| node_image
node_compare -->|"sets metadata"| node_seo
node_property_state -->|"uses database"| node_firebase
node_property_state -->|"starts seeding"| node_seeder
node_property_state -->|"uses fallback data"| node_sample_data
node_settings -->|"uses database"| node_firebase
node_firebase -->|"initializes client"| node_firestore
node_seeder -->|"uses database"| node_firebase
node_seeder -->|"reads listings"| node_sample_data
node_enquiry -->|"submits request"| node_firebase
node_visit -->|"submits booking"| node_firebase
node_testimonials -->|"loads reviews"| node_firebase
node_favorite_state -->|"persists locally"| node_visitor
node_compare_state -->|"persists locally"| node_visitor

click node_app "https://github.com/k-heman/honesty-realtors/blob/main/src/App.jsx"
click node_home "https://github.com/k-heman/honesty-realtors/blob/main/src/pages/HomePage.jsx"
click node_filter "https://github.com/k-heman/honesty-realtors/blob/main/src/components/FilterCard.jsx"
click node_grid "https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyGrid.jsx"
click node_card "https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyCard.jsx"
click node_categories "https://github.com/k-heman/honesty-realtors/blob/main/src/components/BrowseCategories.jsx"
click node_localities "https://github.com/k-heman/honesty-realtors/blob/main/src/components/FeaturedLocalities.jsx"
click node_testimonials "https://github.com/k-heman/honesty-realtors/blob/main/src/components/Testimonials.jsx"
click node_details "https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyDetails.jsx"
click node_enquiry "https://github.com/k-heman/honesty-realtors/blob/main/src/components/EnquiryModal.jsx"
click node_visit "https://github.com/k-heman/honesty-realtors/blob/main/src/components/BookVisitModal.jsx"
click node_share "https://github.com/k-heman/honesty-realtors/blob/main/src/components/ShareModal.jsx"
click node_favorites "https://github.com/k-heman/honesty-realtors/blob/main/src/pages/FavoritesPage.jsx"
click node_compare "https://github.com/k-heman/honesty-realtors/blob/main/src/pages/ComparePage.jsx"
click node_property_state "https://github.com/k-heman/honesty-realtors/blob/main/src/context/PropertyContext.jsx"
click node_favorite_state "https://github.com/k-heman/honesty-realtors/blob/main/src/context/FavoritesContext.jsx"
click node_compare_state "https://github.com/k-heman/honesty-realtors/blob/main/src/context/CompareContext.jsx"
click node_settings "https://github.com/k-heman/honesty-realtors/blob/main/src/context/SettingsContext.jsx"
click node_sample_data "https://github.com/k-heman/honesty-realtors/blob/main/src/data/properties.js"
click node_seeder "https://github.com/k-heman/honesty-realtors/blob/main/src/utils/dbSeeder.js"
click node_firebase "https://github.com/k-heman/honesty-realtors/blob/main/src/firebase.js"
click node_seo "https://github.com/k-heman/honesty-realtors/blob/main/src/hooks/useSEO.js"
click node_image "https://github.com/k-heman/honesty-realtors/blob/main/src/components/LazyImage.jsx"
click node_strip "https://github.com/k-heman/honesty-realtors/blob/main/src/utils/stripHtml.js"

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 toneBlue
class node_home,node_filter,node_grid,node_card,node_categories,node_localities,node_testimonials,node_firestore toneAmber
class node_details,node_enquiry,node_visit,node_share,node_favorites,node_compare toneMint
class node_property_state,node_favorite_state,node_compare_state,node_settings,node_sample_data,node_seeder toneRose
class node_firebase,node_seo,node_image,node_strip,node_visitor toneIndigo
```

## Components

### Application shell

- [Routes and shell](https://github.com/k-heman/honesty-realtors/blob/main/src/App.jsx): `src/App.jsx`

### Property discovery

- [Home page](https://github.com/k-heman/honesty-realtors/blob/main/src/pages/HomePage.jsx): `src/pages/HomePage.jsx`
- [Listing filters](https://github.com/k-heman/honesty-realtors/blob/main/src/components/FilterCard.jsx): `src/components/FilterCard.jsx`
- [Property results](https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyGrid.jsx): `src/components/PropertyGrid.jsx`
- [Listing card](https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyCard.jsx): `src/components/PropertyCard.jsx`
- [Browse categories](https://github.com/k-heman/honesty-realtors/blob/main/src/components/BrowseCategories.jsx): `src/components/BrowseCategories.jsx`
- [Featured localities](https://github.com/k-heman/honesty-realtors/blob/main/src/components/FeaturedLocalities.jsx): `src/components/FeaturedLocalities.jsx`
- [Testimonials](https://github.com/k-heman/honesty-realtors/blob/main/src/components/Testimonials.jsx): `src/components/Testimonials.jsx`

### Property engagement

- [Property details](https://github.com/k-heman/honesty-realtors/blob/main/src/components/PropertyDetails.jsx): `src/components/PropertyDetails.jsx`
- [Enquiry request](https://github.com/k-heman/honesty-realtors/blob/main/src/components/EnquiryModal.jsx): `src/components/EnquiryModal.jsx`
- [Visit booking](https://github.com/k-heman/honesty-realtors/blob/main/src/components/BookVisitModal.jsx): `src/components/BookVisitModal.jsx`
- [Property sharing](https://github.com/k-heman/honesty-realtors/blob/main/src/components/ShareModal.jsx): `src/components/ShareModal.jsx`
- [Favorites page](https://github.com/k-heman/honesty-realtors/blob/main/src/pages/FavoritesPage.jsx): `src/pages/FavoritesPage.jsx`
- [Compare page](https://github.com/k-heman/honesty-realtors/blob/main/src/pages/ComparePage.jsx): `src/pages/ComparePage.jsx`

### State and data

- [Property search state](https://github.com/k-heman/honesty-realtors/blob/main/src/context/PropertyContext.jsx): `src/context/PropertyContext.jsx`
- [Favorites state](https://github.com/k-heman/honesty-realtors/blob/main/src/context/FavoritesContext.jsx): `src/context/FavoritesContext.jsx`
- [Comparison state](https://github.com/k-heman/honesty-realtors/blob/main/src/context/CompareContext.jsx): `src/context/CompareContext.jsx`
- [Site settings](https://github.com/k-heman/honesty-realtors/blob/main/src/context/SettingsContext.jsx): `src/context/SettingsContext.jsx`
- [Sample listings](https://github.com/k-heman/honesty-realtors/blob/main/src/data/properties.js): `src/data/properties.js`
- [Database seeder](https://github.com/k-heman/honesty-realtors/blob/main/src/utils/dbSeeder.js): `src/utils/dbSeeder.js`

### Shared services

- [Firebase setup](https://github.com/k-heman/honesty-realtors/blob/main/src/firebase.js): `src/firebase.js`
- [SEO metadata](https://github.com/k-heman/honesty-realtors/blob/main/src/hooks/useSEO.js): `src/hooks/useSEO.js`
- [Lazy image](https://github.com/k-heman/honesty-realtors/blob/main/src/components/LazyImage.jsx): `src/components/LazyImage.jsx`
- [Description cleanup](https://github.com/k-heman/honesty-realtors/blob/main/src/utils/stripHtml.js): `src/utils/stripHtml.js`

### Other components

- **Visitor**
- **Cloud Firestore**

## Connections

- Visitor → Routes and shell: opens
- Routes and shell → Home page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Property details: routes to (evidence: `src/App.jsx`)
- Routes and shell → Favorites page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Compare page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Property search state: provides (evidence: `src/App.jsx`)
- Routes and shell → Site settings: provides (evidence: `src/App.jsx`)
- Routes and shell → Favorites state: provides (evidence: `src/App.jsx`)
- Routes and shell → Comparison state: provides (evidence: `src/App.jsx`)
- Home page → Listing filters: renders (evidence: `src/pages/HomePage.jsx`)
- Home page → Property results: renders (evidence: `src/pages/HomePage.jsx`)
- Home page → Browse categories: renders (evidence: `src/pages/HomePage.jsx`)
- Home page → Featured localities: renders (evidence: `src/pages/HomePage.jsx`)
- Home page → Testimonials: renders (evidence: `src/pages/HomePage.jsx`)
- Property results → Listing card: renders (evidence: `src/components/PropertyGrid.jsx`)
- Property results → Property search state: reads listings (evidence: `src/components/PropertyGrid.jsx`)
- Listing filters → Property search state: updates search (evidence: `src/components/FilterCard.jsx`)
- Property details → Property search state: reads listing (evidence: `src/components/PropertyDetails.jsx`)
- Property details → Enquiry request: opens (evidence: `src/components/PropertyDetails.jsx`)
- Property details → Visit booking: opens (evidence: `src/components/PropertyDetails.jsx`)
- Property details → Property sharing: opens (evidence: `src/components/PropertyDetails.jsx`)
- Property details → SEO metadata: sets metadata (evidence: `src/components/PropertyDetails.jsx`)
- Listing card → Favorites state: toggles favorite (evidence: `src/components/PropertyCard.jsx`)
- Listing card → Comparison state: toggles compare (evidence: `src/components/PropertyCard.jsx`)
- Listing card → Property sharing: opens (evidence: `src/components/PropertyCard.jsx`)
- Listing card → Lazy image: renders image (evidence: `src/components/PropertyCard.jsx`)
- Listing card → Description cleanup: cleans description (evidence: `src/components/PropertyCard.jsx`)
- Favorites page → Favorites state: reads saved ids (evidence: `src/pages/FavoritesPage.jsx`)
- Favorites page → Property search state: reads listings (evidence: `src/pages/FavoritesPage.jsx`)
- Favorites page → Listing card: renders (evidence: `src/pages/FavoritesPage.jsx`)
- Compare page → Comparison state: reads selected ids (evidence: `src/pages/ComparePage.jsx`)
- Compare page → Property search state: reads listings (evidence: `src/pages/ComparePage.jsx`)
- Compare page → Lazy image: renders image (evidence: `src/pages/ComparePage.jsx`)
- Compare page → SEO metadata: sets metadata (evidence: `src/pages/ComparePage.jsx`)
- Property search state → Firebase setup: uses database (evidence: `src/context/PropertyContext.jsx`)
- Property search state → Database seeder: starts seeding (evidence: `src/context/PropertyContext.jsx`)
- Property search state → Sample listings: uses fallback data (evidence: `src/context/PropertyContext.jsx`)
- Site settings → Firebase setup: uses database (evidence: `src/context/SettingsContext.jsx`)
- Firebase setup → Cloud Firestore: initializes client (evidence: `src/firebase.js`)
- Database seeder → Firebase setup: uses database (evidence: `src/utils/dbSeeder.js`)
- Database seeder → Sample listings: reads listings (evidence: `src/utils/dbSeeder.js`)
- Enquiry request → Firebase setup: submits request (evidence: `src/components/EnquiryModal.jsx`)
- Visit booking → Firebase setup: submits booking (evidence: `src/components/BookVisitModal.jsx`)
- Testimonials → Firebase setup: loads reviews (evidence: `src/components/Testimonials.jsx`)
- Favorites state → Visitor: persists locally (evidence: `src/context/FavoritesContext.jsx`)
- Comparison state → Visitor: persists locally (evidence: `src/context/CompareContext.jsx`)
