# fu116/oldman-audio-video-universe architecture

> Architecture diagram of the GitHub repository fu116/oldman-audio-video-universe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fu116/oldman-audio-video-universe
- Repository: https://github.com/fu116/oldman-audio-video-universe

## Overview

This is a Flask media-sharing and creator-community application. Users register or log in, select interests, discover public media, play uploads, and visit creator profiles to follow accounts; authenticated users can upload or delete content. The route modules orchestrate these workflows, with database helpers handling account, media, profile, and follow records. Uploads also write media and optional thumbnails to local storage. The source excerpts establish these route-to-helper and route-to-template relationships; template contents and several listed UI capabilities were not sampled.

Main entry points: [`routes/content_routes.py`](https://github.com/fu116/oldman-audio-video-universe/blob/master/routes/content_routes.py) (Content routes), [`app.py`](https://github.com/fu116/oldman-audio-video-universe/blob/master/app.py) (Flask app), [`routes/auth_routes.py`](https://github.com/fu116/oldman-audio-video-universe/blob/master/routes/auth_routes.py) (Account routes), [`db/auth_db.py`](https://github.com/fu116/oldman-audio-video-universe/blob/master/db/auth_db.py) (Account data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_flask["Flask app<br/>[app.py]"]
  node_views["Page templates"]
  node_player_ui["Player controls<br/>[main.js]"]
  node_profile_ui["Profile tabs<br/>[profile.js]"]
end

subgraph group_identity["Accounts and interests"]
  node_auth_routes["Account routes<br/>[auth_routes.py]"]
  node_auth_db["Account data<br/>[auth_db.py]"]
end

subgraph group_community["Media and community"]
  node_content_routes["Content routes<br/>[content_routes.py]"]
  node_content_db["Content and social data<br/>[content_db.py]"]
end

subgraph group_persistence["Persistence"]
  node_media_files[("Uploaded media")]
  node_mysql[("MySQL database")]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_flask
node_flask -->|"registers"| node_auth_routes
node_flask -->|"registers"| node_content_routes
node_auth_routes -->|"reads and writes"| node_auth_db
node_auth_db -->|"queries"| node_mysql
node_content_routes -->|"reads and writes"| node_content_db
node_content_db -->|"queries"| node_mysql
node_content_routes -->|"saves uploads"| node_media_files
node_auth_routes -->|"renders"| node_views
node_content_routes -->|"renders"| node_views

click node_flask "https://github.com/fu116/oldman-audio-video-universe/blob/master/app.py"
click node_auth_routes "https://github.com/fu116/oldman-audio-video-universe/blob/master/routes/auth_routes.py"
click node_auth_db "https://github.com/fu116/oldman-audio-video-universe/blob/master/db/auth_db.py"
click node_content_routes "https://github.com/fu116/oldman-audio-video-universe/blob/master/routes/content_routes.py"
click node_content_db "https://github.com/fu116/oldman-audio-video-universe/blob/master/db/content_db.py"
click node_views "https://github.com/fu116/oldman-audio-video-universe/tree/master/templates"
click node_media_files "https://github.com/fu116/oldman-audio-video-universe/tree/master/static/uploads"
click node_player_ui "https://github.com/fu116/oldman-audio-video-universe/blob/master/static/js/main.js"
click node_profile_ui "https://github.com/fu116/oldman-audio-video-universe/blob/master/static/js/profile.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_flask,node_views,node_player_ui,node_profile_ui toneBlue
class node_auth_routes,node_auth_db toneAmber
class node_content_routes,node_content_db toneMint
class node_media_files,node_mysql toneRose
class node_visitor toneIndigo
```

## Components

### Web application

- [Flask app](https://github.com/fu116/oldman-audio-video-universe/blob/master/app.py): `app.py`
- [Page templates](https://github.com/fu116/oldman-audio-video-universe/tree/master/templates): `templates`
- [Player controls](https://github.com/fu116/oldman-audio-video-universe/blob/master/static/js/main.js): `static/js/main.js`
- [Profile tabs](https://github.com/fu116/oldman-audio-video-universe/blob/master/static/js/profile.js): `static/js/profile.js`

### Accounts and interests

- [Account routes](https://github.com/fu116/oldman-audio-video-universe/blob/master/routes/auth_routes.py): `routes/auth_routes.py`
- [Account data](https://github.com/fu116/oldman-audio-video-universe/blob/master/db/auth_db.py): `db/auth_db.py`

### Media and community

- [Content routes](https://github.com/fu116/oldman-audio-video-universe/blob/master/routes/content_routes.py): `routes/content_routes.py`
- [Content and social data](https://github.com/fu116/oldman-audio-video-universe/blob/master/db/content_db.py): `db/content_db.py`

### Persistence

- [Uploaded media](https://github.com/fu116/oldman-audio-video-universe/tree/master/static/uploads): `static/uploads`
- **MySQL database**

### Other components

- **Visitor**

## Connections

- Visitor → Flask app: uses (evidence: `app.py`)
- Flask app → Account routes: registers (evidence: `app.py`)
- Flask app → Content routes: registers (evidence: `app.py`)
- Account routes → Account data: reads and writes (evidence: `routes/auth_routes.py`)
- Account data → MySQL database: queries (evidence: `db/auth_db.py`)
- Content routes → Content and social data: reads and writes (evidence: `routes/content_routes.py`)
- Content and social data → MySQL database: queries (evidence: `db/content_db.py`)
- Content routes → Uploaded media: saves uploads (evidence: `routes/content_routes.py`)
- Account routes → Page templates: renders (evidence: `routes/auth_routes.py`)
- Content routes → Page templates: renders (evidence: `routes/content_routes.py`)
