# rokyg095-boop/-app-anivers-fore-sub architecture

> Architecture diagram of the GitHub repository rokyg095-boop/-app-anivers-fore-sub, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rokyg095-boop/-app-anivers-fore-sub
- Repository: https://github.com/rokyg095-boop/-app-anivers-fore-sub

## Overview

Aniverse is a browser-based media catalog and viewer for anime, dubbed series, movies, and comics, with administrative tools for managing works and episode sources. The user-facing flow runs from the app’s catalog and category views into comic readers or a video player; administrators can sign in, configure access gating, publish custom works, and maintain video links. The graph reflects documented imports and calls in the excerpts and SOURCE INDEX. Several component implementations were not sampled, so their internal behavior and unshown connections are omitted.

Main entry points: [`src/App.tsx`](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/App.tsx) (App shell), [`src/data/mockData.ts`](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/mockData.ts) (Catalog data), [`src/utils/videoSource.ts`](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/videoSource.ts) (Episode source service), [`src/components/VideoPlayerModal.tsx`](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/VideoPlayerModal.tsx) (Video player)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalog browsing"]
  node_app["App shell<br/>[App.tsx]"]
  node_hero["Featured catalog<br/>[HeroSection.tsx]"]
  node_anime["Anime catalog<br/>[AnimeView.tsx]"]
  node_movies["Movie catalog<br/>[MoviesView.tsx]"]
  node_comicdetail["Comic details"]
  node_comiccard["Comic cards<br/>[ComicCard.tsx]"]
end

subgraph group_viewing["Media viewing"]
  node_comicreader["Comic reader<br/>[ComicReader.tsx]"]
  node_video["Video player"]
  node_dubseries["Dubbed series details"]
end

subgraph group_admin["Administration"]
  node_admin["Media dashboard"]
  node_create_work["Create or edit work"]
  node_access_screen["Access gate screen"]
end

subgraph group_services["Data and services"]
  node_media_data["Catalog data<br/>[mockData.ts]"]
  node_dub_data["Dubbed season data"]
  node_naruto_data["Naruto data<br/>[narutoData.ts]"]
  node_episode_sources["Episode source service<br/>[videoSource.ts]"]
  node_comic_storage[("Chapter page storage<br/>[comicStorage.ts]")]
  node_custom_works["Custom work service<br/>[customWorks.ts]"]
  node_access_gate["Access gate service<br/>[accessGate.ts]"]
  node_firebase["Firebase client<br/>[firebase.ts]"]
  node_firestore[("Firebase services")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_anime
node_app -->|"renders"| node_movies
node_app -->|"renders"| node_comicdetail
node_app -->|"renders"| node_comiccard
node_app -->|"renders"| node_comicreader
node_app -->|"renders"| node_dubseries
node_app -->|"renders"| node_video
node_app -->|"renders"| node_admin
node_app -->|"renders"| node_create_work
node_app -->|"renders"| node_access_screen
node_app -->|"fetches config"| node_access_gate
node_hero -->|"reads catalog"| node_media_data
node_anime -->|"reads catalog"| node_media_data
node_movies -->|"reads catalog"| node_media_data
node_comiccard -->|"reads catalog"| node_media_data
node_comicdetail -->|"reads catalog"| node_media_data
node_dubseries -->|"reads series"| node_media_data
node_media_data -->|"imports seasons"| node_dub_data
node_media_data -->|"imports seasons"| node_naruto_data
node_anime -.->|"opens player"| node_video
node_movies -.->|"opens player"| node_video
node_dubseries -.->|"opens player"| node_video
node_video -->|"loads saved source"| node_episode_sources
node_admin -->|"saves episode source"| node_episode_sources
node_admin -->|"imports backups"| node_episode_sources
node_admin -->|"manages works"| node_custom_works
node_create_work -->|"saves work"| node_custom_works
node_access_screen -->|"uses gate config"| node_access_gate
node_comicreader -->|"loads chapter pages"| node_comic_storage
node_episode_sources -->|"checks admin"| node_firebase
node_custom_works -->|"checks admin"| node_firebase
node_access_gate -->|"checks admin"| node_firebase
node_firebase -->|"configures client"| node_firestore
node_episode_sources -->|"reads and writes"| node_firestore
node_custom_works -->|"reads and writes"| node_firestore
node_access_gate -->|"reads and writes"| node_firestore

click node_app "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/App.tsx"
click node_hero "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/HeroSection.tsx"
click node_anime "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AnimeView.tsx"
click node_movies "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/MoviesView.tsx"
click node_comicdetail "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/ComicDetailModal.tsx"
click node_comiccard "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/ComicCard.tsx"
click node_comicreader "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/ComicReader.tsx"
click node_video "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/VideoPlayerModal.tsx"
click node_dubseries "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/DubSeriesDetailModal.tsx"
click node_media_data "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/mockData.ts"
click node_dub_data "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/dubbedSeasonsData.ts"
click node_naruto_data "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/narutoData.ts"
click node_episode_sources "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/videoSource.ts"
click node_comic_storage "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/comicStorage.ts"
click node_admin "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AdminMediaDashboard.tsx"
click node_create_work "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AdminCreateWorkModal.tsx"
click node_custom_works "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/customWorks.ts"
click node_access_screen "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AccessGateScreen.tsx"
click node_access_gate "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/accessGate.ts"
click node_firebase "https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/firebase.ts"

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_app,node_hero,node_anime,node_movies,node_comicdetail,node_comiccard toneBlue
class node_comicreader,node_video,node_dubseries toneAmber
class node_admin,node_create_work,node_access_screen toneMint
class node_media_data,node_dub_data,node_naruto_data,node_episode_sources,node_comic_storage,node_custom_works,node_access_gate,node_firebase,node_firestore toneRose
class node_visitor toneIndigo
```

## Components

### Catalog browsing

- [App shell](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/App.tsx): `src/App.tsx`
- [Featured catalog](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/HeroSection.tsx): `src/components/HeroSection.tsx`
- [Anime catalog](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AnimeView.tsx): `src/components/AnimeView.tsx`
- [Movie catalog](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/MoviesView.tsx): `src/components/MoviesView.tsx`
- [Comic details](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/ComicDetailModal.tsx): `src/components/ComicDetailModal.tsx`
- [Comic cards](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/ComicCard.tsx): `src/components/ComicCard.tsx`

### Media viewing

- [Comic reader](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/ComicReader.tsx): `src/components/ComicReader.tsx`
- [Video player](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/VideoPlayerModal.tsx): `src/components/VideoPlayerModal.tsx`
- [Dubbed series details](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/DubSeriesDetailModal.tsx): `src/components/DubSeriesDetailModal.tsx`

### Administration

- [Media dashboard](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AdminMediaDashboard.tsx): `src/components/AdminMediaDashboard.tsx`
- [Create or edit work](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AdminCreateWorkModal.tsx): `src/components/AdminCreateWorkModal.tsx`
- [Access gate screen](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/components/AccessGateScreen.tsx): `src/components/AccessGateScreen.tsx`

### Data and services

- [Catalog data](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/mockData.ts): `src/data/mockData.ts`
- [Dubbed season data](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/dubbedSeasonsData.ts): `src/data/dubbedSeasonsData.ts`
- [Naruto data](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/data/narutoData.ts): `src/data/narutoData.ts`
- [Episode source service](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/videoSource.ts): `src/utils/videoSource.ts`
- [Chapter page storage](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/comicStorage.ts): `src/utils/comicStorage.ts`
- [Custom work service](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/customWorks.ts): `src/utils/customWorks.ts`
- [Access gate service](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/utils/accessGate.ts): `src/utils/accessGate.ts`
- [Firebase client](https://github.com/rokyg095-boop/-app-anivers-fore-sub/blob/main/src/firebase.ts): `src/firebase.ts`
- **Firebase services**

### Other components

- **Visitor**

## Connections

- Visitor → App shell: opens
- App shell → Featured catalog: renders (evidence: `src/App.tsx`)
- App shell → Anime catalog: renders (evidence: `src/App.tsx`)
- App shell → Movie catalog: renders (evidence: `src/App.tsx`)
- App shell → Comic details: renders (evidence: `src/App.tsx`)
- App shell → Comic cards: renders (evidence: `src/App.tsx`)
- App shell → Comic reader: renders (evidence: `src/App.tsx`)
- App shell → Dubbed series details: renders (evidence: `src/App.tsx`)
- App shell → Video player: renders (evidence: `src/App.tsx`)
- App shell → Media dashboard: renders (evidence: `src/App.tsx`)
- App shell → Create or edit work: renders (evidence: `src/App.tsx`)
- App shell → Access gate screen: renders (evidence: `src/App.tsx`)
- App shell → Access gate service: fetches config (evidence: `src/App.tsx`)
- Featured catalog → Catalog data: reads catalog (evidence: `src/components/HeroSection.tsx`)
- Anime catalog → Catalog data: reads catalog (evidence: `src/components/AnimeView.tsx`)
- Movie catalog → Catalog data: reads catalog (evidence: `src/components/MoviesView.tsx`)
- Comic cards → Catalog data: reads catalog (evidence: `src/components/ComicCard.tsx`)
- Comic details → Catalog data: reads catalog (evidence: `src/components/ComicDetailModal.tsx`)
- Dubbed series details → Catalog data: reads series (evidence: `src/components/DubSeriesDetailModal.tsx`)
- Catalog data → Dubbed season data: imports seasons (evidence: `src/data/mockData.ts`)
- Catalog data → Naruto data: imports seasons (evidence: `src/data/mockData.ts`)
- Anime catalog → Video player: opens player
- Movie catalog → Video player: opens player
- Dubbed series details → Video player: opens player
- Video player → Episode source service: loads saved source (evidence: `src/components/VideoPlayerModal.tsx`)
- Media dashboard → Episode source service: saves episode source (evidence: `src/components/AdminMediaDashboard.tsx`)
- Media dashboard → Episode source service: imports backups (evidence: `src/components/AdminMediaDashboard.tsx`)
- Media dashboard → Custom work service: manages works (evidence: `src/components/AdminMediaDashboard.tsx`)
- Create or edit work → Custom work service: saves work (evidence: `src/components/AdminCreateWorkModal.tsx`)
- Access gate screen → Access gate service: uses gate config (evidence: `src/components/AccessGateScreen.tsx`)
- Comic reader → Chapter page storage: loads chapter pages (evidence: `src/components/ComicReader.tsx`)
- Episode source service → Firebase client: checks admin (evidence: `src/utils/videoSource.ts`)
- Custom work service → Firebase client: checks admin (evidence: `src/utils/customWorks.ts`)
- Access gate service → Firebase client: checks admin (evidence: `src/utils/accessGate.ts`)
- Firebase client → Firebase services: configures client (evidence: `src/firebase.ts`)
- Episode source service → Firebase services: reads and writes (evidence: `src/utils/videoSource.ts`)
- Custom work service → Firebase services: reads and writes (evidence: `src/utils/customWorks.ts`)
- Access gate service → Firebase services: reads and writes (evidence: `src/utils/accessGate.ts`)
