# nikhilmeshram2006/apple-music-clone-for-me-only architecture

> Architecture diagram of the GitHub repository nikhilmeshram2006/apple-music-clone-for-me-only, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nikhilmeshram2006/apple-music-clone-for-me-only
- Repository: https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only

## Overview

This is a React-based personal music-streaming web client. A listener browses or searches the catalog, opens a track or artist, and plays audio with synchronized lyrics; library actions persist favorites, playlists, follows, and history locally. The repository also documents a catalog-enrichment pipeline and an administrative Studio Console. The runtime connections below are supported by the excerpts and SOURCE INDEX; some detailed page behavior and pipeline internals were not sampled.

Main entry points: [`src/api.js`](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/api.js) (Catalog and media API), [`src/App.jsx`](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/App.jsx) (App routing), [`src/components/NowPlaying.jsx`](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/NowPlaying.jsx) (Now playing UI), [`src/components/Shared.jsx`](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/Shared.jsx) (Track and artist cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Listening experience"]
  node_app["App routing<br/>[App.jsx]"]
  node_fluid["Motion backgrounds"]
end

subgraph group_playback["Playback and library"]
  node_player["Player state<br/>[store.jsx]"]
  node_nowplaying["Now playing UI<br/>[NowPlaying.jsx]"]
  node_lyrics["Synced lyrics<br/>[Lyrics.jsx]"]
  node_shared["Track and artist cards<br/>[Shared.jsx]"]
  node_dock["Bottom controls<br/>[BottomDock.jsx]"]
  node_library[("Local library state<br/>[store.jsx]")]
end

subgraph group_content["Catalog and discovery"]
  node_home["Home browse<br/>[Home.jsx]"]
  node_artist["Artist profiles<br/>[Artist.jsx]"]
  node_otherpages["Search and library pages<br/>[OtherPages.jsx]"]
  node_api["Catalog and media API<br/>[api.js]"]
  node_catalogdata[("Bundled catalog and media")]
end

subgraph group_admin["Catalog management"]
  node_studio["Studio Console<br/>[StudioPanel.jsx]"]
  node_studio_core["Studio security and patches<br/>[studioCore.js]"]
  node_catalog_builder["Catalog enrichment<br/>[build_catalog.py]"]
  node_song_sources["Song source definitions<br/>[songs.py]"]
end

node_listener(("Listener"))
node_external["Music and lyrics services"]

node_listener -->|"uses"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_artist
node_app -->|"routes to"| node_otherpages
node_app -->|"renders"| node_nowplaying
node_app -->|"routes to"| node_studio
node_app -->|"loads overrides"| node_studio_core
node_home -->|"queries catalog"| node_api
node_home -->|"renders"| node_shared
node_artist -->|"loads artist data"| node_api
node_artist -->|"starts playback"| node_player
node_artist -->|"renders"| node_shared
node_otherpages -->|"searches"| node_api
node_otherpages -->|"renders"| node_shared
node_api -->|"reads catalog and lyrics"| node_catalogdata
node_api -->|"fetches media and lyrics"| node_external
node_player -->|"resolves full stream"| node_api
node_nowplaying -->|"loads lyrics"| node_api
node_nowplaying -->|"displays"| node_lyrics
node_nowplaying -->|"renders"| node_fluid
node_nowplaying -->|"renders song menu"| node_shared
node_nowplaying -->|"controls playback"| node_player
node_dock -->|"controls playback"| node_player
node_shared -->|"queues tracks"| node_player
node_shared -->|"updates favorites"| node_library
node_studio -->|"verifies and patches"| node_studio_core
node_studio -->|"exports catalog data"| node_api
node_catalog_builder -->|"imports"| node_song_sources
node_catalog_builder -.->|"enriches catalog"| node_external

click node_app "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/App.jsx"
click node_home "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/Home.jsx"
click node_artist "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/Artist.jsx"
click node_otherpages "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/OtherPages.jsx"
click node_api "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/api.js"
click node_catalogdata "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/tree/main/public/data"
click node_player "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/store.jsx"
click node_nowplaying "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/NowPlaying.jsx"
click node_lyrics "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/Lyrics.jsx"
click node_shared "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/Shared.jsx"
click node_dock "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/BottomDock.jsx"
click node_fluid "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/FluidBackground.jsx"
click node_library "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/store.jsx"
click node_studio "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/StudioPanel.jsx"
click node_studio_core "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/utils/studioCore.js"
click node_catalog_builder "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/scripts/build_catalog.py"
click node_song_sources "https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/scripts/songs.py"

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_fluid toneBlue
class node_player,node_nowplaying,node_lyrics,node_shared,node_dock,node_library toneAmber
class node_home,node_artist,node_otherpages,node_api,node_catalogdata toneMint
class node_studio,node_studio_core,node_catalog_builder,node_song_sources toneRose
class node_listener,node_external toneIndigo
```

## Components

### Listening experience

- [App routing](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/App.jsx): `src/App.jsx`
- [Motion backgrounds](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/FluidBackground.jsx): `src/components/FluidBackground.jsx`

### Playback and library

- [Player state](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/store.jsx): `src/store.jsx`
- [Now playing UI](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/NowPlaying.jsx): `src/components/NowPlaying.jsx`
- [Synced lyrics](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/Lyrics.jsx): `src/components/Lyrics.jsx`
- [Track and artist cards](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/Shared.jsx): `src/components/Shared.jsx`
- [Bottom controls](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/components/BottomDock.jsx): `src/components/BottomDock.jsx`
- [Local library state](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/store.jsx): `src/store.jsx`

### Catalog and discovery

- [Home browse](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Artist profiles](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/Artist.jsx): `src/pages/Artist.jsx`
- [Search and library pages](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/OtherPages.jsx): `src/pages/OtherPages.jsx`
- [Catalog and media API](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/api.js): `src/api.js`
- [Bundled catalog and media](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/tree/main/public/data): `public/data`

### Catalog management

- [Studio Console](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/pages/StudioPanel.jsx): `src/pages/StudioPanel.jsx`
- [Studio security and patches](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/src/utils/studioCore.js): `src/utils/studioCore.js`
- [Catalog enrichment](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/scripts/build_catalog.py): `scripts/build_catalog.py`
- [Song source definitions](https://github.com/nikhilmeshram2006/apple-music-clone-for-me-only/blob/main/scripts/songs.py): `scripts/songs.py`

### Other components

- **Listener**
- **Music and lyrics services**

## Connections

- Listener → App routing: uses (evidence: `README.md`)
- App routing → Home browse: routes to (evidence: `src/App.jsx`)
- App routing → Artist profiles: routes to (evidence: `src/App.jsx`)
- App routing → Search and library pages: routes to (evidence: `src/App.jsx`)
- App routing → Now playing UI: renders (evidence: `src/App.jsx`)
- App routing → Studio Console: routes to (evidence: `src/App.jsx`)
- App routing → Studio security and patches: loads overrides (evidence: `src/App.jsx`)
- Home browse → Catalog and media API: queries catalog (evidence: `src/pages/Home.jsx`)
- Home browse → Track and artist cards: renders (evidence: `src/pages/Home.jsx`)
- Artist profiles → Catalog and media API: loads artist data (evidence: `src/pages/Artist.jsx`)
- Artist profiles → Player state: starts playback (evidence: `src/pages/Artist.jsx`)
- Artist profiles → Track and artist cards: renders (evidence: `src/pages/Artist.jsx`)
- Search and library pages → Catalog and media API: searches (evidence: `src/pages/OtherPages.jsx`)
- Search and library pages → Track and artist cards: renders (evidence: `src/pages/OtherPages.jsx`)
- Catalog and media API → Bundled catalog and media: reads catalog and lyrics (evidence: `src/api.js`)
- Catalog and media API → Music and lyrics services: fetches media and lyrics (evidence: `src/api.js`)
- Player state → Catalog and media API: resolves full stream (evidence: `src/store.jsx`)
- Now playing UI → Catalog and media API: loads lyrics (evidence: `src/components/NowPlaying.jsx`)
- Now playing UI → Synced lyrics: displays (evidence: `src/components/NowPlaying.jsx`)
- Now playing UI → Motion backgrounds: renders (evidence: `src/components/NowPlaying.jsx`)
- Now playing UI → Track and artist cards: renders song menu (evidence: `src/components/NowPlaying.jsx`)
- Now playing UI → Player state: controls playback (evidence: `src/components/NowPlaying.jsx`)
- Bottom controls → Player state: controls playback (evidence: `src/components/BottomDock.jsx`)
- Track and artist cards → Player state: queues tracks (evidence: `src/components/Shared.jsx`)
- Track and artist cards → Local library state: updates favorites (evidence: `src/components/Shared.jsx`)
- Studio Console → Studio security and patches: verifies and patches (evidence: `src/pages/StudioPanel.jsx`)
- Studio Console → Catalog and media API: exports catalog data (evidence: `src/pages/StudioPanel.jsx`)
- Catalog enrichment → Song source definitions: imports (evidence: `scripts/build_catalog.py`)
- Catalog enrichment → Music and lyrics services: enriches catalog (evidence: `README.md`)
