# kakhamek/batumi-parking-chrome-extension architecture

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

- Interactive diagram: https://gitdiagram.com/kakhamek/batumi-parking-chrome-extension
- Repository: https://github.com/kakhamek/batumi-parking-chrome-extension

## Overview

This small Chrome extension lets a user save a vehicle registration number, then looks up and displays its Batumi parking payment when the popup opens. The options script and popup script each access synced Chrome storage; the popup script also calls the Batumi Transport API and renders the response. The background script contains only an empty installation listener, so it is not a meaningful workflow component. The README documents the user workflow; source evidence is limited to the provided excerpts.

Main entry points: [`popup.js`](https://github.com/kakhamek/batumi-parking-chrome-extension/blob/main/popup.js) (Fetch and display payment), [`options.js`](https://github.com/kakhamek/batumi-parking-chrome-extension/blob/main/options.js) (Save plate)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_settings["Vehicle settings"]
  node_settings_ui["Save plate<br/>[options.js]"]
end

subgraph group_lookup["Payment lookup"]
  node_payment_lookup["Fetch and display payment<br/>[popup.js]"]
end

node_user(("User"))
node_sync_storage[("Synced storage")]
node_batumi_api["Batumi Transport API"]

node_user -->|"enters plate"| node_settings_ui
node_settings_ui -->|"saves plate"| node_sync_storage
node_user -->|"opens popup"| node_payment_lookup
node_payment_lookup -->|"reads plate"| node_sync_storage
node_payment_lookup -->|"requests payment"| node_batumi_api

click node_settings_ui "https://github.com/kakhamek/batumi-parking-chrome-extension/blob/main/options.js"
click node_payment_lookup "https://github.com/kakhamek/batumi-parking-chrome-extension/blob/main/popup.js"

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_settings_ui,node_user toneBlue
class node_payment_lookup,node_sync_storage toneAmber
class node_batumi_api toneMint
```

## Components

### Vehicle settings

- [Save plate](https://github.com/kakhamek/batumi-parking-chrome-extension/blob/main/options.js): `options.js`

### Payment lookup

- [Fetch and display payment](https://github.com/kakhamek/batumi-parking-chrome-extension/blob/main/popup.js): `popup.js`

### Other components

- **User**
- **Synced storage**
- **Batumi Transport API**

## Connections

- User → Save plate: enters plate (evidence: `readme.md`)
- Save plate → Synced storage: saves plate (evidence: `options.js`)
- User → Fetch and display payment: opens popup (evidence: `readme.md`)
- Fetch and display payment → Synced storage: reads plate (evidence: `popup.js`)
- Fetch and display payment → Batumi Transport API: requests payment (evidence: `popup.js`)
