# shrabony01/personal-blog architecture

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

- Interactive diagram: https://gitdiagram.com/shrabony01/personal-blog
- Repository: https://github.com/shrabony01/personal-blog

## Overview

This is a browser-only personal blog: users submit or edit posts through a form, the JavaScript validates and updates the post collection, renders the result, and persists it in localStorage. The same script handles deletion through delegated clicks and clears validation feedback while typing. The source excerpt shows these runtime relationships; the README documents the broader CRUD and persistence capabilities. The HTML structure is identified from the tree and README, but its contents were not sampled.

Main entry points: [`script.js`](https://github.com/shrabony01/personal-blog/blob/main/script.js) (Post controller), [`index.html`](https://github.com/shrabony01/personal-blog/blob/main/index.html) (Post form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Blog interface"]
  node_form["Post form<br/>[index.html]"]
end

subgraph group_runtime["Post runtime"]
  node_post_runtime["Post controller<br/>[script.js]"]
  node_validation["Form validation<br/>[script.js]"]
  node_rendering["Post rendering<br/>[script.js]"]
end

subgraph group_persistence["Browser persistence"]
  node_browser_storage[("localStorage")]
end

node_writer(("Blog writer"))

node_writer -->|"creates or edits"| node_form
node_form -->|"submits input"| node_post_runtime
node_post_runtime -->|"validates"| node_validation
node_post_runtime -->|"renders posts"| node_rendering
node_post_runtime -->|"loads and saves"| node_browser_storage
node_post_runtime -->|"handles input events"| node_form
node_rendering -->|"updates page"| node_form

click node_form "https://github.com/shrabony01/personal-blog/blob/main/index.html"
click node_post_runtime "https://github.com/shrabony01/personal-blog/blob/main/script.js"
click node_validation "https://github.com/shrabony01/personal-blog/blob/main/script.js"
click node_rendering "https://github.com/shrabony01/personal-blog/blob/main/script.js"

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_form toneBlue
class node_post_runtime,node_validation,node_rendering toneAmber
class node_browser_storage toneMint
class node_writer toneIndigo
```

## Components

### Blog interface

- [Post form](https://github.com/shrabony01/personal-blog/blob/main/index.html): `index.html`

### Post runtime

- [Post controller](https://github.com/shrabony01/personal-blog/blob/main/script.js): `script.js`
- [Form validation](https://github.com/shrabony01/personal-blog/blob/main/script.js): `script.js`
- [Post rendering](https://github.com/shrabony01/personal-blog/blob/main/script.js): `script.js`

### Browser persistence

- **localStorage**

### Other components

- **Blog writer**

## Connections

- Blog writer → Post form: creates or edits (evidence: `README.md`)
- Post form → Post controller: submits input (evidence: `script.js`)
- Post controller → Form validation: validates (evidence: `script.js`)
- Post controller → Post rendering: renders posts (evidence: `script.js`)
- Post controller → localStorage: loads and saves (evidence: `script.js`)
- Post controller → Post form: handles input events (evidence: `script.js`)
- Post rendering → Post form: updates page (evidence: `script.js`)
