# fikrifz-17/simple-mal-clone architecture

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

- Interactive diagram: https://gitdiagram.com/fikrifz-17/simple-mal-clone
- Repository: https://github.com/fikrifz-17/simple-mal-clone

## Overview

Simple Mal is a React anime browser backed by Jikan. A visitor opens the app, reaches the popular-anime or search view, and can select a listing to open its detail page; both views fetch their data from Jikan. The home view also persists search state in browser storage and shows skeletons while loading. The README documents popular lists, search, details, routing, and hooks; source excerpts confirm the main fetch and render paths. Unshown styling and any trailer-provider behavior are omitted.

Main entry points: [`src/pages/Home.jsx`](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/pages/Home.jsx) (Home View), [`src/routers/route.jsx`](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/routers/route.jsx) (Route Config), [`src/main.jsx`](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/main.jsx) (React Entry), [`src/App.jsx`](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/App.jsx) (App Shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App Navigation"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_app["App Shell<br/>[App.jsx]"]
  node_routes["Route Config<br/>[route.jsx]"]
end

subgraph group_discovery["Anime Discovery"]
  node_home["Home View<br/>[Home.jsx]"]
  node_header["Site Header<br/>[Header.jsx]"]
  node_menu["Search Menu<br/>[Menu.jsx]"]
  node_anime_cards["Anime Listings<br/>[AnimeLists.jsx]"]
  node_loading_skeleton["Loading Skeleton<br/>[Skeleton.jsx]"]
  node_browser_storage[("Browser Storage")]
end

subgraph group_details["Anime Details"]
  node_details["Details View<br/>[Details.jsx]"]
end

node_visitor(("Visitor"))
node_jikan["Jikan API"]

node_visitor -.->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"provides routes"| node_routes
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_details
node_home -->|"renders"| node_header
node_home -->|"renders"| node_menu
node_home -->|"renders results"| node_anime_cards
node_home -->|"renders while loading"| node_loading_skeleton
node_home -->|"reads and writes"| node_browser_storage
node_home -->|"fetches lists"| node_jikan
node_anime_cards -->|"navigates to details"| node_routes
node_details -->|"fetches details"| node_jikan

click node_entry "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/main.jsx"
click node_app "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/App.jsx"
click node_routes "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/routers/route.jsx"
click node_home "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/pages/Home.jsx"
click node_header "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/Header.jsx"
click node_menu "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/Menu.jsx"
click node_anime_cards "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/AnimeLists.jsx"
click node_loading_skeleton "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/Skeleton.jsx"
click node_details "https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/pages/Details.jsx"

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_entry,node_app,node_routes toneBlue
class node_home,node_header,node_menu,node_anime_cards,node_loading_skeleton,node_browser_storage toneAmber
class node_details,node_jikan toneMint
class node_visitor toneIndigo
```

## Components

### App Navigation

- [React Entry](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/main.jsx): `src/main.jsx`
- [App Shell](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/App.jsx): `src/App.jsx`
- [Route Config](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/routers/route.jsx): `src/routers/route.jsx`

### Anime Discovery

- [Home View](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Site Header](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/Header.jsx): `src/components/Header.jsx`
- [Search Menu](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/Menu.jsx): `src/components/Menu.jsx`
- [Anime Listings](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/AnimeLists.jsx): `src/components/AnimeLists.jsx`
- [Loading Skeleton](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/components/Skeleton.jsx): `src/components/Skeleton.jsx`
- **Browser Storage**

### Anime Details

- [Details View](https://github.com/fikrifz-17/simple-mal-clone/blob/main/src/pages/Details.jsx): `src/pages/Details.jsx`

### Other components

- **Visitor**
- **Jikan API**

## Connections

- Visitor → React Entry: opens
- React Entry → App Shell: renders (evidence: `src/main.jsx`)
- App Shell → Route Config: provides routes (evidence: `src/App.jsx`)
- Route Config → Home View: routes to (evidence: `src/routers/route.jsx`)
- Route Config → Details View: routes to (evidence: `src/routers/route.jsx`)
- Home View → Site Header: renders (evidence: `src/pages/Home.jsx`)
- Home View → Search Menu: renders (evidence: `src/pages/Home.jsx`)
- Home View → Anime Listings: renders results (evidence: `src/pages/Home.jsx`)
- Home View → Loading Skeleton: renders while loading (evidence: `src/pages/Home.jsx`)
- Home View → Browser Storage: reads and writes (evidence: `src/pages/Home.jsx`)
- Home View → Jikan API: fetches lists (evidence: `src/pages/Home.jsx`)
- Anime Listings → Route Config: navigates to details (evidence: `src/components/AnimeLists.jsx`)
- Details View → Jikan API: fetches details (evidence: `src/pages/Details.jsx`)
