# noiltydev/netcinema architecture

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

- Interactive diagram: https://gitdiagram.com/noiltydev/netcinema
- Repository: https://github.com/noiltydev/netcinema

## Overview

This Laravel application appears to provide anime catalog and provider-integration services, with a concrete Kodik-to-funteam import workflow. The supplied README describes Laravel, not this application’s product, and there are no sampled web routes establishing a user-facing workflow. Edges below follow the supplied source excerpts and SOURCE INDEX; other provider capabilities are included where the index documents them.

Main entry points: [`app/Services/KodikService.php`](https://github.com/noiltydev/netcinema/blob/main/app/Services/KodikService.php) (Kodik service), [`app/Services/FunteamImportService.php`](https://github.com/noiltydev/netcinema/blob/main/app/Services/FunteamImportService.php) (Funteam import service), [`app/Services/MyAnimeListService.php`](https://github.com/noiltydev/netcinema/blob/main/app/Services/MyAnimeListService.php) (MyAnimeList service), [`app/Http/Integrations/Kodik/KodikConnector.php`](https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/Kodik/KodikConnector.php) (Kodik API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalog domain"]
  node_anime["Anime records<br/>[Anime.php]"]
  node_taxonomy["Catalog enums"]
  node_funteam["Funteam records<br/>[Funteam.php]"]
  node_translation["Translations<br/>[Translation.php]"]
end

subgraph group_kodik["Kodik integration"]
  node_kodik_service["Kodik service<br/>[KodikService.php]"]
  node_kodik_api["Kodik API client<br/>[KodikConnector.php]"]
  node_kodik_requests["Kodik requests"]
  node_kodik_filters["Kodik query filters"]
  node_kodik_results["Kodik result data"]
  node_kodik_material["Kodik materials<br/>[KodikMaterial.php]"]
end

subgraph group_mal["MyAnimeList integration"]
  node_mal_service["MyAnimeList service"]
  node_mal_api["MyAnimeList client"]
  node_mal_requests["Ranking request"]
  node_mal_data["Ranking data and filters"]
end

subgraph group_storage["Persistence and import"]
  node_import_command["Funteam import command"]
  node_import_service["Funteam import service"]
  node_funteam_repo["Funteam repository"]
  node_source_repo["Source repository"]
  node_source[("Provider source links<br/>[Source.php]")]
  node_catalog_db[("Application database<br/>[database.php]")]
end

node_caller(("Application caller"))
node_kodik_external{{"Kodik service"}}
node_mal_external{{"MyAnimeList API"}}

node_caller -.->|"requests data"| node_kodik_service
node_caller -.->|"requests rankings"| node_mal_service
node_import_command -.->|"runs import"| node_import_service
node_kodik_service -->|"sends requests"| node_kodik_api
node_kodik_service -->|"constructs requests"| node_kodik_requests
node_kodik_service -->|"serializes filters"| node_kodik_filters
node_kodik_service -->|"returns data"| node_kodik_results
node_kodik_api -.->|"calls API"| node_kodik_external
node_kodik_results -->|"parses results"| node_kodik_material
node_mal_service -->|"sends requests"| node_mal_api
node_mal_service -->|"constructs request"| node_mal_requests
node_mal_service -->|"returns ranking"| node_mal_data
node_mal_api -.->|"calls API"| node_mal_external
node_import_service -->|"looks up links"| node_source_repo
node_import_service -->|"loads funteams"| node_funteam_repo
node_import_service -->|"upserts records"| node_funteam
node_import_service -->|"inserts links"| node_source
node_source_repo -->|"queries links"| node_source
node_anime -->|"casts catalog fields"| node_taxonomy

click node_anime "https://github.com/noiltydev/netcinema/blob/main/app/Models/Anime.php"
click node_taxonomy "https://github.com/noiltydev/netcinema/tree/main/app/Enums"
click node_funteam "https://github.com/noiltydev/netcinema/blob/main/app/Models/Funteam.php"
click node_translation "https://github.com/noiltydev/netcinema/blob/main/app/Models/Translation.php"
click node_kodik_service "https://github.com/noiltydev/netcinema/blob/main/app/Services/KodikService.php"
click node_kodik_api "https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/Kodik/KodikConnector.php"
click node_kodik_requests "https://github.com/noiltydev/netcinema/tree/main/app/Http/Integrations/Kodik/Requests"
click node_kodik_filters "https://github.com/noiltydev/netcinema/blob/main/app/Values/Kodik/KodikSearchFilters.php"
click node_kodik_results "https://github.com/noiltydev/netcinema/blob/main/app/Values/Kodik/KodikSearchData.php"
click node_kodik_material "https://github.com/noiltydev/netcinema/blob/main/app/Values/Kodik/KodikMaterial.php"
click node_mal_service "https://github.com/noiltydev/netcinema/blob/main/app/Services/MyAnimeListService.php"
click node_mal_api "https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/MyAnimeList/MyAnimeListConnector.php"
click node_mal_requests "https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/MyAnimeList/Requests/GetAnimeRankingRequest.php"
click node_mal_data "https://github.com/noiltydev/netcinema/blob/main/app/Values/MyAnimeList/MyAnimeListAnimeRankingData.php"
click node_import_command "https://github.com/noiltydev/netcinema/blob/main/app/Console/Commands/Kodik/ImportFunteamsCommand.php"
click node_import_service "https://github.com/noiltydev/netcinema/blob/main/app/Services/FunteamImportService.php"
click node_funteam_repo "https://github.com/noiltydev/netcinema/blob/main/app/Repositories/FunteamRepository.php"
click node_source_repo "https://github.com/noiltydev/netcinema/blob/main/app/Repositories/SourceRepository.php"
click node_source "https://github.com/noiltydev/netcinema/blob/main/app/Models/Source.php"
click node_catalog_db "https://github.com/noiltydev/netcinema/blob/main/config/database.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_anime,node_taxonomy,node_funteam,node_translation toneBlue
class node_kodik_service,node_kodik_api,node_kodik_requests,node_kodik_filters,node_kodik_results,node_kodik_material toneAmber
class node_mal_service,node_mal_api,node_mal_requests,node_mal_data,node_mal_external toneMint
class node_import_command,node_import_service,node_funteam_repo,node_source_repo,node_source,node_catalog_db toneRose
class node_caller,node_kodik_external toneIndigo
```

## Components

### Catalog domain

- [Anime records](https://github.com/noiltydev/netcinema/blob/main/app/Models/Anime.php): `app/Models/Anime.php`
- [Catalog enums](https://github.com/noiltydev/netcinema/tree/main/app/Enums): `app/Enums`
- [Funteam records](https://github.com/noiltydev/netcinema/blob/main/app/Models/Funteam.php): `app/Models/Funteam.php`
- [Translations](https://github.com/noiltydev/netcinema/blob/main/app/Models/Translation.php): `app/Models/Translation.php`

### Kodik integration

- [Kodik service](https://github.com/noiltydev/netcinema/blob/main/app/Services/KodikService.php): `app/Services/KodikService.php`
- [Kodik API client](https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/Kodik/KodikConnector.php): `app/Http/Integrations/Kodik/KodikConnector.php`
- [Kodik requests](https://github.com/noiltydev/netcinema/tree/main/app/Http/Integrations/Kodik/Requests): `app/Http/Integrations/Kodik/Requests`
- [Kodik query filters](https://github.com/noiltydev/netcinema/blob/main/app/Values/Kodik/KodikSearchFilters.php): `app/Values/Kodik/KodikSearchFilters.php`
- [Kodik result data](https://github.com/noiltydev/netcinema/blob/main/app/Values/Kodik/KodikSearchData.php): `app/Values/Kodik/KodikSearchData.php`
- [Kodik materials](https://github.com/noiltydev/netcinema/blob/main/app/Values/Kodik/KodikMaterial.php): `app/Values/Kodik/KodikMaterial.php`

### MyAnimeList integration

- [MyAnimeList service](https://github.com/noiltydev/netcinema/blob/main/app/Services/MyAnimeListService.php): `app/Services/MyAnimeListService.php`
- [MyAnimeList client](https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/MyAnimeList/MyAnimeListConnector.php): `app/Http/Integrations/MyAnimeList/MyAnimeListConnector.php`
- [Ranking request](https://github.com/noiltydev/netcinema/blob/main/app/Http/Integrations/MyAnimeList/Requests/GetAnimeRankingRequest.php): `app/Http/Integrations/MyAnimeList/Requests/GetAnimeRankingRequest.php`
- [Ranking data and filters](https://github.com/noiltydev/netcinema/blob/main/app/Values/MyAnimeList/MyAnimeListAnimeRankingData.php): `app/Values/MyAnimeList/MyAnimeListAnimeRankingData.php`

### Persistence and import

- [Funteam import command](https://github.com/noiltydev/netcinema/blob/main/app/Console/Commands/Kodik/ImportFunteamsCommand.php): `app/Console/Commands/Kodik/ImportFunteamsCommand.php`
- [Funteam import service](https://github.com/noiltydev/netcinema/blob/main/app/Services/FunteamImportService.php): `app/Services/FunteamImportService.php`
- [Funteam repository](https://github.com/noiltydev/netcinema/blob/main/app/Repositories/FunteamRepository.php): `app/Repositories/FunteamRepository.php`
- [Source repository](https://github.com/noiltydev/netcinema/blob/main/app/Repositories/SourceRepository.php): `app/Repositories/SourceRepository.php`
- [Provider source links](https://github.com/noiltydev/netcinema/blob/main/app/Models/Source.php): `app/Models/Source.php`
- [Application database](https://github.com/noiltydev/netcinema/blob/main/config/database.php): `config/database.php`

### Other components

- **Application caller**
- **Kodik service**
- **MyAnimeList API**

## Connections

- Application caller → Kodik service: requests data
- Application caller → MyAnimeList service: requests rankings
- Funteam import command → Funteam import service: runs import
- Kodik service → Kodik API client: sends requests (evidence: `app/Services/KodikService.php`)
- Kodik service → Kodik requests: constructs requests (evidence: `app/Services/KodikService.php`)
- Kodik service → Kodik query filters: serializes filters (evidence: `app/Services/KodikService.php`)
- Kodik service → Kodik result data: returns data (evidence: `app/Services/KodikService.php`)
- Kodik API client → Kodik service: calls API
- Kodik result data → Kodik materials: parses results (evidence: `app/Values/Kodik/KodikSearchData.php`)
- MyAnimeList service → MyAnimeList client: sends requests (evidence: `app/Services/MyAnimeListService.php`)
- MyAnimeList service → Ranking request: constructs request (evidence: `app/Services/MyAnimeListService.php`)
- MyAnimeList service → Ranking data and filters: returns ranking (evidence: `app/Services/MyAnimeListService.php`)
- MyAnimeList client → MyAnimeList API: calls API
- Funteam import service → Source repository: looks up links (evidence: `app/Services/FunteamImportService.php`)
- Funteam import service → Funteam repository: loads funteams (evidence: `app/Services/FunteamImportService.php`)
- Funteam import service → Funteam records: upserts records (evidence: `app/Services/FunteamImportService.php`)
- Funteam import service → Provider source links: inserts links (evidence: `app/Services/FunteamImportService.php`)
- Source repository → Provider source links: queries links (evidence: `app/Repositories/SourceRepository.php`)
- Anime records → Catalog enums: casts catalog fields (evidence: `app/Models/Anime.php`)
