# dzeiii/jusko-pos architecture

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

- Interactive diagram: https://gitdiagram.com/dzeiii/jusko-pos
- Repository: https://github.com/dzeiii/jusko-pos

## Overview

Gulps & Grubs POS is a Streamlit point-of-sale application with Admin, Cashier, and Inventory Manager workspaces. Its user workflow covers product and stock management, building a size/customization-aware cart, checkout, pickup-queue handling, and sales and activity review. The main app coordinates the UI and persistence through a SQLite layer; a separate module supplies the cart and other manual data structures. The README is empty, so capabilities are taken from the navigation and sampled code. Unsampled sections limit detail about their internal calls.

Main entry points: [`gulps_grubs_pos/app.py`](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py) (Streamlit POS app), [`gulps_grubs_pos/database.py`](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/database.py) (SQLite persistence), [`gulps_grubs_pos/data_structures.py`](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/data_structures.py) (Cart structures)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspaces["POS Workspaces"]
  node_pos_app["Streamlit POS app<br/>[app.py]"]
  node_catalog["Product management<br/>[app.py]"]
  node_inventory["Inventory management<br/>[app.py]"]
  node_checkout["Sales and checkout<br/>[app.py]"]
  node_pickup_queue["Pickup queue<br/>[app.py]"]
  node_sales_history["Sales history<br/>[app.py]"]
  node_activity_history["Activity history<br/>[app.py]"]
end

subgraph group_runtime["Runtime Logic"]
  node_cart_structures["Cart structures<br/>[data_structures.py]"]
  node_index_and_queue["Index and priority structures<br/>[data_structures.py]"]
end

subgraph group_persistence["Persistence"]
  node_db_module["SQLite persistence<br/>[database.py]"]
  node_sqlite_store[("SQLite database")]
end

node_staff(("POS staff"))

node_staff -->|"uses"| node_pos_app
node_pos_app -->|"queries and updates"| node_db_module
node_pos_app -->|"uses cart"| node_cart_structures
node_db_module -->|"reads and writes"| node_sqlite_store

click node_pos_app "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_catalog "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_inventory "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_checkout "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_pickup_queue "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_sales_history "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_activity_history "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py"
click node_cart_structures "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/data_structures.py"
click node_index_and_queue "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/data_structures.py"
click node_db_module "https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/database.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_pos_app,node_catalog,node_inventory,node_checkout,node_pickup_queue,node_sales_history,node_activity_history toneBlue
class node_cart_structures,node_index_and_queue toneAmber
class node_db_module,node_sqlite_store toneMint
class node_staff toneIndigo
```

## Components

### POS Workspaces

- [Streamlit POS app](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`
- [Product management](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`
- [Inventory management](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`
- [Sales and checkout](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`
- [Pickup queue](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`
- [Sales history](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`
- [Activity history](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/app.py): `gulps_grubs_pos/app.py`

### Runtime Logic

- [Cart structures](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/data_structures.py): `gulps_grubs_pos/data_structures.py`
- [Index and priority structures](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/data_structures.py): `gulps_grubs_pos/data_structures.py`

### Persistence

- [SQLite persistence](https://github.com/dzeiii/jusko-pos/blob/main/gulps_grubs_pos/database.py): `gulps_grubs_pos/database.py`
- **SQLite database**

### Other components

- **POS staff**

## Connections

- POS staff → Streamlit POS app: uses (evidence: `gulps_grubs_pos/app.py`)
- Streamlit POS app → SQLite persistence: queries and updates (evidence: `gulps_grubs_pos/app.py`)
- Streamlit POS app → Cart structures: uses cart (evidence: `gulps_grubs_pos/app.py`)
- SQLite persistence → SQLite database: reads and writes (evidence: `gulps_grubs_pos/database.py`)
