# nathanael540/nuvio-fontes-ptbr-plugin architecture

> Architecture diagram of the GitHub repository nathanael540/nuvio-fontes-ptbr-plugin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nathanael540/nuvio-fontes-ptbr-plugin
- Repository: https://github.com/nathanael540/nuvio-fontes-ptbr-plugin

## Overview

This repository supplies Nuvio with providers for Brazilian Portuguese dubbed and subtitled content. The app passes a TMDB ID and media/episode details to an enabled provider; the provider finds matching source content, resolves player or host streams, and returns streams in the app’s contract. Providers cover varied content sources, including anime, doramas, films and series. Shared blocks provide TMDB metadata, HTTP, language/quality discovery and stream construction. The README documents manifest-based provider selection and configuration; sampled entry points show the runtime stages and their calls, but not every provider’s implementation.

Main entry points: [`src`](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/tree/main/src) (Provider entry points), [`src/animesdigital/catalog.js`](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesdigital/catalog.js) (Anime catalogs), [`src/_blocks/tmdb-info/index.mjs`](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/tmdb-info/index.mjs) (TMDB metadata), [`src/animesdigital/player.js`](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesdigital/player.js) (Anime players)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_provider["Provider workflows"]
  node_provider_entry["Provider entry points"]
end

subgraph group_resolution["Catalog and playback"]
  node_anime_catalog["Anime catalogs<br/>[catalog.js]"]
  node_anime_player["Anime players<br/>[player.js]"]
  node_animesfhd_extract["Anime source extraction<br/>[extractor.js]"]
  node_animeshd_catalog["AnimesHD catalog<br/>[catalog.js]"]
  node_animeshd_site["AnimesHD site mapping<br/>[site.js]"]
  node_onlinecc_catalog["OnlineCC catalog<br/>[catalog.js]"]
  node_onlinecc_hosts["OnlineCC hosts<br/>[hosts.js]"]
  node_animezey_extract["AnimeZey extraction<br/>[extractor.js]"]
  node_cineagora_player["CineAgora player<br/>[player.js]"]
  node_dattebayo_seasons["Episode selection<br/>[seasons.js]"]
  node_dooplay_sources["DooPlay sources<br/>[sources.js]"]
  node_doramas_players["Doramas players<br/>[players.js]"]
  node_magnetbr_extract["Torrent extraction<br/>[extractor.js]"]
  node_nixplay_player["NixPlay player<br/>[player.js]"]
  node_venoplay_site["VenoPlay site mapping<br/>[site.js]"]
end

subgraph group_shared["Shared runtime blocks"]
  node_tmdb["TMDB metadata<br/>[index.mjs]"]
  node_http["HTTP requests<br/>[index.mjs]"]
  node_language["Language discovery<br/>[index.mjs]"]
  node_stream_build["Stream formatting<br/>[index.mjs]"]
end

node_nuvio(("Nuvio app"))
node_source_sites(("Provider source sites"))

node_nuvio -->|"requests streams"| node_provider_entry
node_provider_entry -->|"gets metadata"| node_tmdb
node_provider_entry -->|"finds candidate"| node_anime_catalog
node_provider_entry -->|"extracts streams"| node_anime_player
node_anime_catalog -->|"fetches pages"| node_http
node_provider_entry -->|"detects language"| node_language
node_provider_entry -->|"sorts streams"| node_stream_build
node_provider_entry -->|"extracts streams"| node_animesfhd_extract
node_provider_entry -->|"uses catalog"| node_animeshd_catalog
node_provider_entry -->|"uses site mapping"| node_animeshd_site
node_provider_entry -->|"uses catalog"| node_onlinecc_catalog
node_provider_entry -->|"resolves hosts"| node_onlinecc_hosts
node_provider_entry -->|"extracts streams"| node_animezey_extract
node_provider_entry -->|"resolves players"| node_cineagora_player
node_provider_entry -->|"collects episodes"| node_dattebayo_seasons
node_provider_entry -->|"uses sources"| node_dooplay_sources
node_provider_entry -->|"resolves options"| node_doramas_players
node_provider_entry -->|"extracts streams"| node_magnetbr_extract
node_provider_entry -->|"resolves player"| node_nixplay_player
node_provider_entry -->|"uses site mapping"| node_venoplay_site
node_provider_entry -->|"returns streams"| node_stream_build
node_source_sites -.->|"serves catalog"| node_anime_catalog
node_source_sites -.->|"serves embeds"| node_anime_player
node_tmdb -.->|"returns metadata"| node_provider_entry

click node_provider_entry "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/tree/main/src"
click node_anime_catalog "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesdigital/catalog.js"
click node_anime_player "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesdigital/player.js"
click node_animesfhd_extract "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesfhd/extractor.js"
click node_animeshd_catalog "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animeshd/catalog.js"
click node_animeshd_site "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animeshd/site.js"
click node_onlinecc_catalog "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesonlinecc/catalog.js"
click node_onlinecc_hosts "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesonlinecc/hosts.js"
click node_animezey_extract "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animezey/extractor.js"
click node_cineagora_player "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/cineagora/player.js"
click node_dattebayo_seasons "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/dattebayo/seasons.js"
click node_dooplay_sources "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/dooplay/sources.js"
click node_doramas_players "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/doramasonline/players.js"
click node_magnetbr_extract "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/magnetbr/extractor.js"
click node_nixplay_player "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/pobreflix-nixplay/player.js"
click node_venoplay_site "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/venoplay/site.js"
click node_tmdb "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/tmdb-info/index.mjs"
click node_http "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/http/index.mjs"
click node_language "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/language-discovery/index.mjs"
click node_stream_build "https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/stream-build/index.mjs"

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_provider_entry toneBlue
class node_anime_catalog,node_anime_player,node_animesfhd_extract,node_animeshd_catalog,node_animeshd_site,node_onlinecc_catalog,node_onlinecc_hosts,node_animezey_extract,node_cineagora_player,node_dattebayo_seasons,node_dooplay_sources,node_doramas_players,node_magnetbr_extract,node_nixplay_player,node_venoplay_site toneAmber
class node_tmdb,node_http,node_language,node_stream_build toneMint
class node_nuvio,node_source_sites toneIndigo
```

## Components

### Provider workflows

- [Provider entry points](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/tree/main/src): `src`

### Catalog and playback

- [Anime catalogs](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesdigital/catalog.js): `src/animesdigital/catalog.js`
- [Anime players](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesdigital/player.js): `src/animesdigital/player.js`
- [Anime source extraction](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesfhd/extractor.js): `src/animesfhd/extractor.js`
- [AnimesHD catalog](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animeshd/catalog.js): `src/animeshd/catalog.js`
- [AnimesHD site mapping](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animeshd/site.js): `src/animeshd/site.js`
- [OnlineCC catalog](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesonlinecc/catalog.js): `src/animesonlinecc/catalog.js`
- [OnlineCC hosts](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animesonlinecc/hosts.js): `src/animesonlinecc/hosts.js`
- [AnimeZey extraction](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/animezey/extractor.js): `src/animezey/extractor.js`
- [CineAgora player](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/cineagora/player.js): `src/cineagora/player.js`
- [Episode selection](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/dattebayo/seasons.js): `src/dattebayo/seasons.js`
- [DooPlay sources](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/dooplay/sources.js): `src/dooplay/sources.js`
- [Doramas players](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/doramasonline/players.js): `src/doramasonline/players.js`
- [Torrent extraction](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/magnetbr/extractor.js): `src/magnetbr/extractor.js`
- [NixPlay player](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/pobreflix-nixplay/player.js): `src/pobreflix-nixplay/player.js`
- [VenoPlay site mapping](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/venoplay/site.js): `src/venoplay/site.js`

### Shared runtime blocks

- [TMDB metadata](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/tmdb-info/index.mjs): `src/_blocks/tmdb-info/index.mjs`
- [HTTP requests](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/http/index.mjs): `src/_blocks/http/index.mjs`
- [Language discovery](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/language-discovery/index.mjs): `src/_blocks/language-discovery/index.mjs`
- [Stream formatting](https://github.com/nathanael540/nuvio-fontes-ptbr-plugin/blob/main/src/_blocks/stream-build/index.mjs): `src/_blocks/stream-build/index.mjs`

### Other components

- **Nuvio app**
- **Provider source sites**

## Connections

- Nuvio app → Provider entry points: requests streams (evidence: `README.md`)
- Provider entry points → TMDB metadata: gets metadata (evidence: `src/animesdigital/index.js`)
- Provider entry points → Anime catalogs: finds candidate (evidence: `src/animesdigital/index.js`)
- Provider entry points → Anime players: extracts streams (evidence: `src/animesdigital/index.js`)
- Anime catalogs → HTTP requests: fetches pages (evidence: `src/animesdigital/catalog.js`)
- Provider entry points → Language discovery: detects language (evidence: `src/animesdigital/index.js`)
- Provider entry points → Stream formatting: sorts streams (evidence: `src/animesdigital/index.js`)
- Provider entry points → Anime source extraction: extracts streams (evidence: `src/animesfhd/index.js`)
- Provider entry points → AnimesHD catalog: uses catalog (evidence: `src/animeshd/extractor.js`)
- Provider entry points → AnimesHD site mapping: uses site mapping (evidence: `src/animeshd/index.js`)
- Provider entry points → OnlineCC catalog: uses catalog (evidence: `src/animesonlinecc/extractor.js`)
- Provider entry points → OnlineCC hosts: resolves hosts (evidence: `src/animesonlinecc/extractor.js`)
- Provider entry points → AnimeZey extraction: extracts streams (evidence: `src/animezey/index.js`)
- Provider entry points → CineAgora player: resolves players (evidence: `src/cineagora/index.js`)
- Provider entry points → Episode selection: collects episodes (evidence: `src/dattebayo/index.js`)
- Provider entry points → DooPlay sources: uses sources (evidence: `src/dooplay/index.js`)
- Provider entry points → Doramas players: resolves options (evidence: `src/doramasonline/index.js`)
- Provider entry points → Torrent extraction: extracts streams (evidence: `src/magnetbr/index.js`)
- Provider entry points → NixPlay player: resolves player (evidence: `src/pobreflix-nixplay/index.js`)
- Provider entry points → VenoPlay site mapping: uses site mapping (evidence: `src/venoplay/index.js`)
- Provider entry points → Stream formatting: returns streams (evidence: `src/fshd/index.js`)
- Provider source sites → Anime catalogs: serves catalog
- Provider source sites → Anime players: serves embeds
- TMDB metadata → Provider entry points: returns metadata (evidence: `src/doramasonline/index.js`)
