# syedkazimm/basera architecture

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

- Interactive diagram: https://gitdiagram.com/syedkazimm/basera
- Repository: https://github.com/syedkazimm/basera

## Overview

Basera is a Django marketplace for native plants, with customer grow-profile matching and cash-on-delivery orders, plus seller listing, fulfillment, and stock-alert workflows. The graph preserves the major domain stages and core modules identified by the source index. Several view and routing files were not excerpted; actor entry points and those route relationships are therefore omitted rather than inferred. Dashed actor links indicate the expected user interaction, not a verified route.

Main entry points: [`catalog/seller_views.py`](https://github.com/syedkazimm/basera/blob/main/catalog/seller_views.py) (Seller listings), [`growprofiles/views.py`](https://github.com/syedkazimm/basera/blob/main/growprofiles/views.py) (Grow profiles), [`orders/views.py`](https://github.com/syedkazimm/basera/blob/main/orders/views.py) (Cart and checkout), [`catalog/models.py`](https://github.com/syedkazimm/basera/blob/main/catalog/models.py) (Plants and regions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts and pages"]
  node_account_views["Account pages<br/>[views.py]"]
  node_account_models[("User accounts<br/>[models.py]")]
  node_page_ui["Page utilities<br/>[ui.py]"]
end

subgraph group_catalog["Plant catalog"]
  node_catalog_views["Public catalog<br/>[views.py]"]
  node_seller_catalog["Seller listings<br/>[seller_views.py]"]
  node_catalog_forms["Listing forms<br/>[forms.py]"]
  node_catalog_queries["Visibility queries<br/>[queries.py]"]
  node_catalog_models[("Plants and regions<br/>[models.py]")]
  node_catalog_seed["Catalog seed data<br/>[seed_data.py]"]
end

subgraph group_matching["Grow matching"]
  node_profile_views["Grow profiles<br/>[views.py]"]
  node_profile_forms["Profile forms<br/>[forms.py]"]
  node_profile_choices["Profile vocabulary<br/>[choices.py]"]
  node_profile_models[("Saved profiles<br/>[models.py]")]
  node_match_service["Match scoring<br/>[services.py]"]
  node_match_vocabulary["Plant vocabulary<br/>[vocabulary.py]"]
end

subgraph group_commerce["Orders and fulfillment"]
  node_order_views["Cart and checkout<br/>[views.py]"]
  node_order_forms["Order forms<br/>[forms.py]"]
  node_order_models[("Carts and orders<br/>[models.py]")]
  node_seller_orders["Seller fulfillment<br/>[seller_views.py]"]
end

subgraph group_alerts["Seller alerts"]
  node_notifications_service["Low-stock checks<br/>[low_stock.py]"]
  node_notification_models[("Alert preferences<br/>[models.py]")]
  node_email_service["Email delivery"]
end

node_customer(("Customer"))
node_seller(("Seller"))
node_admin(("Administrator"))

node_customer -.->|"uses"| node_account_views
node_seller -.->|"uses"| node_account_views
node_admin -.->|"uses"| node_account_views
node_seller -.->|"manages listings"| node_seller_catalog
node_customer -.->|"browses"| node_catalog_views
node_customer -.->|"saves profile"| node_profile_views
node_customer -.->|"checks out"| node_order_views
node_account_views -.->|"uses accounts"| node_account_models
node_seller_catalog -->|"uses forms"| node_catalog_forms
node_seller_catalog -->|"updates listings"| node_catalog_models
node_seller_catalog -->|"queries listings"| node_catalog_queries
node_seller_catalog -->|"uses page helpers"| node_page_ui
node_seller_catalog -->|"checks stock"| node_notifications_service
node_catalog_queries -->|"filters"| node_catalog_models
node_catalog_views -.->|"queries listings"| node_catalog_queries
node_profile_views -->|"uses forms"| node_profile_forms
node_profile_views -->|"saves profiles"| node_profile_models
node_profile_views -->|"formats answers"| node_profile_choices
node_profile_views -->|"requests matches"| node_match_service
node_profile_views -->|"uses page helpers"| node_page_ui
node_profile_forms -->|"validates profiles"| node_profile_models
node_profile_forms -->|"uses choices"| node_profile_choices
node_match_service -->|"scores species"| node_catalog_models
node_match_service -->|"gets candidates"| node_catalog_queries
node_match_service -->|"labels criteria"| node_profile_choices
node_match_service -->|"interprets traits"| node_match_vocabulary
node_order_views -->|"validates checkout"| node_order_forms
node_order_views -->|"creates orders"| node_order_models
node_order_views -->|"checks stock"| node_catalog_models
node_order_views -->|"loads profile"| node_profile_models
node_order_views -->|"checks stock"| node_notifications_service
node_order_forms -->|"validates order data"| node_order_models
node_order_forms -->|"uses plant data"| node_catalog_models
node_seller_orders -.->|"manages orders"| node_order_models
node_notifications_service -->|"reads stock"| node_catalog_models
node_notifications_service -->|"records alerts"| node_notification_models
node_notifications_service -->|"sends email"| node_email_service
node_catalog_seed -.->|"defines catalog data"| node_catalog_models

click node_account_views "https://github.com/syedkazimm/basera/blob/main/accounts/views.py"
click node_account_models "https://github.com/syedkazimm/basera/blob/main/accounts/models.py"
click node_page_ui "https://github.com/syedkazimm/basera/blob/main/accounts/ui.py"
click node_catalog_views "https://github.com/syedkazimm/basera/blob/main/catalog/views.py"
click node_seller_catalog "https://github.com/syedkazimm/basera/blob/main/catalog/seller_views.py"
click node_catalog_forms "https://github.com/syedkazimm/basera/blob/main/catalog/forms.py"
click node_catalog_queries "https://github.com/syedkazimm/basera/blob/main/catalog/queries.py"
click node_catalog_models "https://github.com/syedkazimm/basera/blob/main/catalog/models.py"
click node_catalog_seed "https://github.com/syedkazimm/basera/blob/main/catalog/seed_data.py"
click node_profile_views "https://github.com/syedkazimm/basera/blob/main/growprofiles/views.py"
click node_profile_forms "https://github.com/syedkazimm/basera/blob/main/growprofiles/forms.py"
click node_profile_choices "https://github.com/syedkazimm/basera/blob/main/growprofiles/choices.py"
click node_profile_models "https://github.com/syedkazimm/basera/blob/main/growprofiles/models.py"
click node_match_service "https://github.com/syedkazimm/basera/blob/main/matching/services.py"
click node_match_vocabulary "https://github.com/syedkazimm/basera/blob/main/matching/vocabulary.py"
click node_order_views "https://github.com/syedkazimm/basera/blob/main/orders/views.py"
click node_order_forms "https://github.com/syedkazimm/basera/blob/main/orders/forms.py"
click node_order_models "https://github.com/syedkazimm/basera/blob/main/orders/models.py"
click node_seller_orders "https://github.com/syedkazimm/basera/blob/main/orders/seller_views.py"
click node_notifications_service "https://github.com/syedkazimm/basera/blob/main/notifications/low_stock.py"
click node_notification_models "https://github.com/syedkazimm/basera/blob/main/notifications/models.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_account_views,node_account_models,node_page_ui toneBlue
class node_catalog_views,node_seller_catalog,node_catalog_forms,node_catalog_queries,node_catalog_models,node_catalog_seed toneAmber
class node_profile_views,node_profile_forms,node_profile_choices,node_profile_models,node_match_service,node_match_vocabulary toneMint
class node_order_views,node_order_forms,node_order_models,node_seller_orders toneRose
class node_notifications_service,node_notification_models,node_email_service,node_customer,node_seller,node_admin toneIndigo
```

## Components

### Accounts and pages

- [Account pages](https://github.com/syedkazimm/basera/blob/main/accounts/views.py): `accounts/views.py`
- [User accounts](https://github.com/syedkazimm/basera/blob/main/accounts/models.py): `accounts/models.py`
- [Page utilities](https://github.com/syedkazimm/basera/blob/main/accounts/ui.py): `accounts/ui.py`

### Plant catalog

- [Public catalog](https://github.com/syedkazimm/basera/blob/main/catalog/views.py): `catalog/views.py`
- [Seller listings](https://github.com/syedkazimm/basera/blob/main/catalog/seller_views.py): `catalog/seller_views.py`
- [Listing forms](https://github.com/syedkazimm/basera/blob/main/catalog/forms.py): `catalog/forms.py`
- [Visibility queries](https://github.com/syedkazimm/basera/blob/main/catalog/queries.py): `catalog/queries.py`
- [Plants and regions](https://github.com/syedkazimm/basera/blob/main/catalog/models.py): `catalog/models.py`
- [Catalog seed data](https://github.com/syedkazimm/basera/blob/main/catalog/seed_data.py): `catalog/seed_data.py`

### Grow matching

- [Grow profiles](https://github.com/syedkazimm/basera/blob/main/growprofiles/views.py): `growprofiles/views.py`
- [Profile forms](https://github.com/syedkazimm/basera/blob/main/growprofiles/forms.py): `growprofiles/forms.py`
- [Profile vocabulary](https://github.com/syedkazimm/basera/blob/main/growprofiles/choices.py): `growprofiles/choices.py`
- [Saved profiles](https://github.com/syedkazimm/basera/blob/main/growprofiles/models.py): `growprofiles/models.py`
- [Match scoring](https://github.com/syedkazimm/basera/blob/main/matching/services.py): `matching/services.py`
- [Plant vocabulary](https://github.com/syedkazimm/basera/blob/main/matching/vocabulary.py): `matching/vocabulary.py`

### Orders and fulfillment

- [Cart and checkout](https://github.com/syedkazimm/basera/blob/main/orders/views.py): `orders/views.py`
- [Order forms](https://github.com/syedkazimm/basera/blob/main/orders/forms.py): `orders/forms.py`
- [Carts and orders](https://github.com/syedkazimm/basera/blob/main/orders/models.py): `orders/models.py`
- [Seller fulfillment](https://github.com/syedkazimm/basera/blob/main/orders/seller_views.py): `orders/seller_views.py`

### Seller alerts

- [Low-stock checks](https://github.com/syedkazimm/basera/blob/main/notifications/low_stock.py): `notifications/low_stock.py`
- [Alert preferences](https://github.com/syedkazimm/basera/blob/main/notifications/models.py): `notifications/models.py`
- **Email delivery**

### Other components

- **Customer**
- **Seller**
- **Administrator**

## Connections

- Customer → Account pages: uses
- Seller → Account pages: uses
- Administrator → Account pages: uses
- Seller → Seller listings: manages listings
- Customer → Public catalog: browses
- Customer → Grow profiles: saves profile
- Customer → Cart and checkout: checks out
- Account pages → User accounts: uses accounts
- Seller listings → Listing forms: uses forms (evidence: `catalog/seller_views.py`)
- Seller listings → Plants and regions: updates listings (evidence: `catalog/seller_views.py`)
- Seller listings → Visibility queries: queries listings (evidence: `catalog/seller_views.py`)
- Seller listings → Page utilities: uses page helpers (evidence: `catalog/seller_views.py`)
- Seller listings → Low-stock checks: checks stock (evidence: `catalog/seller_views.py`)
- Visibility queries → Plants and regions: filters (evidence: `catalog/queries.py`)
- Public catalog → Visibility queries: queries listings
- Grow profiles → Profile forms: uses forms (evidence: `growprofiles/views.py`)
- Grow profiles → Saved profiles: saves profiles (evidence: `growprofiles/views.py`)
- Grow profiles → Profile vocabulary: formats answers (evidence: `growprofiles/views.py`)
- Grow profiles → Match scoring: requests matches (evidence: `growprofiles/views.py`)
- Grow profiles → Page utilities: uses page helpers (evidence: `growprofiles/views.py`)
- Profile forms → Saved profiles: validates profiles (evidence: `growprofiles/forms.py`)
- Profile forms → Profile vocabulary: uses choices (evidence: `growprofiles/forms.py`)
- Match scoring → Plants and regions: scores species (evidence: `matching/services.py`)
- Match scoring → Visibility queries: gets candidates (evidence: `matching/services.py`)
- Match scoring → Profile vocabulary: labels criteria (evidence: `matching/services.py`)
- Match scoring → Plant vocabulary: interprets traits (evidence: `matching/services.py`)
- Cart and checkout → Order forms: validates checkout (evidence: `orders/views.py`)
- Cart and checkout → Carts and orders: creates orders (evidence: `orders/views.py`)
- Cart and checkout → Plants and regions: checks stock (evidence: `orders/views.py`)
- Cart and checkout → Saved profiles: loads profile (evidence: `orders/views.py`)
- Cart and checkout → Low-stock checks: checks stock (evidence: `orders/views.py`)
- Order forms → Carts and orders: validates order data (evidence: `orders/forms.py`)
- Order forms → Plants and regions: uses plant data (evidence: `orders/forms.py`)
- Seller fulfillment → Carts and orders: manages orders
- Low-stock checks → Plants and regions: reads stock (evidence: `notifications/low_stock.py`)
- Low-stock checks → Alert preferences: records alerts (evidence: `notifications/low_stock.py`)
- Low-stock checks → Email delivery: sends email (evidence: `notifications/low_stock.py`)
- Catalog seed data → Plants and regions: defines catalog data
