# ntandonkuna/biome-mvp architecture

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

- Interactive diagram: https://gitdiagram.com/ntandonkuna/biome-mvp
- Repository: https://github.com/ntandonkuna/biome-mvp

## Overview

Biome-MVP is a browser-based property marketplace with public browsing and property details, plus sign-in and role-specific buyer, seller, and admin dashboards. The main discovery flow runs from the listings page through listing and property services to rendered property cards; authentication and seller listing management are also visible in sampled code. Dashboard and account stages are retained, but several page-to-service links are omitted because their relevant calls were not shown. The README provides no further capability detail.

Main entry points: [`js/pages/property-listings.js`](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/property-listings.js) (Property listings), [`js/services/listingService.js`](https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/listingService.js) (Listing service), [`js/core/auth.js`](https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/auth.js) (Authentication), [`js/pages/seller-dashboard.js`](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/seller-dashboard.js) (Seller dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Marketplace pages"]
  node_home["Home page<br/>[home.js]"]
  node_browse["Property listings"]
  node_details["Property details"]
end

subgraph group_accounts["Accounts and dashboards"]
  node_signin["Sign in<br/>[sign-in.js]"]
  node_signup["Sign up<br/>[sign-up.js]"]
  node_buyer["Buyer dashboard<br/>[buyer-dashboard.js]"]
  node_seller["Seller dashboard"]
  node_admin["Admin dashboard<br/>[admin-dashboard.js]"]
end

subgraph group_domain["Property services"]
  node_listing_service["Listing service<br/>[listingService.js]"]
  node_property_service["Property service<br/>[propertyService.js]"]
  node_media_service["Media service<br/>[mediaService.js]"]
  node_profile_service["Profile service<br/>[profileService.js]"]
end

subgraph group_platform["Shared platform"]
  node_auth["Authentication<br/>[auth.js]"]
  node_navbar["Navigation<br/>[navbar.js]"]
  node_ui["UI utilities<br/>[ui.js]"]
  node_property_card["Property card<br/>[propertyCard.js]"]
  node_storage["Media storage helper<br/>[storage.js]"]
end

node_visitor(("Visitor or user"))
node_supabase[("Supabase")]

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_browse
node_browse -->|"initializes"| node_navbar
node_navbar -->|"checks user"| node_auth
node_browse -.->|"loads listings"| node_listing_service
node_browse -->|"loads cards"| node_property_service
node_property_service -->|"loads listings"| node_listing_service
node_property_service -.->|"supplies card data"| node_property_card
node_property_card -->|"opens details"| node_details
node_listing_service -->|"queries listings"| node_supabase
node_auth -->|"auth and profiles"| node_supabase
node_visitor -->|"signs in"| node_signin
node_visitor -->|"registers"| node_signup
node_buyer -->|"reads saved listings"| node_supabase
node_buyer -->|"checks session"| node_auth
node_seller -->|"loads account"| node_auth
node_seller -->|"updates listings"| node_listing_service
node_seller -->|"updates profile"| node_supabase
node_media_service -->|"manages media rows"| node_supabase
node_media_service -->|"deletes files"| node_storage
node_storage -->|"uploads and deletes"| node_supabase
node_profile_service -->|"reads and updates profiles"| node_supabase

click node_home "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/home.js"
click node_browse "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/property-listings.js"
click node_details "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/property-details.js"
click node_signin "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/sign-in.js"
click node_signup "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/sign-up.js"
click node_buyer "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/buyer-dashboard.js"
click node_seller "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/seller-dashboard.js"
click node_admin "https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/admin-dashboard.js"
click node_auth "https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/auth.js"
click node_navbar "https://github.com/ntandonkuna/biome-mvp/blob/main/js/components/navbar.js"
click node_ui "https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/ui.js"
click node_listing_service "https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/listingService.js"
click node_property_service "https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/propertyService.js"
click node_media_service "https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/mediaService.js"
click node_profile_service "https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/profileService.js"
click node_property_card "https://github.com/ntandonkuna/biome-mvp/blob/main/js/components/propertyCard.js"
click node_storage "https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/storage.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_home,node_browse,node_details,node_visitor toneBlue
class node_signin,node_signup,node_buyer,node_seller,node_admin,node_supabase toneAmber
class node_listing_service,node_property_service,node_media_service,node_profile_service toneMint
class node_auth,node_navbar,node_ui,node_property_card,node_storage toneRose
```

## Components

### Marketplace pages

- [Home page](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/home.js): `js/pages/home.js`
- [Property listings](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/property-listings.js): `js/pages/property-listings.js`
- [Property details](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/property-details.js): `js/pages/property-details.js`

### Accounts and dashboards

- [Sign in](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/sign-in.js): `js/pages/sign-in.js`
- [Sign up](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/sign-up.js): `js/pages/sign-up.js`
- [Buyer dashboard](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/buyer-dashboard.js): `js/pages/buyer-dashboard.js`
- [Seller dashboard](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/seller-dashboard.js): `js/pages/seller-dashboard.js`
- [Admin dashboard](https://github.com/ntandonkuna/biome-mvp/blob/main/js/pages/admin-dashboard.js): `js/pages/admin-dashboard.js`

### Property services

- [Listing service](https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/listingService.js): `js/services/listingService.js`
- [Property service](https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/propertyService.js): `js/services/propertyService.js`
- [Media service](https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/mediaService.js): `js/services/mediaService.js`
- [Profile service](https://github.com/ntandonkuna/biome-mvp/blob/main/js/services/profileService.js): `js/services/profileService.js`

### Shared platform

- [Authentication](https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/auth.js): `js/core/auth.js`
- [Navigation](https://github.com/ntandonkuna/biome-mvp/blob/main/js/components/navbar.js): `js/components/navbar.js`
- [UI utilities](https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/ui.js): `js/core/ui.js`
- [Property card](https://github.com/ntandonkuna/biome-mvp/blob/main/js/components/propertyCard.js): `js/components/propertyCard.js`
- [Media storage helper](https://github.com/ntandonkuna/biome-mvp/blob/main/js/core/storage.js): `js/core/storage.js`

### Other components

- **Visitor or user**
- **Supabase**

## Connections

- Visitor or user → Home page: opens
- Visitor or user → Property listings: browses
- Property listings → Navigation: initializes (evidence: `js/pages/property-listings.js`)
- Navigation → Authentication: checks user (evidence: `js/components/navbar.js`)
- Property listings → Listing service: loads listings
- Property listings → Property service: loads cards (evidence: `js/pages/property-listings.js`)
- Property service → Listing service: loads listings (evidence: `js/services/propertyService.js`)
- Property service → Property card: supplies card data
- Property card → Property details: opens details (evidence: `js/components/propertyCard.js`)
- Listing service → Supabase: queries listings (evidence: `js/services/listingService.js`)
- Authentication → Supabase: auth and profiles (evidence: `js/core/auth.js`)
- Visitor or user → Sign in: signs in
- Visitor or user → Sign up: registers
- Buyer dashboard → Supabase: reads saved listings (evidence: `js/pages/buyer-dashboard.js`)
- Buyer dashboard → Authentication: checks session (evidence: `js/pages/buyer-dashboard.js`)
- Seller dashboard → Authentication: loads account (evidence: `js/pages/seller-dashboard.js`)
- Seller dashboard → Listing service: updates listings (evidence: `js/pages/seller-dashboard.js`)
- Seller dashboard → Supabase: updates profile (evidence: `js/pages/seller-dashboard.js`)
- Media service → Supabase: manages media rows (evidence: `js/services/mediaService.js`)
- Media service → Media storage helper: deletes files (evidence: `js/services/mediaService.js`)
- Media storage helper → Supabase: uploads and deletes (evidence: `js/core/storage.js`)
- Profile service → Supabase: reads and updates profiles (evidence: `js/services/profileService.js`)
