# pimpaleg80-ship-it/flowget- architecture

> Architecture diagram of the GitHub repository pimpaleg80-ship-it/flowget-, 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/pimpaleg80-ship-it/flowget-
- Repository: https://github.com/pimpaleg80-ship-it/flowget-

## Overview

FLUXGET is a photographer-focused photo and video storage, gallery, and QR-sharing product. A photographer signs in, connects Google Drive, creates albums, uploads media, and shares guest galleries; guests browse or download permitted media through secure server-side delivery. Backend routes and services enforce album access, manage metadata and billing, and proxy Drive storage. The README documents these capabilities, while excerpts directly show application route mounting, provider selection, and several service dependencies; unsampled frontend-to-API links are therefore not asserted.

Main entry points: [`web/App.tsx`](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/web/App.tsx) (Web router), [`src/services/albums/album.service.ts`](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/albums/album.service.ts) (Album lifecycle), [`src/ports/storage.ts`](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/ports/storage.ts) (Storage contract), [`src/db/types.ts`](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/db/types.ts) (Metadata database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webapp["Web router<br/>[App.tsx]"]
  node_marketing["Marketing pages"]
  node_studio["Studio workflow"]
  node_admin["Admin console<br/>[AdminShell.tsx]"]
end

subgraph group_api["API and domain"]
  node_apiapp["Hono API<br/>[app.ts]"]
  node_auth["Authentication<br/>[auth.ts]"]
  node_albumroutes["Album routes<br/>[albums.ts]"]
  node_billing["Plans and billing<br/>[plans.service.ts]"]
  node_payments["Payment handling<br/>[upi.service.ts]"]
end

subgraph group_media["Media and sharing"]
  node_albums["Album lifecycle<br/>[album.service.ts]"]
  node_guestdelivery["Guest galleries<br/>[public-albums.ts]"]
  node_mediaops["Media operations<br/>[photographer.ts]"]
  node_qr["QR sharing<br/>[qr.service.ts]"]
  node_images["Image processing"]
end

subgraph group_platform["Persistence and integrations"]
  node_storageport["Storage contract<br/>[storage.ts]"]
  node_gdrive["Google Drive storage<br/>[storage-gdrive.ts]"]
  node_drive["Drive operations<br/>[drive.service.ts]"]
  node_oauth["Google OAuth<br/>[oauth.service.ts]"]
  node_database[("Metadata database<br/>[types.ts]")]
  node_face["Face-search service<br/>[main.py]"]
end

node_photographer(("Photographer"))
node_guest(("Gallery guest"))

node_photographer -->|"uses"| node_webapp
node_guest -->|"opens gallery"| node_webapp
node_webapp -->|"routes to"| node_marketing
node_webapp -->|"routes to"| node_studio
node_webapp -->|"routes to"| node_admin
node_apiapp -->|"mounts routes"| node_auth
node_apiapp -->|"mounts routes"| node_albumroutes
node_photographer -.->|"authenticates"| node_auth
node_albumroutes -.->|"manages albums"| node_albums
node_albums -->|"uses storage"| node_storageport
node_storageport -->|"implemented by"| node_gdrive
node_gdrive -->|"delegates Drive work"| node_drive
node_gdrive -->|"delegates OAuth"| node_oauth
node_oauth -->|"stores OAuth state"| node_database
node_drive -->|"reads metadata"| node_database
node_mediaops -.->|"uploads and streams"| node_storageport
node_mediaops -.->|"queues processing"| node_images
node_guestdelivery -.->|"streams media"| node_storageport
node_guestdelivery -.->|"enforces access"| node_albums
node_guestdelivery -->|"serves gallery"| node_guest
node_albums -->|"creates share tokens"| node_qr
node_qr -->|"stores token hashes"| node_database
node_payments -->|"applies plans"| node_billing
node_billing -->|"persists plans"| node_database
node_apiapp -->|"checks health"| node_face

click node_webapp "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/web/App.tsx"
click node_marketing "https://github.com/pimpaleg80-ship-it/flowget-/tree/main/features/fluxget/site/pages"
click node_studio "https://github.com/pimpaleg80-ship-it/flowget-/tree/main/features/fluxget/studio/pages"
click node_admin "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/features/fluxget/admin/components/AdminShell.tsx"
click node_apiapp "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/app.ts"
click node_auth "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/auth.ts"
click node_albums "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/albums/album.service.ts"
click node_albumroutes "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/albums.ts"
click node_guestdelivery "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/public-albums.ts"
click node_mediaops "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/photographer.ts"
click node_qr "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/qr/qr.service.ts"
click node_images "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/images/image-job.service.ts"
click node_billing "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/billing/plans.service.ts"
click node_payments "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/payments/upi.service.ts"
click node_storageport "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/ports/storage.ts"
click node_gdrive "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/adapters/storage-gdrive.ts"
click node_drive "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/google/drive.service.ts"
click node_oauth "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/google/oauth.service.ts"
click node_database "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/db/types.ts"
click node_face "https://github.com/pimpaleg80-ship-it/flowget-/blob/main/face_service/main.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_webapp,node_marketing,node_studio,node_admin toneBlue
class node_apiapp,node_auth,node_albumroutes,node_billing,node_payments toneAmber
class node_albums,node_guestdelivery,node_mediaops,node_qr,node_images toneMint
class node_storageport,node_gdrive,node_drive,node_oauth,node_database,node_face toneRose
class node_photographer,node_guest toneIndigo
```

## Components

### Web experience

- [Web router](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/web/App.tsx): `web/App.tsx`
- [Marketing pages](https://github.com/pimpaleg80-ship-it/flowget-/tree/main/features/fluxget/site/pages): `features/fluxget/site/pages`
- [Studio workflow](https://github.com/pimpaleg80-ship-it/flowget-/tree/main/features/fluxget/studio/pages): `features/fluxget/studio/pages`
- [Admin console](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/features/fluxget/admin/components/AdminShell.tsx): `features/fluxget/admin/components/AdminShell.tsx`

### API and domain

- [Hono API](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/app.ts): `src/app.ts`
- [Authentication](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/auth.ts): `src/routes/auth.ts`
- [Album routes](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/albums.ts): `src/routes/albums.ts`
- [Plans and billing](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/billing/plans.service.ts): `src/services/billing/plans.service.ts`
- [Payment handling](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/payments/upi.service.ts): `src/services/payments/upi.service.ts`

### Media and sharing

- [Album lifecycle](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/albums/album.service.ts): `src/services/albums/album.service.ts`
- [Guest galleries](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/public-albums.ts): `src/routes/public-albums.ts`
- [Media operations](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/routes/photographer.ts): `src/routes/photographer.ts`
- [QR sharing](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/qr/qr.service.ts): `src/services/qr/qr.service.ts`
- [Image processing](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/images/image-job.service.ts): `src/services/images/image-job.service.ts`

### Persistence and integrations

- [Storage contract](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/ports/storage.ts): `src/ports/storage.ts`
- [Google Drive storage](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/adapters/storage-gdrive.ts): `src/adapters/storage-gdrive.ts`
- [Drive operations](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/google/drive.service.ts): `src/services/google/drive.service.ts`
- [Google OAuth](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/services/google/oauth.service.ts): `src/services/google/oauth.service.ts`
- [Metadata database](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/src/db/types.ts): `src/db/types.ts`
- [Face-search service](https://github.com/pimpaleg80-ship-it/flowget-/blob/main/face_service/main.py): `face_service/main.py`

### Other components

- **Photographer**
- **Gallery guest**

## Connections

- Photographer → Web router: uses (evidence: `web/App.tsx`)
- Gallery guest → Web router: opens gallery (evidence: `web/App.tsx`)
- Web router → Marketing pages: routes to (evidence: `web/App.tsx`)
- Web router → Studio workflow: routes to (evidence: `web/App.tsx`)
- Web router → Admin console: routes to (evidence: `web/App.tsx`)
- Hono API → Authentication: mounts routes (evidence: `src/app.ts`)
- Hono API → Album routes: mounts routes (evidence: `src/app.ts`)
- Photographer → Authentication: authenticates (evidence: `README.md`)
- Album routes → Album lifecycle: manages albums (evidence: `README.md`)
- Album lifecycle → Storage contract: uses storage (evidence: `src/services/albums/album.service.ts`)
- Storage contract → Google Drive storage: implemented by (evidence: `src/adapters/storage-gdrive.ts`)
- Google Drive storage → Drive operations: delegates Drive work (evidence: `src/adapters/storage-gdrive.ts`)
- Google Drive storage → Google OAuth: delegates OAuth (evidence: `src/adapters/storage-gdrive.ts`)
- Google OAuth → Metadata database: stores OAuth state (evidence: `src/services/google/oauth.service.ts`)
- Drive operations → Metadata database: reads metadata (evidence: `src/services/google/drive.service.ts`)
- Media operations → Storage contract: uploads and streams
- Media operations → Image processing: queues processing
- Guest galleries → Storage contract: streams media (evidence: `README.md`)
- Guest galleries → Album lifecycle: enforces access (evidence: `README.md`)
- Guest galleries → Gallery guest: serves gallery (evidence: `README.md`)
- Album lifecycle → QR sharing: creates share tokens (evidence: `src/services/albums/album.service.ts`)
- QR sharing → Metadata database: stores token hashes (evidence: `src/services/qr/qr.service.ts`)
- Payment handling → Plans and billing: applies plans (evidence: `src/services/payments/upi.service.ts`)
- Plans and billing → Metadata database: persists plans (evidence: `src/services/billing/plans.service.ts`)
- Hono API → Face-search service: checks health (evidence: `src/app.ts`)
