# kamcdev/jsoft_katheme_blog architecture

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

- Interactive diagram: https://gitdiagram.com/kamcdev/jsoft_katheme_blog
- Repository: https://github.com/kamcdev/jsoft_katheme_blog

## Overview

Jsoft_katheme_blog is a Flask-based blog. Visitors browse categories and posts, open rendered articles, and can comment; owners can write Markdown in the built-in editor. The README also documents archives, friend links, RSS, browser testing, and resource attachments. The graph retains the indexed frontend modules and documented product branches. Several server routes and page-template bindings fall outside the excerpts, so those relationships are omitted rather than inferred.

Main entry points: [`app.py`](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/app.py) (Flask application), [`js/read/comment.js`](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/comment.js) (Comments), [`js/index/index.js`](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/index/index.js) (Blog homepage), [`js/archive/archive.js`](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/archive/archive.js) (Date archive)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Blog content"]
  node_backend["Flask application<br/>[app.py]"]
  node_posts[("Articles and categories")]
  node_homepage["Blog homepage<br/>[index.js]"]
  node_archive["Date archive<br/>[archive.js]"]
end

subgraph group_reading["Reading experience"]
  node_reader["Article reader<br/>[read.js]"]
  node_comments["Comments<br/>[comment.js]"]
  node_telemetry["Reading telemetry<br/>[telemetry.js]"]
end

subgraph group_authoring["Authoring"]
  node_editor["Markdown editor<br/>[editor.js]"]
end

subgraph group_site["Site features"]
  node_rss["RSS feed<br/>[rss.xml]"]
  node_resources[("Resource files")]
  node_friendlinks[("Friend links")]
  node_linkwarning["External-link warning"]
  node_browsercheck["Browser test page<br/>[browsertest.html]"]
  node_dialogs["Small notifications<br/>[showsmalldialog.js]"]
end

node_visitor(("Visitor"))
node_owner(("Blog owner"))

node_visitor -->|"browses"| node_homepage
node_homepage -->|"loads categories"| node_backend
node_homepage -->|"loads friend links"| node_backend
node_backend -->|"reads posts"| node_posts
node_owner -->|"adds articles"| node_posts
node_visitor -->|"filters dates"| node_archive
node_archive -->|"requests dates"| node_backend
node_archive -->|"searches articles"| node_backend
node_visitor -->|"opens article"| node_reader
node_reader -->|"loads article"| node_backend
node_visitor -->|"posts comment"| node_comments
node_comments -->|"submits comment"| node_backend
node_comments -->|"loads comments"| node_backend
node_visitor -->|"writes Markdown"| node_editor
node_editor -->|"previews Markdown"| node_backend
node_visitor -->|"subscribes"| node_rss
node_backend -->|"serves feed"| node_rss
node_reader -->|"embeds resources"| node_resources
node_backend -->|"serves files"| node_resources
node_owner -->|"configures links"| node_friendlinks
node_linkwarning -->|"fetches friend links"| node_backend
node_visitor -->|"opens test page"| node_browsercheck
node_comments -->|"shows notices"| node_dialogs

click node_backend "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/app.py"
click node_posts "https://github.com/kamcdev/jsoft_katheme_blog/tree/main/blogs"
click node_homepage "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/index/index.js"
click node_archive "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/archive/archive.js"
click node_reader "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/read.js"
click node_comments "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/comment.js"
click node_telemetry "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/telemetry.js"
click node_editor "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/editor/editor.js"
click node_rss "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/templates/rss.xml"
click node_resources "https://github.com/kamcdev/jsoft_katheme_blog/tree/main/resources"
click node_friendlinks "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/friendly_links.json"
click node_linkwarning "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/security/external-link-warning.js"
click node_browsercheck "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/templates/browsertest.html"
click node_dialogs "https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/all/showsmalldialog.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_backend,node_posts,node_homepage,node_archive toneBlue
class node_reader,node_comments,node_telemetry toneAmber
class node_editor toneMint
class node_rss,node_resources,node_friendlinks,node_linkwarning,node_browsercheck,node_dialogs toneRose
class node_visitor,node_owner toneIndigo
```

## Components

### Blog content

- [Flask application](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/app.py): `app.py`
- [Articles and categories](https://github.com/kamcdev/jsoft_katheme_blog/tree/main/blogs): `blogs`
- [Blog homepage](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/index/index.js): `js/index/index.js`
- [Date archive](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/archive/archive.js): `js/archive/archive.js`

### Reading experience

- [Article reader](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/read.js): `js/read/read.js`
- [Comments](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/comment.js): `js/read/comment.js`
- [Reading telemetry](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/read/telemetry.js): `js/read/telemetry.js`

### Authoring

- [Markdown editor](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/editor/editor.js): `js/editor/editor.js`

### Site features

- [RSS feed](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/templates/rss.xml): `templates/rss.xml`
- [Resource files](https://github.com/kamcdev/jsoft_katheme_blog/tree/main/resources): `resources`
- [Friend links](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/friendly_links.json): `friendly_links.json`
- [External-link warning](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/security/external-link-warning.js): `js/security/external-link-warning.js`
- [Browser test page](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/templates/browsertest.html): `templates/browsertest.html`
- [Small notifications](https://github.com/kamcdev/jsoft_katheme_blog/blob/main/js/all/showsmalldialog.js): `js/all/showsmalldialog.js`

### Other components

- **Visitor**
- **Blog owner**

## Connections

- Visitor → Blog homepage: browses (evidence: `readme.md`)
- Blog homepage → Flask application: loads categories (evidence: `js/index/index.js`)
- Blog homepage → Flask application: loads friend links (evidence: `js/index/index.js`)
- Flask application → Articles and categories: reads posts (evidence: `readme.md`)
- Blog owner → Articles and categories: adds articles (evidence: `readme.md`)
- Visitor → Date archive: filters dates (evidence: `js/archive/archive.js`)
- Date archive → Flask application: requests dates (evidence: `js/archive/archive.js`)
- Date archive → Flask application: searches articles (evidence: `js/archive/archive.js`)
- Visitor → Article reader: opens article
- Article reader → Flask application: loads article (evidence: `js/read/read.js`)
- Visitor → Comments: posts comment (evidence: `js/read/comment.js`)
- Comments → Flask application: submits comment (evidence: `js/read/comment.js`)
- Comments → Flask application: loads comments (evidence: `js/read/comment.js`)
- Visitor → Markdown editor: writes Markdown (evidence: `readme.md`)
- Markdown editor → Flask application: previews Markdown (evidence: `js/editor/editor.js`)
- Visitor → RSS feed: subscribes (evidence: `readme.md`)
- Flask application → RSS feed: serves feed (evidence: `readme.md`)
- Article reader → Resource files: embeds resources (evidence: `readme.md`)
- Flask application → Resource files: serves files (evidence: `app.py`)
- Blog owner → Friend links: configures links (evidence: `readme.md`)
- External-link warning → Flask application: fetches friend links (evidence: `js/security/external-link-warning.js`)
- Visitor → Browser test page: opens test page (evidence: `readme.md`)
- Comments → Small notifications: shows notices (evidence: `js/read/comment.js`)
