# anyway-one/anywayone-blog architecture

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

- Interactive diagram: https://gitdiagram.com/anyway-one/anywayone-blog
- Repository: https://github.com/anyway-one/anywayone-blog

## Overview

Anywayone Blog combines a reader-facing Next.js site, a React administration console, and a FastAPI content API. Readers browse published posts, taxonomy pages, photography, and site information; administrators authenticate and manage content through the console and API. The backend provides domain services over PostgreSQL, including media storage and post rendering. The README documents several capabilities whose implementation was not sampled; those are represented at subsystem level, and their relationships are cited to the README rather than inferred from unseen code.

Main entry points: [`backend/app/api/router.py`](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/api/router.py) (API router), [`web/app`](https://github.com/anyway-one/anywayone-blog/tree/main/web/app) (Site pages), [`admin/src/App.tsx`](https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/App.tsx) (Admin routes), [`admin/src/api`](https://github.com/anyway-one/anywayone-blog/tree/main/admin/src/api) (Admin API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Reader website"]
  node_web_pages["Site pages"]
  node_web_home["Home experience"]
  node_web_posts["Post browsing"]
  node_web_taxonomy["Taxonomy pages"]
  node_web_photo["Photography"]
  node_web_feed["RSS feed<br/>[route.ts]"]
  node_web_status["Site status<br/>[page.tsx]"]
end

subgraph group_admin["Admin console"]
  node_admin_routes["Admin routes<br/>[App.tsx]"]
  node_admin_auth["Admin authentication<br/>[AuthProvider.tsx]"]
  node_admin_editor["Post editor<br/>[PostEditorPage.tsx]"]
  node_admin_content["Content management"]
  node_admin_api["Admin API client"]
end

subgraph group_api["API runtime"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_api_router["API router<br/>[router.py]"]
end

subgraph group_domain["Content services"]
  node_auth["Authentication service<br/>[service.py]"]
  node_posts["Posts service<br/>[service.py]"]
  node_taxonomy["Taxonomy service<br/>[service.py]"]
  node_photography["Photography service<br/>[service.py]"]
  node_site["Site settings service<br/>[service.py]"]
  node_media["Media service<br/>[service.py]"]
end

subgraph group_state["Persistence and media"]
  node_storage["Object storage<br/>[storage.py]"]
  node_database[("PostgreSQL")]
end

node_reader(("Reader"))
node_admin_user(("Administrator"))

node_reader -->|"browses"| node_web_pages
node_web_pages -->|"renders"| node_web_home
node_web_pages -->|"routes to"| node_web_posts
node_web_pages -->|"routes to"| node_web_taxonomy
node_web_pages -->|"routes to"| node_web_photo
node_web_pages -->|"serves"| node_web_feed
node_web_pages -->|"routes to"| node_web_status
node_web_home -->|"shows status"| node_web_status
node_web_posts -->|"fetches public posts"| node_api_router
node_web_taxonomy -->|"fetches public posts"| node_api_router
node_web_photo -.->|"uses photography API"| node_api_router
node_admin_user -->|"manages content"| node_admin_routes
node_admin_routes -->|"guards routes"| node_admin_auth
node_admin_routes -->|"routes to"| node_admin_editor
node_admin_routes -->|"routes to"| node_admin_content
node_admin_auth -->|"uses auth client"| node_admin_api
node_admin_editor -->|"uses API clients"| node_admin_api
node_admin_content -->|"calls management APIs"| node_admin_api
node_admin_api -->|"sends API requests"| node_api_router
node_api_app -->|"mounts routes"| node_api_router
node_api_router -->|"dispatches auth"| node_auth
node_api_router -->|"dispatches posts"| node_posts
node_api_router -->|"dispatches taxonomy"| node_taxonomy
node_api_router -->|"dispatches photography"| node_photography
node_api_router -->|"dispatches site"| node_site
node_api_router -->|"dispatches media"| node_media
node_posts -->|"reads and writes"| node_database
node_taxonomy -->|"reads and writes"| node_database
node_photography -->|"reads and writes"| node_database
node_site -->|"reads and writes"| node_database
node_media -->|"records media"| node_database
node_media -->|"stores objects"| node_storage
node_storage -.->|"uses configured backend"| node_database

click node_web_pages "https://github.com/anyway-one/anywayone-blog/tree/main/web/app"
click node_web_home "https://github.com/anyway-one/anywayone-blog/blob/main/web/components/home-experience.tsx"
click node_web_posts "https://github.com/anyway-one/anywayone-blog/tree/main/web/app/posts"
click node_web_taxonomy "https://github.com/anyway-one/anywayone-blog/blob/main/web/components/taxonomy-post-page.tsx"
click node_web_photo "https://github.com/anyway-one/anywayone-blog/tree/main/web/app/photography"
click node_web_feed "https://github.com/anyway-one/anywayone-blog/blob/main/web/app/rss.xml/route.ts"
click node_web_status "https://github.com/anyway-one/anywayone-blog/blob/main/web/app/status/page.tsx"
click node_admin_routes "https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/App.tsx"
click node_admin_auth "https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/auth/AuthProvider.tsx"
click node_admin_editor "https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/pages/PostEditorPage.tsx"
click node_admin_content "https://github.com/anyway-one/anywayone-blog/tree/main/admin/src/pages"
click node_admin_api "https://github.com/anyway-one/anywayone-blog/tree/main/admin/src/api"
click node_api_app "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/main.py"
click node_api_router "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/api/router.py"
click node_auth "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/auth/service.py"
click node_posts "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/posts/service.py"
click node_taxonomy "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/taxonomy/service.py"
click node_photography "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/photography/service.py"
click node_site "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/site/service.py"
click node_media "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/media/service.py"
click node_storage "https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/core/storage.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_web_pages,node_web_home,node_web_posts,node_web_taxonomy,node_web_photo,node_web_feed,node_web_status toneBlue
class node_admin_routes,node_admin_auth,node_admin_editor,node_admin_content,node_admin_api toneAmber
class node_api_app,node_api_router toneMint
class node_auth,node_posts,node_taxonomy,node_photography,node_site,node_media toneRose
class node_storage,node_database,node_reader,node_admin_user toneIndigo
```

## Components

### Reader website

- [Site pages](https://github.com/anyway-one/anywayone-blog/tree/main/web/app): `web/app`
- [Home experience](https://github.com/anyway-one/anywayone-blog/blob/main/web/components/home-experience.tsx): `web/components/home-experience.tsx`
- [Post browsing](https://github.com/anyway-one/anywayone-blog/tree/main/web/app/posts): `web/app/posts`
- [Taxonomy pages](https://github.com/anyway-one/anywayone-blog/blob/main/web/components/taxonomy-post-page.tsx): `web/components/taxonomy-post-page.tsx`
- [Photography](https://github.com/anyway-one/anywayone-blog/tree/main/web/app/photography): `web/app/photography`
- [RSS feed](https://github.com/anyway-one/anywayone-blog/blob/main/web/app/rss.xml/route.ts): `web/app/rss.xml/route.ts`
- [Site status](https://github.com/anyway-one/anywayone-blog/blob/main/web/app/status/page.tsx): `web/app/status/page.tsx`

### Admin console

- [Admin routes](https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/App.tsx): `admin/src/App.tsx`
- [Admin authentication](https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/auth/AuthProvider.tsx): `admin/src/auth/AuthProvider.tsx`
- [Post editor](https://github.com/anyway-one/anywayone-blog/blob/main/admin/src/pages/PostEditorPage.tsx): `admin/src/pages/PostEditorPage.tsx`
- [Content management](https://github.com/anyway-one/anywayone-blog/tree/main/admin/src/pages): `admin/src/pages`
- [Admin API client](https://github.com/anyway-one/anywayone-blog/tree/main/admin/src/api): `admin/src/api`

### API runtime

- [FastAPI application](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/main.py): `backend/app/main.py`
- [API router](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/api/router.py): `backend/app/api/router.py`

### Content services

- [Authentication service](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/auth/service.py): `backend/app/modules/auth/service.py`
- [Posts service](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/posts/service.py): `backend/app/modules/posts/service.py`
- [Taxonomy service](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/taxonomy/service.py): `backend/app/modules/taxonomy/service.py`
- [Photography service](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/photography/service.py): `backend/app/modules/photography/service.py`
- [Site settings service](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/site/service.py): `backend/app/modules/site/service.py`
- [Media service](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/modules/media/service.py): `backend/app/modules/media/service.py`

### Persistence and media

- [Object storage](https://github.com/anyway-one/anywayone-blog/blob/main/backend/app/core/storage.py): `backend/app/core/storage.py`
- **PostgreSQL**

### Other components

- **Reader**
- **Administrator**

## Connections

- Reader → Site pages: browses (evidence: `README.md`)
- Site pages → Home experience: renders (evidence: `web/components/home-experience.tsx`)
- Site pages → Post browsing: routes to (evidence: `README.md`)
- Site pages → Taxonomy pages: routes to (evidence: `README.md`)
- Site pages → Photography: routes to (evidence: `README.md`)
- Site pages → RSS feed: serves (evidence: `README.md`)
- Site pages → Site status: routes to (evidence: `README.md`)
- Home experience → Site status: shows status (evidence: `web/components/home-experience.tsx`)
- Post browsing → API router: fetches public posts (evidence: `README.md`)
- Taxonomy pages → API router: fetches public posts (evidence: `README.md`)
- Photography → API router: uses photography API
- Administrator → Admin routes: manages content (evidence: `README.md`)
- Admin routes → Admin authentication: guards routes (evidence: `admin/src/App.tsx`)
- Admin routes → Post editor: routes to (evidence: `admin/src/App.tsx`)
- Admin routes → Content management: routes to (evidence: `admin/src/App.tsx`)
- Admin authentication → Admin API client: uses auth client (evidence: `admin/src/auth/AuthProvider.tsx`)
- Post editor → Admin API client: uses API clients (evidence: `admin/src/pages/PostEditorPage.tsx`)
- Content management → Admin API client: calls management APIs (evidence: `README.md`)
- Admin API client → API router: sends API requests (evidence: `README.md`)
- FastAPI application → API router: mounts routes (evidence: `backend/app/main.py`)
- API router → Authentication service: dispatches auth (evidence: `backend/app/api/router.py`)
- API router → Posts service: dispatches posts (evidence: `backend/app/api/router.py`)
- API router → Taxonomy service: dispatches taxonomy (evidence: `backend/app/api/router.py`)
- API router → Photography service: dispatches photography (evidence: `backend/app/api/router.py`)
- API router → Site settings service: dispatches site (evidence: `backend/app/api/router.py`)
- API router → Media service: dispatches media (evidence: `backend/app/api/router.py`)
- Posts service → PostgreSQL: reads and writes (evidence: `backend/app/modules/posts/service.py`)
- Taxonomy service → PostgreSQL: reads and writes (evidence: `backend/app/modules/taxonomy/service.py`)
- Photography service → PostgreSQL: reads and writes (evidence: `backend/app/modules/photography/service.py`)
- Site settings service → PostgreSQL: reads and writes (evidence: `backend/app/modules/site/service.py`)
- Media service → PostgreSQL: records media (evidence: `backend/app/modules/media/service.py`)
- Media service → Object storage: stores objects (evidence: `backend/app/modules/media/service.py`)
- Object storage → PostgreSQL: uses configured backend
