# malorian-arms3516/blacklisted architecture

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

- Interactive diagram: https://gitdiagram.com/malorian-arms3516/blacklisted
- Repository: https://github.com/malorian-arms3516/blacklisted

## Overview

Blacklisted is a Flask information directory for vehicle and blacklist-racer records from Need for Speed: Most Wanted. Visitors browse vehicle and racer listings and detail pages; authenticated administrators can add or delete records. The application keeps both collections in JSON files and renders HTML templates. The source excerpt shows route handlers, storage calls, and template rendering in one Python file, so the graph separates those responsibilities while retaining their shared implementation path. The README also mentions future modding and addon-car plans, which are not current runtime subsystems.

Main entry points: [`mainprog.py`](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py) (Flask routes), [`blacklisted-data/cars.json`](https://github.com/malorian-arms3516/blacklisted/blob/main/blacklisted-data/cars.json) (Vehicle records), [`blacklisted-data/racers.json`](https://github.com/malorian-arms3516/blacklisted/blob/main/blacklisted-data/racers.json) (Racer records), [`templates-web/index.html`](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/index.html) (Home view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Public directory"]
  node_routes["Flask routes<br/>[mainprog.py]"]
  node_car_catalog["Vehicle catalog<br/>[mainprog.py]"]
  node_car_detail["Vehicle details<br/>[mainprog.py]"]
  node_racer_catalog["Racer directory<br/>[mainprog.py]"]
  node_racer_detail["Racer details<br/>[mainprog.py]"]
end

subgraph group_admin["Administration"]
  node_auth["Admin authentication<br/>[mainprog.py]"]
  node_car_admin["Vehicle management<br/>[mainprog.py]"]
  node_racer_admin["Racer management<br/>[mainprog.py]"]
end

subgraph group_data["Directory data"]
  node_cars_json[("Vehicle records<br/>[cars.json]")]
  node_racers_json[("Racer records<br/>[racers.json]")]
end

subgraph group_presentation["Web presentation"]
  node_index_view["Home view<br/>[index.html]"]
  node_database_view["Vehicle list view<br/>[database.html]"]
  node_detail_view["Vehicle detail view<br/>[detail.html]"]
  node_racers_view["Racer list view<br/>[racers.html]"]
  node_racer_detail_view["Racer detail view<br/>[racer_detail.html]"]
  node_login_view["Login view<br/>[login.html]"]
  node_add_view["Vehicle entry form<br/>[add.html]"]
  node_add_racer_view["Racer entry form<br/>[add_racer.html]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests pages"| node_routes
node_routes -->|"handles listing"| node_car_catalog
node_routes -->|"handles detail"| node_car_detail
node_routes -->|"handles listing"| node_racer_catalog
node_routes -->|"handles detail"| node_racer_detail
node_routes -->|"handles login"| node_auth
node_routes -->|"handles edits"| node_car_admin
node_routes -->|"handles edits"| node_racer_admin
node_car_catalog -->|"reads"| node_cars_json
node_car_detail -->|"reads"| node_cars_json
node_racer_catalog -->|"reads"| node_racers_json
node_racer_detail -->|"reads"| node_racers_json
node_car_admin -->|"reads and writes"| node_cars_json
node_racer_admin -->|"reads and writes"| node_racers_json
node_car_catalog -->|"renders"| node_index_view
node_car_catalog -->|"renders"| node_database_view
node_car_detail -->|"renders"| node_detail_view
node_racer_catalog -->|"renders"| node_racers_view
node_racer_detail -->|"renders"| node_racer_detail_view
node_auth -->|"renders"| node_login_view
node_car_admin -->|"renders"| node_add_view
node_racer_admin -->|"renders"| node_add_racer_view

click node_routes "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_car_catalog "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_car_detail "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_racer_catalog "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_racer_detail "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_auth "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_car_admin "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_racer_admin "https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py"
click node_cars_json "https://github.com/malorian-arms3516/blacklisted/blob/main/blacklisted-data/cars.json"
click node_racers_json "https://github.com/malorian-arms3516/blacklisted/blob/main/blacklisted-data/racers.json"
click node_index_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/index.html"
click node_database_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/database.html"
click node_detail_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/detail.html"
click node_racers_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/racers.html"
click node_racer_detail_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/racer_detail.html"
click node_login_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/login.html"
click node_add_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/add.html"
click node_add_racer_view "https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/add_racer.html"

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_routes,node_car_catalog,node_car_detail,node_racer_catalog,node_racer_detail toneBlue
class node_auth,node_car_admin,node_racer_admin toneAmber
class node_cars_json,node_racers_json toneMint
class node_index_view,node_database_view,node_detail_view,node_racers_view,node_racer_detail_view,node_login_view,node_add_view,node_add_racer_view toneRose
class node_visitor toneIndigo
```

## Components

### Public directory

- [Flask routes](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`
- [Vehicle catalog](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`
- [Vehicle details](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`
- [Racer directory](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`
- [Racer details](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`

### Administration

- [Admin authentication](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`
- [Vehicle management](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`
- [Racer management](https://github.com/malorian-arms3516/blacklisted/blob/main/mainprog.py): `mainprog.py`

### Directory data

- [Vehicle records](https://github.com/malorian-arms3516/blacklisted/blob/main/blacklisted-data/cars.json): `blacklisted-data/cars.json`
- [Racer records](https://github.com/malorian-arms3516/blacklisted/blob/main/blacklisted-data/racers.json): `blacklisted-data/racers.json`

### Web presentation

- [Home view](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/index.html): `templates-web/index.html`
- [Vehicle list view](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/database.html): `templates-web/database.html`
- [Vehicle detail view](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/detail.html): `templates-web/detail.html`
- [Racer list view](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/racers.html): `templates-web/racers.html`
- [Racer detail view](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/racer_detail.html): `templates-web/racer_detail.html`
- [Login view](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/login.html): `templates-web/login.html`
- [Vehicle entry form](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/add.html): `templates-web/add.html`
- [Racer entry form](https://github.com/malorian-arms3516/blacklisted/blob/main/templates-web/add_racer.html): `templates-web/add_racer.html`

### Other components

- **Visitor**

## Connections

- Visitor → Flask routes: requests pages (evidence: `mainprog.py`)
- Flask routes → Vehicle catalog: handles listing (evidence: `mainprog.py`)
- Flask routes → Vehicle details: handles detail (evidence: `mainprog.py`)
- Flask routes → Racer directory: handles listing (evidence: `mainprog.py`)
- Flask routes → Racer details: handles detail (evidence: `mainprog.py`)
- Flask routes → Admin authentication: handles login (evidence: `mainprog.py`)
- Flask routes → Vehicle management: handles edits (evidence: `mainprog.py`)
- Flask routes → Racer management: handles edits (evidence: `mainprog.py`)
- Vehicle catalog → Vehicle records: reads (evidence: `mainprog.py`)
- Vehicle details → Vehicle records: reads (evidence: `mainprog.py`)
- Racer directory → Racer records: reads (evidence: `mainprog.py`)
- Racer details → Racer records: reads (evidence: `mainprog.py`)
- Vehicle management → Vehicle records: reads and writes (evidence: `mainprog.py`)
- Racer management → Racer records: reads and writes (evidence: `mainprog.py`)
- Vehicle catalog → Home view: renders (evidence: `mainprog.py`)
- Vehicle catalog → Vehicle list view: renders (evidence: `mainprog.py`)
- Vehicle details → Vehicle detail view: renders (evidence: `mainprog.py`)
- Racer directory → Racer list view: renders (evidence: `mainprog.py`)
- Racer details → Racer detail view: renders (evidence: `mainprog.py`)
- Admin authentication → Login view: renders (evidence: `mainprog.py`)
- Vehicle management → Vehicle entry form: renders (evidence: `mainprog.py`)
- Racer management → Racer entry form: renders (evidence: `mainprog.py`)
