# 5a3/wasl architecture

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

- Interactive diagram: https://gitdiagram.com/5a3/wasl
- Repository: https://github.com/5a3/wasl

## Overview

The tree shows a Flutter app with customer and admin areas, shared domain models, and core services. The README provides no product-specific workflow or capability descriptions, and no Dart source was excerpted or indexed, so the internal runtime calls and data flow cannot be verified. The diagram therefore shows the app areas and shared layers without asserting connections between them; dashed links from users indicate only the likely entry into those areas.

Main entry points: [`lib/customer_app/views`](https://github.com/5a3/wasl/tree/main/lib/customer_app/views) (Customer screens), [`lib/admin_app/views`](https://github.com/5a3/wasl/tree/main/lib/admin_app/views) (Admin screens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer app"]
  node_customer_ui["Customer screens"]
  node_customer_state["Customer providers"]
end

subgraph group_admin["Admin app"]
  node_admin_ui["Admin screens"]
  node_admin_state["Admin providers"]
end

subgraph group_domain["Shared domain"]
  node_products["Products<br/>[product_model.dart]"]
  node_categories["Categories"]
  node_orders["Orders<br/>[order_model.dart]"]
  node_users["User accounts<br/>[user_model.dart]"]
  node_admins["Admin accounts<br/>[admin_model.dart]"]
  node_delivery_zones["Delivery zones"]
end

subgraph group_core["Core services"]
  node_connectivity["Connectivity"]
  node_storage["Storage"]
  node_theme["Theme state"]
end

node_customer_user(("Customer"))
node_admin_user(("Administrator"))
node_entry["Flutter entry<br/>[main.dart]"]

node_customer_user -.->|"uses"| node_customer_ui
node_admin_user -.->|"uses"| node_admin_ui

click node_entry "https://github.com/5a3/wasl/blob/main/lib/main.dart"
click node_customer_ui "https://github.com/5a3/wasl/tree/main/lib/customer_app/views"
click node_customer_state "https://github.com/5a3/wasl/tree/main/lib/customer_app/providers"
click node_admin_ui "https://github.com/5a3/wasl/tree/main/lib/admin_app/views"
click node_admin_state "https://github.com/5a3/wasl/tree/main/lib/admin_app/providers"
click node_products "https://github.com/5a3/wasl/blob/main/lib/shared/models/product_model.dart"
click node_categories "https://github.com/5a3/wasl/blob/main/lib/shared/models/category_model.dart"
click node_orders "https://github.com/5a3/wasl/blob/main/lib/shared/models/order_model.dart"
click node_users "https://github.com/5a3/wasl/blob/main/lib/shared/models/user_model.dart"
click node_admins "https://github.com/5a3/wasl/blob/main/lib/shared/models/admin_model.dart"
click node_delivery_zones "https://github.com/5a3/wasl/blob/main/lib/shared/models/delivery_zone_model.dart"
click node_connectivity "https://github.com/5a3/wasl/blob/main/lib/core/services/connectivity_service.dart"
click node_storage "https://github.com/5a3/wasl/blob/main/lib/core/services/storage_service.dart"
click node_theme "https://github.com/5a3/wasl/blob/main/lib/core/theme/theme_provider.dart"

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_customer_ui,node_customer_state toneBlue
class node_admin_ui,node_admin_state toneAmber
class node_products,node_categories,node_orders,node_users,node_admins,node_delivery_zones toneMint
class node_connectivity,node_storage,node_theme toneRose
class node_customer_user,node_admin_user toneIndigo
class node_entry toneTeal
```

## Components

### Customer app

- [Customer screens](https://github.com/5a3/wasl/tree/main/lib/customer_app/views): `lib/customer_app/views`
- [Customer providers](https://github.com/5a3/wasl/tree/main/lib/customer_app/providers): `lib/customer_app/providers`

### Admin app

- [Admin screens](https://github.com/5a3/wasl/tree/main/lib/admin_app/views): `lib/admin_app/views`
- [Admin providers](https://github.com/5a3/wasl/tree/main/lib/admin_app/providers): `lib/admin_app/providers`

### Shared domain

- [Products](https://github.com/5a3/wasl/blob/main/lib/shared/models/product_model.dart): `lib/shared/models/product_model.dart`
- [Categories](https://github.com/5a3/wasl/blob/main/lib/shared/models/category_model.dart): `lib/shared/models/category_model.dart`
- [Orders](https://github.com/5a3/wasl/blob/main/lib/shared/models/order_model.dart): `lib/shared/models/order_model.dart`
- [User accounts](https://github.com/5a3/wasl/blob/main/lib/shared/models/user_model.dart): `lib/shared/models/user_model.dart`
- [Admin accounts](https://github.com/5a3/wasl/blob/main/lib/shared/models/admin_model.dart): `lib/shared/models/admin_model.dart`
- [Delivery zones](https://github.com/5a3/wasl/blob/main/lib/shared/models/delivery_zone_model.dart): `lib/shared/models/delivery_zone_model.dart`

### Core services

- [Connectivity](https://github.com/5a3/wasl/blob/main/lib/core/services/connectivity_service.dart): `lib/core/services/connectivity_service.dart`
- [Storage](https://github.com/5a3/wasl/blob/main/lib/core/services/storage_service.dart): `lib/core/services/storage_service.dart`
- [Theme state](https://github.com/5a3/wasl/blob/main/lib/core/theme/theme_provider.dart): `lib/core/theme/theme_provider.dart`

### Other components

- **Customer**
- **Administrator**
- [Flutter entry](https://github.com/5a3/wasl/blob/main/lib/main.dart): `lib/main.dart`

## Connections

- Customer → Customer screens: uses
- Administrator → Admin screens: uses
