# ejones35/tmf architecture

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

- Interactive diagram: https://gitdiagram.com/ejones35/tmf
- Repository: https://github.com/ejones35/tmf

## Overview

This is a small browser-based mission tracker: users mark missions complete, the app saves those choices in browser storage, and completed mission content is rendered on the page. The supplied source shows the storage, change handling, and rendering behavior; the HTML and CSS files are listed but their contents were not provided, so their structure and any script-loading relationship cannot be verified.

Main entry points: [`db.js`](https://github.com/ejones35/tmf/blob/main/db.js) (Mission tracker logic), [`index.html`](https://github.com/ejones35/tmf/blob/main/index.html) (Mission checklist)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tracker["Mission tracker"]
  node_checklist["Mission checklist<br/>[index.html]"]
  node_tracker_runtime["Mission tracker logic<br/>[db.js]"]
  node_browser_storage[("Browser storage")]
  node_mission_view["Mission content view<br/>[index.html]"]
end

node_user(("User"))

node_checklist -->|"change event"| node_tracker_runtime
node_tracker_runtime -->|"reads and writes"| node_browser_storage
node_tracker_runtime -->|"renders content"| node_mission_view

click node_checklist "https://github.com/ejones35/tmf/blob/main/index.html"
click node_tracker_runtime "https://github.com/ejones35/tmf/blob/main/db.js"
click node_mission_view "https://github.com/ejones35/tmf/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_checklist,node_tracker_runtime,node_browser_storage,node_mission_view,node_user toneBlue
```

## Components

### Mission tracker

- [Mission checklist](https://github.com/ejones35/tmf/blob/main/index.html): `index.html`
- [Mission tracker logic](https://github.com/ejones35/tmf/blob/main/db.js): `db.js`
- **Browser storage**
- [Mission content view](https://github.com/ejones35/tmf/blob/main/index.html): `index.html`

### Other components

- **User**

## Connections

- Mission checklist → Mission tracker logic: change event (evidence: `db.js`)
- Mission tracker logic → Browser storage: reads and writes (evidence: `db.js`)
- Mission tracker logic → Mission content view: renders content (evidence: `db.js`)
