# sankho1769/infinity-blog architecture

> Architecture diagram of the GitHub repository sankho1769/infinity-blog, 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/sankho1769/infinity-blog
- Repository: https://github.com/sankho1769/infinity-blog

## Overview

Infinity Blog is a PHP/MySQL publishing CMS for authors, administrators, and public readers. Its documented core workflow runs from web requests through authentication and author-owned post creation or administration to published-post reading; authorized readers can also request AI summaries. The tree shows broader community, ebook, review, library, audio, and export capabilities, included as separate product areas. Source excerpts are partial, so links for those areas are conservative and marked unverified where their runtime wiring was not shown.

Main entry points: [`app/Http/WebController.php`](https://github.com/sankho1769/infinity-blog/blob/main/app/Http/WebController.php) (Web actions), [`public/index.php`](https://github.com/sankho1769/infinity-blog/blob/main/public/index.php) (Web entry), [`app/Posts/PostRepository.php`](https://github.com/sankho1769/infinity-blog/blob/main/app/Posts/PostRepository.php) (Post lifecycle), [`app/Ai/ArticleAssistantService.php`](https://github.com/sankho1769/infinity-blog/blob/main/app/Ai/ArticleAssistantService.php) (Article assistant)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web and access"]
  node_entry["Web entry<br/>[index.php]"]
  node_request["HTTP request<br/>[Request.php]"]
  node_auth["Authentication"]
  node_sessions["Session and guard<br/>[SessionManager.php]"]
  node_webcontroller["Web actions<br/>[WebController.php]"]
end

subgraph group_publishing["Publishing"]
  node_posts["Post lifecycle<br/>[PostRepository.php]"]
  node_categories["Categories"]
  node_summaries["AI summaries<br/>[SummaryService.php]"]
  node_articleassistant["Article assistant"]
  node_ebooks["Ebook library"]
  node_ebookfiles["Ebook files"]
end

subgraph group_community["Community features"]
  node_community["Communities"]
  node_reviews["Reviews"]
  node_scores["Ratings"]
  node_social["Social activity"]
  node_library["Reader library"]
end

subgraph group_services["Content services"]
  node_audio["Article audio<br/>[TtsService.php]"]
  node_storage["Media storage<br/>[MediaService.php]"]
  node_export["Content export<br/>[EpubExporter.php]"]
  node_audit["Admin audit"]
  node_database[("MySQL database")]
end

node_visitor(("Site user"))

node_visitor -->|"requests pages"| node_entry
node_entry -.->|"handles requests"| node_request
node_entry -.->|"dispatches auth"| node_auth
node_entry -.->|"dispatches actions"| node_webcontroller
node_webcontroller -.->|"manages posts"| node_posts
node_webcontroller -.->|"manages categories"| node_categories
node_webcontroller -.->|"serves ebook features"| node_ebooks
node_webcontroller -.->|"serves communities"| node_community
node_webcontroller -.->|"serves reviews"| node_reviews
node_webcontroller -.->|"serves ratings"| node_scores
node_webcontroller -.->|"serves social features"| node_social
node_webcontroller -.->|"serves library"| node_library
node_webcontroller -.->|"requests summaries"| node_summaries
node_webcontroller -.->|"requests assistance"| node_articleassistant
node_webcontroller -.->|"requests audio"| node_audio
node_webcontroller -.->|"exports content"| node_export
node_webcontroller -.->|"reads audit logs"| node_audit
node_auth -.->|"establishes sessions"| node_sessions
node_posts -.->|"reads and writes"| node_database
node_ebooks -->|"manages files"| node_ebookfiles
node_audio -->|"loads article"| node_posts
node_audio -->|"stores audio"| node_storage
node_storage -.->|"persists metadata"| node_database
node_reviews -->|"uses ratings"| node_scores
node_reviews -->|"loads author badges"| node_social
node_community -->|"uses notifications"| node_social
node_summaries -.->|"rate limits"| node_database
node_articleassistant -->|"loads articles"| node_posts
node_articleassistant -->|"uses AI provider"| node_summaries

click node_entry "https://github.com/sankho1769/infinity-blog/blob/main/public/index.php"
click node_request "https://github.com/sankho1769/infinity-blog/blob/main/app/Http/Request.php"
click node_auth "https://github.com/sankho1769/infinity-blog/blob/main/app/Auth/AuthenticationService.php"
click node_sessions "https://github.com/sankho1769/infinity-blog/blob/main/app/Auth/SessionManager.php"
click node_webcontroller "https://github.com/sankho1769/infinity-blog/blob/main/app/Http/WebController.php"
click node_posts "https://github.com/sankho1769/infinity-blog/blob/main/app/Posts/PostRepository.php"
click node_categories "https://github.com/sankho1769/infinity-blog/blob/main/app/Categories/CategoryRepository.php"
click node_summaries "https://github.com/sankho1769/infinity-blog/blob/main/app/Summaries/SummaryService.php"
click node_articleassistant "https://github.com/sankho1769/infinity-blog/blob/main/app/Ai/ArticleAssistantService.php"
click node_ebooks "https://github.com/sankho1769/infinity-blog/blob/main/app/Ebooks/EbookRepository.php"
click node_ebookfiles "https://github.com/sankho1769/infinity-blog/blob/main/app/Ebooks/EbookFileService.php"
click node_community "https://github.com/sankho1769/infinity-blog/blob/main/app/Community/CommunityRepository.php"
click node_reviews "https://github.com/sankho1769/infinity-blog/blob/main/app/Reviews/ReviewRepository.php"
click node_scores "https://github.com/sankho1769/infinity-blog/blob/main/app/Scores/ScoreRepository.php"
click node_social "https://github.com/sankho1769/infinity-blog/blob/main/app/Social/FollowRepository.php"
click node_library "https://github.com/sankho1769/infinity-blog/blob/main/app/Library/LibraryRepository.php"
click node_audio "https://github.com/sankho1769/infinity-blog/blob/main/app/Audio/TtsService.php"
click node_storage "https://github.com/sankho1769/infinity-blog/blob/main/app/Storage/MediaService.php"
click node_export "https://github.com/sankho1769/infinity-blog/blob/main/app/Export/EpubExporter.php"
click node_audit "https://github.com/sankho1769/infinity-blog/blob/main/app/Audit/AuditLogRepository.php"

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_entry,node_request,node_auth,node_sessions,node_webcontroller,node_visitor toneBlue
class node_posts,node_categories,node_summaries,node_articleassistant,node_ebooks,node_ebookfiles toneAmber
class node_community,node_reviews,node_scores,node_social,node_library toneMint
class node_audio,node_storage,node_export,node_audit,node_database toneRose
```

## Components

### Web and access

- [Web entry](https://github.com/sankho1769/infinity-blog/blob/main/public/index.php): `public/index.php`
- [HTTP request](https://github.com/sankho1769/infinity-blog/blob/main/app/Http/Request.php): `app/Http/Request.php`
- [Authentication](https://github.com/sankho1769/infinity-blog/blob/main/app/Auth/AuthenticationService.php): `app/Auth/AuthenticationService.php`
- [Session and guard](https://github.com/sankho1769/infinity-blog/blob/main/app/Auth/SessionManager.php): `app/Auth/SessionManager.php`
- [Web actions](https://github.com/sankho1769/infinity-blog/blob/main/app/Http/WebController.php): `app/Http/WebController.php`

### Publishing

- [Post lifecycle](https://github.com/sankho1769/infinity-blog/blob/main/app/Posts/PostRepository.php): `app/Posts/PostRepository.php`
- [Categories](https://github.com/sankho1769/infinity-blog/blob/main/app/Categories/CategoryRepository.php): `app/Categories/CategoryRepository.php`
- [AI summaries](https://github.com/sankho1769/infinity-blog/blob/main/app/Summaries/SummaryService.php): `app/Summaries/SummaryService.php`
- [Article assistant](https://github.com/sankho1769/infinity-blog/blob/main/app/Ai/ArticleAssistantService.php): `app/Ai/ArticleAssistantService.php`
- [Ebook library](https://github.com/sankho1769/infinity-blog/blob/main/app/Ebooks/EbookRepository.php): `app/Ebooks/EbookRepository.php`
- [Ebook files](https://github.com/sankho1769/infinity-blog/blob/main/app/Ebooks/EbookFileService.php): `app/Ebooks/EbookFileService.php`

### Community features

- [Communities](https://github.com/sankho1769/infinity-blog/blob/main/app/Community/CommunityRepository.php): `app/Community/CommunityRepository.php`
- [Reviews](https://github.com/sankho1769/infinity-blog/blob/main/app/Reviews/ReviewRepository.php): `app/Reviews/ReviewRepository.php`
- [Ratings](https://github.com/sankho1769/infinity-blog/blob/main/app/Scores/ScoreRepository.php): `app/Scores/ScoreRepository.php`
- [Social activity](https://github.com/sankho1769/infinity-blog/blob/main/app/Social/FollowRepository.php): `app/Social/FollowRepository.php`
- [Reader library](https://github.com/sankho1769/infinity-blog/blob/main/app/Library/LibraryRepository.php): `app/Library/LibraryRepository.php`

### Content services

- [Article audio](https://github.com/sankho1769/infinity-blog/blob/main/app/Audio/TtsService.php): `app/Audio/TtsService.php`
- [Media storage](https://github.com/sankho1769/infinity-blog/blob/main/app/Storage/MediaService.php): `app/Storage/MediaService.php`
- [Content export](https://github.com/sankho1769/infinity-blog/blob/main/app/Export/EpubExporter.php): `app/Export/EpubExporter.php`
- [Admin audit](https://github.com/sankho1769/infinity-blog/blob/main/app/Audit/AuditLogRepository.php): `app/Audit/AuditLogRepository.php`
- **MySQL database**

### Other components

- **Site user**

## Connections

- Site user → Web entry: requests pages
- Web entry → HTTP request: handles requests (evidence: `public/index.php`)
- Web entry → Authentication: dispatches auth (evidence: `public/index.php`)
- Web entry → Web actions: dispatches actions (evidence: `public/index.php`)
- Web actions → Post lifecycle: manages posts (evidence: `app/Http/WebController.php`)
- Web actions → Categories: manages categories (evidence: `app/Http/WebController.php`)
- Web actions → Ebook library: serves ebook features (evidence: `app/Http/WebController.php`)
- Web actions → Communities: serves communities (evidence: `app/Http/WebController.php`)
- Web actions → Reviews: serves reviews (evidence: `app/Http/WebController.php`)
- Web actions → Ratings: serves ratings (evidence: `app/Http/WebController.php`)
- Web actions → Social activity: serves social features (evidence: `app/Http/WebController.php`)
- Web actions → Reader library: serves library (evidence: `app/Http/WebController.php`)
- Web actions → AI summaries: requests summaries
- Web actions → Article assistant: requests assistance (evidence: `app/Http/WebController.php`)
- Web actions → Article audio: requests audio (evidence: `app/Http/WebController.php`)
- Web actions → Content export: exports content (evidence: `app/Http/WebController.php`)
- Web actions → Admin audit: reads audit logs (evidence: `app/Http/WebController.php`)
- Authentication → Session and guard: establishes sessions
- Post lifecycle → MySQL database: reads and writes
- Ebook library → Ebook files: manages files (evidence: `app/Ebooks/EbookRepository.php`)
- Article audio → Post lifecycle: loads article (evidence: `app/Audio/TtsService.php`)
- Article audio → Media storage: stores audio (evidence: `app/Audio/TtsService.php`)
- Media storage → MySQL database: persists metadata
- Reviews → Ratings: uses ratings (evidence: `app/Reviews/ReviewRepository.php`)
- Reviews → Social activity: loads author badges (evidence: `app/Reviews/ReviewRepository.php`)
- Communities → Social activity: uses notifications (evidence: `app/Community/CommunityRepository.php`)
- AI summaries → MySQL database: rate limits
- Article assistant → Post lifecycle: loads articles (evidence: `app/Ai/ArticleAssistantService.php`)
- Article assistant → AI summaries: uses AI provider (evidence: `app/Ai/ArticleAssistantService.php`)
