# krishnahoccane/musicdesk architecture

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

- Interactive diagram: https://gitdiagram.com/krishnahoccane/musicdesk
- Repository: https://github.com/krishnahoccane/musicdesk

## Overview

LabelDesk is self-hosted, single-label music-management software. The principal workflow is staff maintaining artist and release/track records, coordinating manual DSP distribution, and administering royalties, contracts, and reports. Supporting capabilities include installation and licensing, media storage, plugins, and optional bulk-upload, REST API, incoming-webhook, and SSO add-ons. The tree and README establish these product areas; source excerpts are limited, so only a few internal call relationships are drawn, and unsampled subsystems are represented at directory level.

Main entry points: [`app/Livewire`](https://github.com/krishnahoccane/musicdesk/tree/master/app/Livewire) (LabelDesk app), [`app/Livewire/Settings/MediaStorage.php`](https://github.com/krishnahoccane/musicdesk/blob/master/app/Livewire/Settings/MediaStorage.php) (Media storage settings), [`app/Services/MediaStorage/MediaStorageManager.php`](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/MediaStorage/MediaStorageManager.php) (Storage destinations), [`app/Services/License/LicenseManager.php`](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/License/LicenseManager.php) (License providers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Catalog and operations"]
  node_labeldesk["LabelDesk app"]
  node_artists[("Artist management<br/>[Artist.php]")]
  node_releases[("Release catalog<br/>[Release.php]")]
  node_tracks[("Track catalog<br/>[Track.php]")]
  node_distribution["Manual distribution"]
  node_contracts["Artist contracts<br/>[Contracts.php]"]
end

subgraph group_finance["Royalties and reporting"]
  node_royalties["Royalty management"]
  node_reports["Reports"]
end

subgraph group_platform["Platform services"]
  node_installation["Browser installer"]
  node_licensing["License validation"]
  node_licenseproviders["License providers<br/>[LicenseManager.php]"]
  node_settings["Application settings"]
  node_mediaui["Media storage settings<br/>[MediaStorage.php]"]
  node_mediamanager["Storage destinations"]
  node_mediasync["Media synchronization"]
  node_activity["Activity audit<br/>[ActivityLogger.php]"]
end

subgraph group_integrations["External interfaces"]
end

subgraph group_addons["Optional add-ons"]
  node_bulk["Bulk upload"]
  node_restapi["REST API"]
  node_webhooks["Incoming webhooks"]
  node_sso["Single sign-on"]
end

node_staff(("Label staff"))

node_staff -->|"uses"| node_labeldesk
node_labeldesk -->|"manages"| node_artists
node_labeldesk -->|"manages"| node_releases
node_labeldesk -->|"manages"| node_tracks
node_labeldesk -->|"coordinates"| node_distribution
node_labeldesk -->|"manages"| node_royalties
node_labeldesk -->|"manages"| node_contracts
node_labeldesk -->|"produces"| node_reports
node_mediaui -->|"configures"| node_mediamanager
node_mediaui -->|"uses"| node_mediasync
node_mediamanager -->|"reads settings"| node_settings
node_licenseproviders -->|"provides drivers"| node_licensing

click node_labeldesk "https://github.com/krishnahoccane/musicdesk/tree/master/app/Livewire"
click node_artists "https://github.com/krishnahoccane/musicdesk/blob/master/app/Models/Artist.php"
click node_releases "https://github.com/krishnahoccane/musicdesk/blob/master/app/Models/Release.php"
click node_tracks "https://github.com/krishnahoccane/musicdesk/blob/master/app/Models/Track.php"
click node_distribution "https://github.com/krishnahoccane/musicdesk/tree/master/app/Services/Distribution"
click node_contracts "https://github.com/krishnahoccane/musicdesk/blob/master/app/Livewire/Artists/Contracts.php"
click node_royalties "https://github.com/krishnahoccane/musicdesk/tree/master/app/Services/Royalties"
click node_reports "https://github.com/krishnahoccane/musicdesk/tree/master/app/Reports"
click node_installation "https://github.com/krishnahoccane/musicdesk/tree/master/app/Services/Installation"
click node_licensing "https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/License/LicenseValidationService.php"
click node_licenseproviders "https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/License/LicenseManager.php"
click node_settings "https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/SettingsService.php"
click node_mediaui "https://github.com/krishnahoccane/musicdesk/blob/master/app/Livewire/Settings/MediaStorage.php"
click node_mediamanager "https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/MediaStorage/MediaStorageManager.php"
click node_mediasync "https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/MediaStorage/MediaSyncService.php"
click node_activity "https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/Activity/ActivityLogger.php"
click node_bulk "https://github.com/krishnahoccane/musicdesk/tree/master/addons/bulk-upload/src/Services"
click node_restapi "https://github.com/krishnahoccane/musicdesk/tree/master/addons/rest-api/src/Http/Controllers"
click node_webhooks "https://github.com/krishnahoccane/musicdesk/tree/master/addons/incoming-webhooks/src/Services"
click node_sso "https://github.com/krishnahoccane/musicdesk/tree/master/addons/sso/src"

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_labeldesk,node_artists,node_releases,node_tracks,node_distribution,node_contracts toneBlue
class node_royalties,node_reports toneAmber
class node_installation,node_licensing,node_licenseproviders,node_settings,node_mediaui,node_mediamanager,node_mediasync,node_activity toneMint
class node_bulk,node_restapi,node_webhooks,node_sso,node_staff toneIndigo
```

## Components

### Catalog and operations

- [LabelDesk app](https://github.com/krishnahoccane/musicdesk/tree/master/app/Livewire): `app/Livewire`
- [Artist management](https://github.com/krishnahoccane/musicdesk/blob/master/app/Models/Artist.php): `app/Models/Artist.php`
- [Release catalog](https://github.com/krishnahoccane/musicdesk/blob/master/app/Models/Release.php): `app/Models/Release.php`
- [Track catalog](https://github.com/krishnahoccane/musicdesk/blob/master/app/Models/Track.php): `app/Models/Track.php`
- [Manual distribution](https://github.com/krishnahoccane/musicdesk/tree/master/app/Services/Distribution): `app/Services/Distribution`
- [Artist contracts](https://github.com/krishnahoccane/musicdesk/blob/master/app/Livewire/Artists/Contracts.php): `app/Livewire/Artists/Contracts.php`

### Royalties and reporting

- [Royalty management](https://github.com/krishnahoccane/musicdesk/tree/master/app/Services/Royalties): `app/Services/Royalties`
- [Reports](https://github.com/krishnahoccane/musicdesk/tree/master/app/Reports): `app/Reports`

### Platform services

- [Browser installer](https://github.com/krishnahoccane/musicdesk/tree/master/app/Services/Installation): `app/Services/Installation`
- [License validation](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/License/LicenseValidationService.php): `app/Services/License/LicenseValidationService.php`
- [License providers](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/License/LicenseManager.php): `app/Services/License/LicenseManager.php`
- [Application settings](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/SettingsService.php): `app/Services/SettingsService.php`
- [Media storage settings](https://github.com/krishnahoccane/musicdesk/blob/master/app/Livewire/Settings/MediaStorage.php): `app/Livewire/Settings/MediaStorage.php`
- [Storage destinations](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/MediaStorage/MediaStorageManager.php): `app/Services/MediaStorage/MediaStorageManager.php`
- [Media synchronization](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/MediaStorage/MediaSyncService.php): `app/Services/MediaStorage/MediaSyncService.php`
- [Activity audit](https://github.com/krishnahoccane/musicdesk/blob/master/app/Services/Activity/ActivityLogger.php): `app/Services/Activity/ActivityLogger.php`

### Optional add-ons

- [Bulk upload](https://github.com/krishnahoccane/musicdesk/tree/master/addons/bulk-upload/src/Services): `addons/bulk-upload/src/Services`
- [REST API](https://github.com/krishnahoccane/musicdesk/tree/master/addons/rest-api/src/Http/Controllers): `addons/rest-api/src/Http/Controllers`
- [Incoming webhooks](https://github.com/krishnahoccane/musicdesk/tree/master/addons/incoming-webhooks/src/Services): `addons/incoming-webhooks/src/Services`
- [Single sign-on](https://github.com/krishnahoccane/musicdesk/tree/master/addons/sso/src): `addons/sso/src`

### Other components

- **Label staff**

## Connections

- Label staff → LabelDesk app: uses (evidence: `README.md`)
- LabelDesk app → Artist management: manages (evidence: `README.md`)
- LabelDesk app → Release catalog: manages (evidence: `README.md`)
- LabelDesk app → Track catalog: manages (evidence: `README.md`)
- LabelDesk app → Manual distribution: coordinates (evidence: `README.md`)
- LabelDesk app → Royalty management: manages (evidence: `README.md`)
- LabelDesk app → Artist contracts: manages (evidence: `README.md`)
- LabelDesk app → Reports: produces (evidence: `README.md`)
- Media storage settings → Storage destinations: configures (evidence: `app/Livewire/Settings/MediaStorage.php`)
- Media storage settings → Media synchronization: uses (evidence: `app/Livewire/Settings/MediaStorage.php`)
- Storage destinations → Application settings: reads settings (evidence: `app/Services/MediaStorage/MediaStorageManager.php`)
- License providers → License validation: provides drivers (evidence: `app/Services/License/LicenseManager.php`)
