# bada-dev/whisperingwoods architecture

> Architecture diagram of the GitHub repository bada-dev/whisperingwoods, 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/bada-dev/whisperingwoods
- Repository: https://github.com/bada-dev/whisperingwoods

## Overview

whisperingwoods is a small Flask application for viewing and administering dated updates. Visitors can request the update list; an administrator can authenticate and create or delete updates. The Flask route handlers read and write JSON-backed local state, while the home route renders the HTML template. The template’s client-side behavior is not shown, so no browser-to-API calls are inferred.

Main entry points: [`main.py`](https://github.com/bada-dev/whisperingwoods/blob/main/main.py) (Home route), [`templates/index.html`](https://github.com/bada-dev/whisperingwoods/blob/main/templates/index.html) (Page template)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_admin(("Administrator"))
node_home["Home route<br/>[main.py]"]
node_template["Page template<br/>[index.html]"]
node_list["List updates<br/>[main.py]"]
node_login["Admin login<br/>[main.py]"]
node_mutations["Create or delete<br/>[main.py]"]
node_store[("JSON update file")]

node_visitor -->|"requests page"| node_home
node_home -->|"renders"| node_template
node_visitor -->|"requests updates"| node_list
node_admin -->|"authenticates"| node_login
node_admin -->|"manages updates"| node_mutations
node_list -->|"reads"| node_store
node_mutations -->|"reads and writes"| node_store

click node_home "https://github.com/bada-dev/whisperingwoods/blob/main/main.py"
click node_template "https://github.com/bada-dev/whisperingwoods/blob/main/templates/index.html"
click node_list "https://github.com/bada-dev/whisperingwoods/blob/main/main.py"
click node_login "https://github.com/bada-dev/whisperingwoods/blob/main/main.py"
click node_mutations "https://github.com/bada-dev/whisperingwoods/blob/main/main.py"

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_visitor,node_admin toneIndigo
class node_home toneMint
class node_template,node_list,node_login,node_mutations toneTeal
class node_store toneAmber
```

## Components

### Other components

- **Visitor**
- **Administrator**
- [Home route](https://github.com/bada-dev/whisperingwoods/blob/main/main.py): `main.py`
- [Page template](https://github.com/bada-dev/whisperingwoods/blob/main/templates/index.html): `templates/index.html`
- [List updates](https://github.com/bada-dev/whisperingwoods/blob/main/main.py): `main.py`
- [Admin login](https://github.com/bada-dev/whisperingwoods/blob/main/main.py): `main.py`
- [Create or delete](https://github.com/bada-dev/whisperingwoods/blob/main/main.py): `main.py`
- **JSON update file**

## Connections

- Visitor → Home route: requests page (evidence: `main.py`)
- Home route → Page template: renders (evidence: `main.py`)
- Visitor → List updates: requests updates (evidence: `main.py`)
- Administrator → Admin login: authenticates (evidence: `main.py`)
- Administrator → Create or delete: manages updates (evidence: `main.py`)
- List updates → JSON update file: reads (evidence: `main.py`)
- Create or delete → JSON update file: reads and writes (evidence: `main.py`)
