# mohamedsuhailn/silver-hands architecture

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

- Interactive diagram: https://gitdiagram.com/mohamedsuhailn/silver-hands
- Repository: https://github.com/mohamedsuhailn/silver-hands

## Overview

SilverHands is an elder-focused services and handmade-goods marketplace with AI assistance, opportunity discovery, and trust-and-safety features. Customers and providers use the React application to browse offerings, arrange bookings or orders, and manage profiles; the frontend exchanges API requests with a Django backend. The graph preserves documented AI, radar, messaging, reviews, and moderation branches. Several backend and frontend modules were not excerpted, so their internal call paths are left unspecified rather than inferred.

Main entry points: [`backend/silverhands/urls.py`](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/silverhands/urls.py) (Django REST API), [`backend/ai_engine/views.py`](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/views.py) (AI request handlers), [`frontend/src/App.jsx`](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/App.jsx) (React app and routes), [`frontend/src/api/client.js`](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/api/client.js) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_webapp["React app and routes<br/>[App.jsx]"]
  node_marketui["Marketplace pages"]
  node_providerui["Provider workspace"]
  node_aiui["AI and voice features"]
  node_radarui["Opportunity Radar"]
  node_adminui["Admin moderation"]
  node_apiclient["API client<br/>[client.js]"]
end

subgraph group_market["Marketplace domain"]
  node_accounts[("Accounts and profiles<br/>[models.py]")]
  node_marketplace[("Services and goods<br/>[models.py]")]
  node_bookings[("Bookings and orders<br/>[models.py]")]
  node_messaging[("Direct messaging<br/>[models.py]")]
  node_reviews[("Customer reviews<br/>[models.py]")]
end

subgraph group_ai["AI services"]
  node_aiapi["AI request handlers<br/>[views.py]"]
  node_aiclient["AI provider client<br/>[ai_client.py]"]
  node_matching["Conversational matching<br/>[matching.py]"]
  node_skillservices["Skill and service suggestions"]
  node_pricing["Fair pricing advisor<br/>[pricing.py]"]
  node_scam["Scam detection<br/>[scam_detection.py]"]
end

subgraph group_operations["Trust and operations"]
  node_platformops[("Radar and safety records<br/>[models.py]")]
  node_platformviews["Platform operations API<br/>[views.py]"]
end

node_customer(("Customer or provider"))
node_backend["Django REST API<br/>[urls.py]"]
node_externalai{{"Gemini or OpenAI"}}

node_customer -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_marketui
node_webapp -->|"routes to"| node_providerui
node_webapp -->|"routes to"| node_aiui
node_webapp -->|"routes to"| node_adminui
node_customer -->|"posts or accepts"| node_radarui
node_marketui -->|"requests service data"| node_apiclient
node_apiclient -->|"sends API requests"| node_backend
node_backend -.->|"manages accounts"| node_accounts
node_backend -->|"serves listings"| node_marketplace
node_backend -->|"creates bookings and orders"| node_bookings
node_backend -.->|"serves messages"| node_messaging
node_backend -.->|"serves reviews"| node_reviews
node_aiui -.->|"uses API"| node_apiclient
node_backend -.->|"routes AI requests"| node_aiapi
node_aiapi -->|"dispatches matching"| node_matching
node_aiapi -->|"dispatches suggestions"| node_skillservices
node_aiapi -->|"dispatches pricing"| node_pricing
node_aiapi -->|"dispatches detection"| node_scam
node_bookings -->|"checks booking message"| node_scam
node_matching -->|"matches providers"| node_marketplace
node_skillservices -->|"generates suggestions"| node_aiclient
node_aiapi -->|"uses AI client"| node_aiclient
node_aiclient -->|"calls model API"| node_externalai
node_radarui -.->|"uses API"| node_apiclient
node_platformviews -.->|"manages operations data"| node_platformops
node_adminui -.->|"uses API"| node_apiclient
node_backend -.->|"serves operations"| node_platformviews

click node_webapp "https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/App.jsx"
click node_marketui "https://github.com/mohamedsuhailn/silver-hands/tree/main/frontend/src/pages/Marketplace"
click node_providerui "https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/pages/Provider/ProviderDashboard.jsx"
click node_aiui "https://github.com/mohamedsuhailn/silver-hands/tree/main/frontend/src/pages/AI"
click node_radarui "https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/pages/Radar/OpportunityRadarPage.jsx"
click node_adminui "https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/pages/Admin/AdminPortalPage.jsx"
click node_apiclient "https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/api/client.js"
click node_backend "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/silverhands/urls.py"
click node_accounts "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/accounts/models.py"
click node_marketplace "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/marketplace/models.py"
click node_bookings "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/bookings/models.py"
click node_messaging "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/messaging/models.py"
click node_reviews "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/reviews/models.py"
click node_aiapi "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/views.py"
click node_aiclient "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/ai_client.py"
click node_matching "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/matching.py"
click node_skillservices "https://github.com/mohamedsuhailn/silver-hands/tree/main/backend/ai_engine/services"
click node_pricing "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/pricing.py"
click node_scam "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/scam_detection.py"
click node_platformops "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/platform_ops/models.py"
click node_platformviews "https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/platform_ops/views.py"

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_webapp,node_marketui,node_providerui,node_aiui,node_radarui,node_adminui,node_apiclient toneBlue
class node_accounts,node_marketplace,node_bookings,node_messaging,node_reviews toneAmber
class node_aiapi,node_aiclient,node_matching,node_skillservices,node_pricing,node_scam,node_backend toneMint
class node_platformops,node_platformviews toneRose
class node_customer,node_externalai toneIndigo
```

## Components

### Web application

- [React app and routes](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Marketplace pages](https://github.com/mohamedsuhailn/silver-hands/tree/main/frontend/src/pages/Marketplace): `frontend/src/pages/Marketplace`
- [Provider workspace](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/pages/Provider/ProviderDashboard.jsx): `frontend/src/pages/Provider/ProviderDashboard.jsx`
- [AI and voice features](https://github.com/mohamedsuhailn/silver-hands/tree/main/frontend/src/pages/AI): `frontend/src/pages/AI`
- [Opportunity Radar](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/pages/Radar/OpportunityRadarPage.jsx): `frontend/src/pages/Radar/OpportunityRadarPage.jsx`
- [Admin moderation](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/pages/Admin/AdminPortalPage.jsx): `frontend/src/pages/Admin/AdminPortalPage.jsx`
- [API client](https://github.com/mohamedsuhailn/silver-hands/blob/main/frontend/src/api/client.js): `frontend/src/api/client.js`

### Marketplace domain

- [Accounts and profiles](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/accounts/models.py): `backend/accounts/models.py`
- [Services and goods](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/marketplace/models.py): `backend/marketplace/models.py`
- [Bookings and orders](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/bookings/models.py): `backend/bookings/models.py`
- [Direct messaging](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/messaging/models.py): `backend/messaging/models.py`
- [Customer reviews](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/reviews/models.py): `backend/reviews/models.py`

### AI services

- [AI request handlers](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/views.py): `backend/ai_engine/views.py`
- [AI provider client](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/ai_client.py): `backend/ai_engine/services/ai_client.py`
- [Conversational matching](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/matching.py): `backend/ai_engine/services/matching.py`
- [Skill and service suggestions](https://github.com/mohamedsuhailn/silver-hands/tree/main/backend/ai_engine/services): `backend/ai_engine/services`
- [Fair pricing advisor](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/pricing.py): `backend/ai_engine/services/pricing.py`
- [Scam detection](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/ai_engine/services/scam_detection.py): `backend/ai_engine/services/scam_detection.py`

### Trust and operations

- [Radar and safety records](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/platform_ops/models.py): `backend/platform_ops/models.py`
- [Platform operations API](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/platform_ops/views.py): `backend/platform_ops/views.py`

### Other components

- **Customer or provider**
- [Django REST API](https://github.com/mohamedsuhailn/silver-hands/blob/main/backend/silverhands/urls.py): `backend/silverhands/urls.py`
- **Gemini or OpenAI**

## Connections

- Customer or provider → React app and routes: uses (evidence: `README.md`)
- React app and routes → Marketplace pages: routes to (evidence: `frontend/src/App.jsx`)
- React app and routes → Provider workspace: routes to (evidence: `frontend/src/App.jsx`)
- React app and routes → AI and voice features: routes to (evidence: `frontend/src/App.jsx`)
- React app and routes → Admin moderation: routes to (evidence: `frontend/src/App.jsx`)
- Customer or provider → Opportunity Radar: posts or accepts (evidence: `README.md`)
- Marketplace pages → API client: requests service data (evidence: `frontend/src/pages/Marketplace/ServiceDetailPage.jsx`)
- API client → Django REST API: sends API requests (evidence: `frontend/src/api/client.js`)
- Django REST API → Accounts and profiles: manages accounts
- Django REST API → Services and goods: serves listings
- Django REST API → Bookings and orders: creates bookings and orders
- Django REST API → Direct messaging: serves messages
- Django REST API → Customer reviews: serves reviews
- AI and voice features → API client: uses API
- Django REST API → AI request handlers: routes AI requests
- AI request handlers → Conversational matching: dispatches matching (evidence: `backend/ai_engine/views.py`)
- AI request handlers → Skill and service suggestions: dispatches suggestions (evidence: `backend/ai_engine/views.py`)
- AI request handlers → Fair pricing advisor: dispatches pricing (evidence: `backend/ai_engine/views.py`)
- AI request handlers → Scam detection: dispatches detection (evidence: `backend/ai_engine/views.py`)
- Bookings and orders → Scam detection: checks booking message (evidence: `backend/bookings/views.py`)
- Conversational matching → Services and goods: matches providers (evidence: `README.md`)
- Skill and service suggestions → AI provider client: generates suggestions (evidence: `backend/ai_engine/services/service_suggestion.py`)
- AI request handlers → AI provider client: uses AI client (evidence: `backend/ai_engine/views.py`)
- AI provider client → Gemini or OpenAI: calls model API (evidence: `backend/ai_engine/services/ai_client.py`)
- Opportunity Radar → API client: uses API
- Platform operations API → Radar and safety records: manages operations data
- Admin moderation → API client: uses API
- Django REST API → Platform operations API: serves operations
