# barackwilliam/sakinah architecture

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

- Interactive diagram: https://gitdiagram.com/barackwilliam/sakinah
- Repository: https://github.com/barackwilliam/sakinah

## Overview

Sakinah is a Django matchmaking and wedding-services platform. Members create profiles, discover and contact one another, and can use verification and paid plans; the broader product also includes vendor advertising, events, honeymoon offerings, support, and staff management. The graph emphasizes the member workflow and preserves those product branches. Evidence is limited to the supplied excerpts and SOURCE INDEX; links to unsampled route-level features are omitted where no caller relationship is visible.

Main entry points: [`core/models.py`](https://github.com/barackwilliam/sakinah/blob/main/core/models.py) (Profiles and core records), [`members/views.py`](https://github.com/barackwilliam/sakinah/blob/main/members/views.py) (Member workflows), [`dashboard/views.py`](https://github.com/barackwilliam/sakinah/blob/main/dashboard/views.py) (Dashboard workflows), [`members/forms.py`](https://github.com/barackwilliam/sakinah/blob/main/members/forms.py) (Member forms)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_member["Member experience"]
  node_member_views["Member workflows<br/>[views.py]"]
  node_member_forms["Member forms<br/>[forms.py]"]
  node_member_data["Member data helpers<br/>[data.py]"]
  node_calls["Calls and signaling<br/>[calls.py]"]
end

subgraph group_domain["Platform domain"]
  node_domain_models[("Profiles and core records<br/>[models.py]")]
  node_ads_models[("Advertising records<br/>[models_ads.py]")]
  node_banner_models[("Banner records<br/>[models_banners.py]")]
  node_honeymoon_models[("Honeymoon records")]
  node_calls_models[("Call records<br/>[models_calls.py]")]
  node_core_views["Public site views<br/>[views.py]"]
end

subgraph group_commerce["Services and payments"]
  node_ads_views["Advert workflows<br/>[views_ads.py]"]
  node_honeymoon_views["Honeymoon workflows<br/>[views_honeymoon.py]"]
  node_payment["Pesapal payments<br/>[pesapal.py]"]
end

subgraph group_staff["Staff operations"]
  node_dashboard_views["Dashboard workflows<br/>[views.py]"]
  node_dashboard_resources["Managed resources<br/>[resources.py]"]
end

subgraph group_shared["Shared capabilities"]
  node_face_privacy["Face masking<br/>[faces.py]"]
  node_image_processing["Image processing<br/>[images.py]"]
  node_media_storage["Watermark storage<br/>[storage.py]"]
  node_site_context["Site context<br/>[context.py]"]
  node_language["Language helpers<br/>[lang.py]"]
  node_support["Support notifications<br/>[support.py]"]
end

node_visitor(("Member or visitor"))
node_external_payment{{"Pesapal service"}}

node_visitor -.->|"uses"| node_member_views
node_member_views -->|"uses"| node_member_forms
node_member_views -->|"uses"| node_member_data
node_member_views -->|"uses"| node_calls
node_member_views -->|"reads and writes"| node_domain_models
node_member_views -->|"imports"| node_core_views
node_member_forms -->|"uses"| node_face_privacy
node_member_forms -->|"uses"| node_domain_models
node_member_views -->|"refreshes payments"| node_payment
node_member_views -.->|"uses gateway"| node_external_payment
node_calls -->|"uses"| node_domain_models
node_calls -.->|"uses"| node_calls_models
node_core_views -.->|"uses"| node_domain_models
node_ads_views -.->|"uses"| node_ads_models
node_honeymoon_views -.->|"uses"| node_honeymoon_models
node_dashboard_views -->|"uses"| node_dashboard_resources
node_dashboard_views -->|"queries"| node_domain_models
node_dashboard_resources -->|"manages"| node_domain_models
node_dashboard_resources -->|"notifies"| node_support
node_dashboard_views -->|"counts orders"| node_ads_models
node_dashboard_views -->|"counts orders"| node_banner_models
node_domain_models -->|"uses"| node_image_processing
node_face_privacy -->|"uses"| node_image_processing
node_media_storage -->|"processes images"| node_image_processing
node_site_context -->|"loads site data"| node_domain_models
node_site_context -->|"builds login forms"| node_member_forms
node_language -->|"uses"| node_domain_models
node_payment -->|"uses"| node_domain_models

click node_member_views "https://github.com/barackwilliam/sakinah/blob/main/members/views.py"
click node_member_forms "https://github.com/barackwilliam/sakinah/blob/main/members/forms.py"
click node_member_data "https://github.com/barackwilliam/sakinah/blob/main/members/data.py"
click node_calls "https://github.com/barackwilliam/sakinah/blob/main/members/calls.py"
click node_domain_models "https://github.com/barackwilliam/sakinah/blob/main/core/models.py"
click node_ads_models "https://github.com/barackwilliam/sakinah/blob/main/core/models_ads.py"
click node_banner_models "https://github.com/barackwilliam/sakinah/blob/main/core/models_banners.py"
click node_honeymoon_models "https://github.com/barackwilliam/sakinah/blob/main/core/models_honeymoon.py"
click node_calls_models "https://github.com/barackwilliam/sakinah/blob/main/core/models_calls.py"
click node_core_views "https://github.com/barackwilliam/sakinah/blob/main/core/views.py"
click node_ads_views "https://github.com/barackwilliam/sakinah/blob/main/core/views_ads.py"
click node_honeymoon_views "https://github.com/barackwilliam/sakinah/blob/main/core/views_honeymoon.py"
click node_payment "https://github.com/barackwilliam/sakinah/blob/main/core/pesapal.py"
click node_dashboard_views "https://github.com/barackwilliam/sakinah/blob/main/dashboard/views.py"
click node_dashboard_resources "https://github.com/barackwilliam/sakinah/blob/main/dashboard/resources.py"
click node_face_privacy "https://github.com/barackwilliam/sakinah/blob/main/core/faces.py"
click node_image_processing "https://github.com/barackwilliam/sakinah/blob/main/core/images.py"
click node_media_storage "https://github.com/barackwilliam/sakinah/blob/main/core/storage.py"
click node_site_context "https://github.com/barackwilliam/sakinah/blob/main/core/context.py"
click node_language "https://github.com/barackwilliam/sakinah/blob/main/core/lang.py"
click node_support "https://github.com/barackwilliam/sakinah/blob/main/core/support.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_member_views,node_member_forms,node_member_data,node_calls toneBlue
class node_domain_models,node_ads_models,node_banner_models,node_honeymoon_models,node_calls_models,node_core_views toneAmber
class node_ads_views,node_honeymoon_views,node_payment toneMint
class node_dashboard_views,node_dashboard_resources toneRose
class node_face_privacy,node_image_processing,node_media_storage,node_site_context,node_language,node_support,node_visitor,node_external_payment toneIndigo
```

## Components

### Member experience

- [Member workflows](https://github.com/barackwilliam/sakinah/blob/main/members/views.py): `members/views.py`
- [Member forms](https://github.com/barackwilliam/sakinah/blob/main/members/forms.py): `members/forms.py`
- [Member data helpers](https://github.com/barackwilliam/sakinah/blob/main/members/data.py): `members/data.py`
- [Calls and signaling](https://github.com/barackwilliam/sakinah/blob/main/members/calls.py): `members/calls.py`

### Platform domain

- [Profiles and core records](https://github.com/barackwilliam/sakinah/blob/main/core/models.py): `core/models.py`
- [Advertising records](https://github.com/barackwilliam/sakinah/blob/main/core/models_ads.py): `core/models_ads.py`
- [Banner records](https://github.com/barackwilliam/sakinah/blob/main/core/models_banners.py): `core/models_banners.py`
- [Honeymoon records](https://github.com/barackwilliam/sakinah/blob/main/core/models_honeymoon.py): `core/models_honeymoon.py`
- [Call records](https://github.com/barackwilliam/sakinah/blob/main/core/models_calls.py): `core/models_calls.py`
- [Public site views](https://github.com/barackwilliam/sakinah/blob/main/core/views.py): `core/views.py`

### Services and payments

- [Advert workflows](https://github.com/barackwilliam/sakinah/blob/main/core/views_ads.py): `core/views_ads.py`
- [Honeymoon workflows](https://github.com/barackwilliam/sakinah/blob/main/core/views_honeymoon.py): `core/views_honeymoon.py`
- [Pesapal payments](https://github.com/barackwilliam/sakinah/blob/main/core/pesapal.py): `core/pesapal.py`

### Staff operations

- [Dashboard workflows](https://github.com/barackwilliam/sakinah/blob/main/dashboard/views.py): `dashboard/views.py`
- [Managed resources](https://github.com/barackwilliam/sakinah/blob/main/dashboard/resources.py): `dashboard/resources.py`

### Shared capabilities

- [Face masking](https://github.com/barackwilliam/sakinah/blob/main/core/faces.py): `core/faces.py`
- [Image processing](https://github.com/barackwilliam/sakinah/blob/main/core/images.py): `core/images.py`
- [Watermark storage](https://github.com/barackwilliam/sakinah/blob/main/core/storage.py): `core/storage.py`
- [Site context](https://github.com/barackwilliam/sakinah/blob/main/core/context.py): `core/context.py`
- [Language helpers](https://github.com/barackwilliam/sakinah/blob/main/core/lang.py): `core/lang.py`
- [Support notifications](https://github.com/barackwilliam/sakinah/blob/main/core/support.py): `core/support.py`

### Other components

- **Member or visitor**
- **Pesapal service**

## Connections

- Member or visitor → Member workflows: uses
- Member workflows → Member forms: uses (evidence: `members/views.py`)
- Member workflows → Member data helpers: uses (evidence: `members/views.py`)
- Member workflows → Calls and signaling: uses (evidence: `members/views.py`)
- Member workflows → Profiles and core records: reads and writes (evidence: `members/views.py`)
- Member workflows → Public site views: imports (evidence: `members/views.py`)
- Member forms → Face masking: uses (evidence: `members/forms.py`)
- Member forms → Profiles and core records: uses (evidence: `members/forms.py`)
- Member workflows → Pesapal payments: refreshes payments (evidence: `members/views.py`)
- Member workflows → Pesapal service: uses gateway
- Calls and signaling → Profiles and core records: uses (evidence: `members/calls.py`)
- Calls and signaling → Call records: uses
- Public site views → Profiles and core records: uses
- Advert workflows → Advertising records: uses
- Honeymoon workflows → Honeymoon records: uses
- Dashboard workflows → Managed resources: uses (evidence: `dashboard/views.py`)
- Dashboard workflows → Profiles and core records: queries (evidence: `dashboard/views.py`)
- Managed resources → Profiles and core records: manages (evidence: `dashboard/resources.py`)
- Managed resources → Support notifications: notifies (evidence: `dashboard/resources.py`)
- Dashboard workflows → Advertising records: counts orders (evidence: `dashboard/views.py`)
- Dashboard workflows → Banner records: counts orders (evidence: `dashboard/views.py`)
- Profiles and core records → Image processing: uses (evidence: `core/models.py`)
- Face masking → Image processing: uses (evidence: `core/faces.py`)
- Watermark storage → Image processing: processes images (evidence: `core/storage.py`)
- Site context → Profiles and core records: loads site data (evidence: `core/context.py`)
- Site context → Member forms: builds login forms (evidence: `core/context.py`)
- Language helpers → Profiles and core records: uses (evidence: `core/lang.py`)
- Pesapal payments → Profiles and core records: uses (evidence: `core/pesapal.py`)
