# markdanielle11/dns-fare-calculator architecture

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

- Interactive diagram: https://gitdiagram.com/markdanielle11/dns-fare-calculator
- Repository: https://github.com/markdanielle11/dns-fare-calculator

## Overview

DNS Sukli is a single-page fare and change calculator for the Diesel n’ Steel Roblox game. The documented workflow is to choose a route, boarding point, destination, passenger count, discount, and payment; the app calculates the fare and displays the change. The README describes the fare rules and keyboard shortcuts, but no source excerpts were provided, so the graph reflects documented behavior rather than inspected implementation details.

Main entry points: [`index.html`](https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html) (Fare calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_passenger(("Passenger"))
node_fare_inputs["Fare inputs<br/>[index.html]"]
node_fare_calculator["Fare calculator<br/>[index.html]"]
node_fare_rules["Fare rules<br/>[index.html]"]
node_fare_change["Fare and change<br/>[index.html]"]
node_fare_matrix["Fare Matrix wiki"]

node_passenger -->|"chooses trip"| node_fare_inputs
node_fare_inputs -->|"provides choices"| node_fare_calculator
node_fare_calculator -->|"uses rules"| node_fare_rules
node_fare_calculator -->|"calculates fare"| node_fare_change
node_fare_rules -->|"based on"| node_fare_matrix
node_passenger -->|"starts next"| node_fare_inputs

click node_fare_inputs "https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html"
click node_fare_calculator "https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html"
click node_fare_rules "https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html"
click node_fare_change "https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.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_passenger,node_fare_matrix toneIndigo
class node_fare_inputs,node_fare_calculator,node_fare_rules,node_fare_change toneTeal
```

## Components

### Other components

- **Passenger**
- [Fare inputs](https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html): `index.html`
- [Fare calculator](https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html): `index.html`
- [Fare rules](https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html): `index.html`
- [Fare and change](https://github.com/markdanielle11/dns-fare-calculator/blob/main/index.html): `index.html`
- **Fare Matrix wiki**

## Connections

- Passenger → Fare inputs: chooses trip (evidence: `README.md`)
- Fare inputs → Fare calculator: provides choices (evidence: `README.md`)
- Fare calculator → Fare rules: uses rules (evidence: `README.md`)
- Fare calculator → Fare and change: calculates fare (evidence: `README.md`)
- Fare rules → Fare Matrix wiki: based on (evidence: `README.md`)
- Passenger → Fare inputs: starts next (evidence: `README.md`)
