# muhhaikalbaadilah/web_komik architecture

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

- Interactive diagram: https://gitdiagram.com/muhhaikalbaadilah/web_komik
- Repository: https://github.com/muhhaikalbaadilah/web_komik

## Overview

MangaVerse is a browser-based manga discovery and reading app backed by the api-manga Node/Express service. The user searches or browses latest, popular, and recommended comics, opens a comic’s details and chapter list, then requests chapter images to read in-browser. The API routes requests through provider-aware scraping and returns processed results; it also exposes a dashboard for API analytics. The map includes documented frontend capabilities and the sampled API’s internal processing and cache layers. Some subsystem links rely on the source index or README because their implementation excerpts were not provided.

Main entry points: [`api-manga/src/services/provider_manager.js`](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/provider_manager.js) (Provider manager), [`api-manga/src/services/api_service.js`](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/api_service.js) (Manga API service), [`api-manga/src/services/scrape_orchestrator.js`](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/scrape_orchestrator.js) (Scrape orchestrator), [`api-manga/src/router.js`](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/router.js) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["MangaVerse frontend"]
  node_reader["Manga reader<br/>[app.js]"]
  node_api_config["API configuration<br/>[config.js]"]
  node_dashboard_ui["Dashboard UI<br/>[dashboard.js]"]
end

subgraph group_api["API request handling"]
  node_server["Express server<br/>[server.js]"]
  node_routes["API routes<br/>[router.js]"]
  node_response["Response formatting<br/>[response_api.js]"]
end

subgraph group_scraping["Provider scraping"]
  node_provider_manager["Provider manager"]
  node_provider_config["Provider settings<br/>[providers.js]"]
  node_komikcast["Komikcast scraper<br/>[scraper_service.js]"]
  node_mangadex["MangaDex scraper"]
  node_shinigami["Shinigami scraper"]
  node_aquareader["Aquareader scraper"]
end

subgraph group_internals["Processing and operations"]
  node_api_service["Manga API service<br/>[api_service.js]"]
  node_orchestrator["Scrape orchestrator"]
  node_query_builder["Query builder<br/>[query_builder.js]"]
  node_data_processor["Data processing<br/>[data_processor.js]"]
  node_integrity["Data integrity<br/>[data_integrity.js]"]
  node_cache["Response cache<br/>[cache_service.js]"]
  node_request_queue["Request queue<br/>[request_queue.js]"]
  node_dashboard_service["Dashboard analytics"]
end

node_browser(("Reader"))
node_manga_sources(("Manga sources"))

node_browser -->|"uses"| node_reader
node_reader -->|"gets API URL"| node_api_config
node_reader -->|"requests manga data"| node_server
node_server -->|"mounts routes"| node_routes
node_routes -->|"calls manga operations"| node_api_service
node_routes -->|"caches responses"| node_cache
node_routes -->|"formats responses"| node_response
node_api_service -->|"coordinates scraping"| node_orchestrator
node_api_service -->|"filters results"| node_query_builder
node_api_service -->|"processes results"| node_data_processor
node_api_service -->|"tracks new items"| node_integrity
node_orchestrator -->|"dispatches provider work"| node_provider_manager
node_orchestrator -->|"queues requests"| node_request_queue
node_orchestrator -->|"checks integrity"| node_integrity
node_orchestrator -->|"uses cache"| node_cache
node_provider_manager -->|"reads provider settings"| node_provider_config
node_provider_manager -->|"loads scraper"| node_komikcast
node_provider_manager -->|"loads scraper"| node_mangadex
node_provider_manager -->|"loads scraper"| node_shinigami
node_provider_manager -->|"loads scraper"| node_aquareader
node_komikcast -.->|"scrapes source"| node_manga_sources
node_mangadex -.->|"fetches source data"| node_manga_sources
node_shinigami -.->|"fetches source data"| node_manga_sources
node_aquareader -.->|"scrapes source"| node_manga_sources
node_dashboard_ui -.->|"requests analytics"| node_dashboard_service
node_dashboard_service -->|"reads cache stats"| node_cache

click node_reader "https://github.com/muhhaikalbaadilah/web_komik/blob/main/app.js"
click node_api_config "https://github.com/muhhaikalbaadilah/web_komik/blob/main/config.js"
click node_server "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/server.js"
click node_routes "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/router.js"
click node_response "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/helper/response_api.js"
click node_api_service "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/api_service.js"
click node_orchestrator "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/scrape_orchestrator.js"
click node_provider_manager "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/provider_manager.js"
click node_provider_config "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/config/providers.js"
click node_komikcast "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/scraper_service.js"
click node_mangadex "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/mangadex_scraper.js"
click node_shinigami "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/shinigami_scraper.js"
click node_aquareader "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/aquareader_scraper.js"
click node_query_builder "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/query_builder.js"
click node_data_processor "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/data_processor.js"
click node_integrity "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/data_integrity.js"
click node_cache "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/helper/cache_service.js"
click node_request_queue "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/request_queue.js"
click node_dashboard_service "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/dashboard_service.js"
click node_dashboard_ui "https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/public/dashboard/js/dashboard.js"

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_reader,node_api_config,node_dashboard_ui toneBlue
class node_server,node_routes,node_response toneAmber
class node_provider_manager,node_provider_config,node_komikcast,node_mangadex,node_shinigami,node_aquareader toneMint
class node_api_service,node_orchestrator,node_query_builder,node_data_processor,node_integrity,node_cache,node_request_queue,node_dashboard_service toneRose
class node_browser,node_manga_sources toneIndigo
```

## Components

### MangaVerse frontend

- [Manga reader](https://github.com/muhhaikalbaadilah/web_komik/blob/main/app.js): `app.js`
- [API configuration](https://github.com/muhhaikalbaadilah/web_komik/blob/main/config.js): `config.js`
- [Dashboard UI](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/public/dashboard/js/dashboard.js): `api-manga/public/dashboard/js/dashboard.js`

### API request handling

- [Express server](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/server.js): `api-manga/src/server.js`
- [API routes](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/router.js): `api-manga/src/router.js`
- [Response formatting](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/helper/response_api.js): `api-manga/src/helper/response_api.js`

### Provider scraping

- [Provider manager](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/provider_manager.js): `api-manga/src/services/provider_manager.js`
- [Provider settings](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/config/providers.js): `api-manga/src/config/providers.js`
- [Komikcast scraper](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/scraper_service.js): `api-manga/src/services/scraper_service.js`
- [MangaDex scraper](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/mangadex_scraper.js): `api-manga/src/services/mangadex_scraper.js`
- [Shinigami scraper](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/shinigami_scraper.js): `api-manga/src/services/shinigami_scraper.js`
- [Aquareader scraper](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/aquareader_scraper.js): `api-manga/src/services/aquareader_scraper.js`

### Processing and operations

- [Manga API service](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/api_service.js): `api-manga/src/services/api_service.js`
- [Scrape orchestrator](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/scrape_orchestrator.js): `api-manga/src/services/scrape_orchestrator.js`
- [Query builder](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/query_builder.js): `api-manga/src/services/query_builder.js`
- [Data processing](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/data_processor.js): `api-manga/src/services/data_processor.js`
- [Data integrity](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/data_integrity.js): `api-manga/src/services/data_integrity.js`
- [Response cache](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/helper/cache_service.js): `api-manga/src/helper/cache_service.js`
- [Request queue](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/request_queue.js): `api-manga/src/services/request_queue.js`
- [Dashboard analytics](https://github.com/muhhaikalbaadilah/web_komik/blob/main/api-manga/src/services/dashboard_service.js): `api-manga/src/services/dashboard_service.js`

### Other components

- **Reader**
- **Manga sources**

## Connections

- Reader → Manga reader: uses (evidence: `README.md`)
- Manga reader → API configuration: gets API URL (evidence: `README.md`)
- Manga reader → Express server: requests manga data (evidence: `README.md`)
- Express server → API routes: mounts routes (evidence: `api-manga/src/server.js`)
- API routes → Manga API service: calls manga operations (evidence: `api-manga/src/router.js`)
- API routes → Response cache: caches responses (evidence: `api-manga/src/router.js`)
- API routes → Response formatting: formats responses (evidence: `api-manga/src/router.js`)
- Manga API service → Scrape orchestrator: coordinates scraping (evidence: `api-manga/src/services/api_service.js`)
- Manga API service → Query builder: filters results (evidence: `api-manga/src/services/api_service.js`)
- Manga API service → Data processing: processes results (evidence: `api-manga/src/services/api_service.js`)
- Manga API service → Data integrity: tracks new items (evidence: `api-manga/src/services/api_service.js`)
- Scrape orchestrator → Provider manager: dispatches provider work (evidence: `api-manga/src/services/scrape_orchestrator.js`)
- Scrape orchestrator → Request queue: queues requests (evidence: `api-manga/src/services/scrape_orchestrator.js`)
- Scrape orchestrator → Data integrity: checks integrity (evidence: `api-manga/src/services/scrape_orchestrator.js`)
- Scrape orchestrator → Response cache: uses cache (evidence: `api-manga/src/services/scrape_orchestrator.js`)
- Provider manager → Provider settings: reads provider settings (evidence: `api-manga/src/services/provider_manager.js`)
- Provider manager → Komikcast scraper: loads scraper (evidence: `api-manga/src/services/provider_manager.js`)
- Provider manager → MangaDex scraper: loads scraper (evidence: `api-manga/src/services/provider_manager.js`)
- Provider manager → Shinigami scraper: loads scraper (evidence: `api-manga/src/services/provider_manager.js`)
- Provider manager → Aquareader scraper: loads scraper (evidence: `api-manga/src/services/provider_manager.js`)
- Komikcast scraper → Manga sources: scrapes source
- MangaDex scraper → Manga sources: fetches source data
- Shinigami scraper → Manga sources: fetches source data
- Aquareader scraper → Manga sources: scrapes source
- Dashboard UI → Dashboard analytics: requests analytics
- Dashboard analytics → Response cache: reads cache stats (evidence: `api-manga/src/services/dashboard_service.js`)
