# marcusnebel/grabberty architecture

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

- Interactive diagram: https://gitdiagram.com/marcusnebel/grabberty
- Repository: https://github.com/marcusnebel/grabberty

## Overview

Grabberty is documented as a self-hosted YouTube video/audio downloader. Its user-facing flow enters through Nginx, which routes page requests to the frontend and API requests to the backend; the backend uses yt-dlp for download functionality. This repository snapshot contains deployment configuration but no application source excerpts, so component paths identify the available service configuration rather than implementation code. Relationships are based on README statements only.

Main entry points: [`nginx.conf`](https://github.com/marcusnebel/grabberty/blob/main/nginx.conf) (Nginx proxy), [`docker-compose.yml`](https://github.com/marcusnebel/grabberty/blob/main/docker-compose.yml) (Fastify API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_proxy["Nginx proxy<br/>[nginx.conf]"]
end

subgraph group_app["Download application"]
  node_frontend["Web frontend<br/>[docker-compose.yml]"]
  node_backend["Fastify API<br/>[docker-compose.yml]"]
end

node_user(("User"))
node_ytdlp["yt-dlp"]
node_media["Video or audio download"]

node_user -->|"accesses"| node_proxy
node_proxy -->|"routes pages"| node_frontend
node_proxy -->|"routes API"| node_backend
node_backend -->|"uses"| node_ytdlp
node_backend -->|"provides downloads"| node_media

click node_proxy "https://github.com/marcusnebel/grabberty/blob/main/nginx.conf"
click node_frontend "https://github.com/marcusnebel/grabberty/blob/main/docker-compose.yml"
click node_backend "https://github.com/marcusnebel/grabberty/blob/main/docker-compose.yml"

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_proxy,node_user toneBlue
class node_frontend,node_backend toneAmber
class node_ytdlp,node_media toneIndigo
```

## Components

### Web entry

- [Nginx proxy](https://github.com/marcusnebel/grabberty/blob/main/nginx.conf): `nginx.conf`

### Download application

- [Web frontend](https://github.com/marcusnebel/grabberty/blob/main/docker-compose.yml): `docker-compose.yml`
- [Fastify API](https://github.com/marcusnebel/grabberty/blob/main/docker-compose.yml): `docker-compose.yml`

### Other components

- **User**
- **yt-dlp**
- **Video or audio download**

## Connections

- User → Nginx proxy: accesses (evidence: `README.md`)
- Nginx proxy → Web frontend: routes pages (evidence: `README.md`)
- Nginx proxy → Fastify API: routes API (evidence: `README.md`)
- Fastify API → yt-dlp: uses (evidence: `README.md`)
- Fastify API → Video or audio download: provides downloads (evidence: `README.md`)
