# pdone/lx-music-source architecture

> Architecture diagram of the GitHub repository pdone/lx-music-source, 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/pdone/lx-music-source
- Repository: https://github.com/pdone/lx-music-source

## Overview

This repository distributes LX Music source scripts: users import a provider’s `latest.js` into an LX Music client, which can then request music URLs (and, for some sources, search). The main product is the collection of independently maintained source adapters, not a shared runtime service. Several sampled adapters visibly call remote APIs; the remaining source implementations are only partially sampled or unsampled, so their internal behavior and external calls are not mapped here.

Main entry points: [`huanyin/latest.js`](https://github.com/pdone/lx-music-source/blob/main/huanyin/latest.js) (HuanYin source), [`huibq/latest.js`](https://github.com/pdone/lx-music-source/blob/main/huibq/latest.js) (Huibq source), [`ikun/latest.js`](https://github.com/pdone/lx-music-source/blob/main/ikun/latest.js) (ikun source), [`juhe/latest.js`](https://github.com/pdone/lx-music-source/blob/main/juhe/latest.js) (Juhe source)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Source catalog"]
end

subgraph group_community["Community sources"]
  node_sixyin["SixYin source<br/>[latest.js]"]
  node_flower["Flower source<br/>[latest.js]"]
  node_grass["Grass source<br/>[latest.js]"]
  node_lxsource["LX source<br/>[latest.js]"]
  node_changqing["ChangQing source<br/>[latest.js]"]
  node_huanyin["HuanYin source<br/>[latest.js]"]
end

subgraph group_api["API-backed sources"]
  node_huibq["Huibq source<br/>[latest.js]"]
  node_ikun["ikun source<br/>[latest.js]"]
  node_juhe["Juhe source<br/>[latest.js]"]
  node_qdy["QDY aggregator<br/>[latest.js]"]
end

node_user(("LX Music user"))
node_client["LX Music client"]
node_migu["Migu API"]
node_huibqapi["Huibq API"]
node_ikunapi["ikun API server"]
node_juheapi["Juhe API"]

node_user -->|"imports source"| node_client
node_client -.->|"requests source"| node_sixyin
node_client -.->|"requests source"| node_flower
node_client -.->|"requests source"| node_grass
node_client -.->|"requests source"| node_lxsource
node_client -.->|"requests source"| node_changqing
node_client -.->|"requests source"| node_huanyin
node_client -.->|"requests source"| node_huibq
node_client -.->|"requests source"| node_ikun
node_client -.->|"requests source"| node_juhe
node_client -.->|"requests source"| node_qdy
node_huanyin -->|"requests songs"| node_migu
node_huibq -->|"fetches URL"| node_huibqapi
node_ikun -->|"fetches URL"| node_ikunapi
node_juhe -->|"requests source"| node_juheapi

click node_sixyin "https://github.com/pdone/lx-music-source/blob/main/sixyin/latest.js"
click node_flower "https://github.com/pdone/lx-music-source/blob/main/flower/latest.js"
click node_grass "https://github.com/pdone/lx-music-source/blob/main/grass/latest.js"
click node_lxsource "https://github.com/pdone/lx-music-source/blob/main/lx/latest.js"
click node_changqing "https://github.com/pdone/lx-music-source/blob/main/changqing/latest.js"
click node_huanyin "https://github.com/pdone/lx-music-source/blob/main/huanyin/latest.js"
click node_huibq "https://github.com/pdone/lx-music-source/blob/main/huibq/latest.js"
click node_ikun "https://github.com/pdone/lx-music-source/blob/main/ikun/latest.js"
click node_juhe "https://github.com/pdone/lx-music-source/blob/main/juhe/latest.js"
click node_qdy "https://github.com/pdone/lx-music-source/blob/main/qdy/latest.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_sixyin,node_flower,node_grass,node_lxsource,node_changqing,node_huanyin toneAmber
class node_huibq,node_ikun,node_juhe,node_qdy,node_migu,node_huibqapi,node_ikunapi,node_juheapi toneMint
class node_user,node_client toneBlue
```

## Components

### Community sources

- [SixYin source](https://github.com/pdone/lx-music-source/blob/main/sixyin/latest.js): `sixyin/latest.js`
- [Flower source](https://github.com/pdone/lx-music-source/blob/main/flower/latest.js): `flower/latest.js`
- [Grass source](https://github.com/pdone/lx-music-source/blob/main/grass/latest.js): `grass/latest.js`
- [LX source](https://github.com/pdone/lx-music-source/blob/main/lx/latest.js): `lx/latest.js`
- [ChangQing source](https://github.com/pdone/lx-music-source/blob/main/changqing/latest.js): `changqing/latest.js`
- [HuanYin source](https://github.com/pdone/lx-music-source/blob/main/huanyin/latest.js): `huanyin/latest.js`

### API-backed sources

- [Huibq source](https://github.com/pdone/lx-music-source/blob/main/huibq/latest.js): `huibq/latest.js`
- [ikun source](https://github.com/pdone/lx-music-source/blob/main/ikun/latest.js): `ikun/latest.js`
- [Juhe source](https://github.com/pdone/lx-music-source/blob/main/juhe/latest.js): `juhe/latest.js`
- [QDY aggregator](https://github.com/pdone/lx-music-source/blob/main/qdy/latest.js): `qdy/latest.js`

### Other components

- **LX Music user**
- **LX Music client**
- **Migu API**
- **Huibq API**
- **ikun API server**
- **Juhe API**

## Connections

- LX Music user → LX Music client: imports source (evidence: `README.md`)
- LX Music client → SixYin source: requests source
- LX Music client → Flower source: requests source
- LX Music client → Grass source: requests source
- LX Music client → LX source: requests source
- LX Music client → ChangQing source: requests source
- LX Music client → HuanYin source: requests source
- LX Music client → Huibq source: requests source
- LX Music client → ikun source: requests source
- LX Music client → Juhe source: requests source
- LX Music client → QDY aggregator: requests source
- HuanYin source → Migu API: requests songs
- Huibq source → Huibq API: fetches URL
- ikun source → ikun API server: fetches URL
- Juhe source → Juhe API: requests source
