# anacristinaargueta/paqueoexpress architecture

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

- Interactive diagram: https://gitdiagram.com/anacristinaargueta/paqueoexpress
- Repository: https://github.com/anacristinaargueta/paqueoexpress

## Overview

ParqueoExpress is a browser-based parking-management app. A parking attendant records vehicle entry, releases a vehicle with or without payment, and manages parking spaces; the app updates its views and saves the resulting state locally. The main controller also loads initial data from a JSON file. Core logic for validating entries, exits, fees, and space administration is separate from the UI. The excerpts show these runtime links; other README capabilities are represented where documented, but unsampled implementation details are not inferred.

Main entry points: [`src/main.ts`](https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/main.ts) (UI and workflow), [`src/parqueo.ts`](https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/parqueo.ts) (Parking rules), [`src/types.ts`](https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/types.ts) (Parking data types), [`data/espacios.json`](https://github.com/anacristinaargueta/paqueoexpress/blob/main/data/espacios.json) (Initial spaces)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Browser application"]
  node_controller["UI and workflow<br/>[main.ts]"]
end

subgraph group_domain["Parking operations"]
  node_parking_logic["Parking rules<br/>[parqueo.ts]"]
  node_data_types["Parking data types<br/>[types.ts]"]
end

subgraph group_persistence["Local data"]
  node_browser_storage[("Browser storage")]
  node_initial_data["Initial spaces<br/>[espacios.json]"]
end

node_attendant(("Parking attendant"))

node_attendant -->|"uses"| node_controller
node_controller -->|"calls operations"| node_parking_logic
node_controller -->|"reads and saves"| node_browser_storage
node_controller -->|"loads fallback"| node_initial_data
node_controller -->|"uses types"| node_data_types
node_parking_logic -->|"uses types"| node_data_types

click node_controller "https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/main.ts"
click node_parking_logic "https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/parqueo.ts"
click node_data_types "https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/types.ts"
click node_initial_data "https://github.com/anacristinaargueta/paqueoexpress/blob/main/data/espacios.json"

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_controller toneBlue
class node_parking_logic,node_data_types toneAmber
class node_browser_storage,node_initial_data toneMint
class node_attendant toneIndigo
```

## Components

### Browser application

- [UI and workflow](https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/main.ts): `src/main.ts`

### Parking operations

- [Parking rules](https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/parqueo.ts): `src/parqueo.ts`
- [Parking data types](https://github.com/anacristinaargueta/paqueoexpress/blob/main/src/types.ts): `src/types.ts`

### Local data

- **Browser storage**
- [Initial spaces](https://github.com/anacristinaargueta/paqueoexpress/blob/main/data/espacios.json): `data/espacios.json`

### Other components

- **Parking attendant**

## Connections

- Parking attendant → UI and workflow: uses (evidence: `src/main.ts`)
- UI and workflow → Parking rules: calls operations (evidence: `src/main.ts`)
- UI and workflow → Browser storage: reads and saves (evidence: `src/main.ts`)
- UI and workflow → Initial spaces: loads fallback (evidence: `src/main.ts`)
- UI and workflow → Parking data types: uses types (evidence: `src/main.ts`)
- Parking rules → Parking data types: uses types (evidence: `src/parqueo.ts`)
