# spicetify/marketplace architecture

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

- Interactive diagram: https://gitdiagram.com/spicetify/marketplace
- Repository: https://github.com/spicetify/marketplace

## Overview

Spicetify Marketplace is an in-client catalog for browsing and installing extensions, themes, and CSS snippets; custom apps are listed but require manual installation. The main user flow enters the app, browses category results, and acts on catalog cards, with installation state stored locally. Separate branches support custom snippets, settings and backups, theme developer tools, updates, and README viewing. The graph uses excerpted imports/calls and README capability statements; some modal behavior and extension runtime details were not sampled, so uncertain links are omitted.

Main entry points: [`src/logic/LaunchModals.tsx`](https://github.com/spicetify/marketplace/blob/main/src/logic/LaunchModals.tsx) (Modal dispatcher), [`src/components/Grid.tsx`](https://github.com/spicetify/marketplace/blob/main/src/components/Grid.tsx) (Catalog grid), [`src/components/Card/Card.tsx`](https://github.com/spicetify/marketplace/blob/main/src/components/Card/Card.tsx) (Catalog cards), [`src/logic/FetchRemotes.ts`](https://github.com/spicetify/marketplace/blob/main/src/logic/FetchRemotes.ts) (Catalog retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["App shell<br/>[app.tsx]"]
  node_readme["README viewer<br/>[ReadmePage.tsx]"]
end

subgraph group_catalog["Marketplace catalog"]
  node_grid["Catalog grid<br/>[Grid.tsx]"]
  node_cards["Catalog cards<br/>[Card.tsx]"]
  node_sorting["Sorting controls<br/>[Sortbox.tsx]"]
end

subgraph group_management["Install and manage"]
  node_extension["Extension runtime<br/>[extension.tsx]"]
  node_snippet["Snippet editor<br/>[index.tsx]"]
  node_settings["Settings modal<br/>[index.tsx]"]
  node_modalrouter["Modal dispatcher<br/>[LaunchModals.tsx]"]
  node_backup["Backup modal<br/>[index.tsx]"]
  node_devtools["Theme developer tools<br/>[index.tsx]"]
  node_updatemodal["Update modal<br/>[index.tsx]"]
end

subgraph group_platform["Persistence and services"]
  node_fetch["Catalog retrieval<br/>[FetchRemotes.ts]"]
  node_schemas["Manifest validation<br/>[Schemas.ts]"]
  node_storage[("Marketplace storage<br/>[Storage.ts]")]
  node_utils["Marketplace utilities<br/>[Utils.ts]"]
end

node_user(("Spicetify user"))
node_github["GitHub catalog services"]

node_user -->|"opens"| node_app
node_app -->|"renders catalog"| node_grid
node_app -->|"renders README"| node_readme
node_grid -->|"requests listings"| node_fetch
node_fetch -->|"fetches catalog data"| node_github
node_fetch -->|"validates manifests"| node_schemas
node_grid -->|"renders results"| node_cards
node_grid -->|"renders sorting"| node_sorting
node_cards -->|"updates install state"| node_storage
node_cards -->|"processes themes"| node_utils
node_cards -->|"opens actions"| node_modalrouter
node_grid -->|"opens tools"| node_modalrouter
node_modalrouter -->|"dispatches snippet"| node_snippet
node_modalrouter -->|"dispatches settings"| node_settings
node_modalrouter -->|"dispatches backup"| node_backup
node_modalrouter -->|"dispatches tools"| node_devtools
node_modalrouter -->|"dispatches update"| node_updatemodal
node_snippet -->|"persists snippets"| node_storage
node_settings -->|"resets marketplace"| node_utils
node_extension -.->|"uses remote catalog"| node_fetch
node_extension -.->|"uses persisted state"| node_storage

click node_app "https://github.com/spicetify/marketplace/blob/main/src/app.tsx"
click node_readme "https://github.com/spicetify/marketplace/blob/main/src/components/ReadmePage.tsx"
click node_grid "https://github.com/spicetify/marketplace/blob/main/src/components/Grid.tsx"
click node_cards "https://github.com/spicetify/marketplace/blob/main/src/components/Card/Card.tsx"
click node_sorting "https://github.com/spicetify/marketplace/blob/main/src/components/Sortbox.tsx"
click node_fetch "https://github.com/spicetify/marketplace/blob/main/src/logic/FetchRemotes.ts"
click node_schemas "https://github.com/spicetify/marketplace/blob/main/src/logic/Schemas.ts"
click node_extension "https://github.com/spicetify/marketplace/blob/main/src/extensions/extension.tsx"
click node_snippet "https://github.com/spicetify/marketplace/blob/main/src/components/Modals/Snippet/index.tsx"
click node_settings "https://github.com/spicetify/marketplace/blob/main/src/components/Modals/Settings/index.tsx"
click node_modalrouter "https://github.com/spicetify/marketplace/blob/main/src/logic/LaunchModals.tsx"
click node_backup "https://github.com/spicetify/marketplace/blob/main/src/components/Modals/BackupModal/index.tsx"
click node_devtools "https://github.com/spicetify/marketplace/blob/main/src/components/Modals/ThemeDevTools/index.tsx"
click node_updatemodal "https://github.com/spicetify/marketplace/blob/main/src/components/Modals/Update/index.tsx"
click node_storage "https://github.com/spicetify/marketplace/blob/main/src/logic/Storage.ts"
click node_utils "https://github.com/spicetify/marketplace/blob/main/src/logic/Utils.ts"

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_readme,node_user toneBlue
class node_grid,node_cards,node_sorting toneAmber
class node_extension,node_snippet,node_settings,node_modalrouter,node_backup,node_devtools,node_updatemodal toneMint
class node_fetch,node_schemas,node_storage,node_utils toneRose
class node_github toneIndigo
```

## Components

### App entry

- [App shell](https://github.com/spicetify/marketplace/blob/main/src/app.tsx): `src/app.tsx`
- [README viewer](https://github.com/spicetify/marketplace/blob/main/src/components/ReadmePage.tsx): `src/components/ReadmePage.tsx`

### Marketplace catalog

- [Catalog grid](https://github.com/spicetify/marketplace/blob/main/src/components/Grid.tsx): `src/components/Grid.tsx`
- [Catalog cards](https://github.com/spicetify/marketplace/blob/main/src/components/Card/Card.tsx): `src/components/Card/Card.tsx`
- [Sorting controls](https://github.com/spicetify/marketplace/blob/main/src/components/Sortbox.tsx): `src/components/Sortbox.tsx`

### Install and manage

- [Extension runtime](https://github.com/spicetify/marketplace/blob/main/src/extensions/extension.tsx): `src/extensions/extension.tsx`
- [Snippet editor](https://github.com/spicetify/marketplace/blob/main/src/components/Modals/Snippet/index.tsx): `src/components/Modals/Snippet/index.tsx`
- [Settings modal](https://github.com/spicetify/marketplace/blob/main/src/components/Modals/Settings/index.tsx): `src/components/Modals/Settings/index.tsx`
- [Modal dispatcher](https://github.com/spicetify/marketplace/blob/main/src/logic/LaunchModals.tsx): `src/logic/LaunchModals.tsx`
- [Backup modal](https://github.com/spicetify/marketplace/blob/main/src/components/Modals/BackupModal/index.tsx): `src/components/Modals/BackupModal/index.tsx`
- [Theme developer tools](https://github.com/spicetify/marketplace/blob/main/src/components/Modals/ThemeDevTools/index.tsx): `src/components/Modals/ThemeDevTools/index.tsx`
- [Update modal](https://github.com/spicetify/marketplace/blob/main/src/components/Modals/Update/index.tsx): `src/components/Modals/Update/index.tsx`

### Persistence and services

- [Catalog retrieval](https://github.com/spicetify/marketplace/blob/main/src/logic/FetchRemotes.ts): `src/logic/FetchRemotes.ts`
- [Manifest validation](https://github.com/spicetify/marketplace/blob/main/src/logic/Schemas.ts): `src/logic/Schemas.ts`
- [Marketplace storage](https://github.com/spicetify/marketplace/blob/main/src/logic/Storage.ts): `src/logic/Storage.ts`
- [Marketplace utilities](https://github.com/spicetify/marketplace/blob/main/src/logic/Utils.ts): `src/logic/Utils.ts`

### Other components

- **Spicetify user**
- **GitHub catalog services**

## Connections

- Spicetify user → App shell: opens (evidence: `README.md`)
- App shell → Catalog grid: renders catalog (evidence: `src/app.tsx`)
- App shell → README viewer: renders README (evidence: `src/app.tsx`)
- Catalog grid → Catalog retrieval: requests listings (evidence: `src/components/Grid.tsx`)
- Catalog retrieval → GitHub catalog services: fetches catalog data (evidence: `src/logic/FetchRemotes.ts`)
- Catalog retrieval → Manifest validation: validates manifests (evidence: `src/logic/FetchRemotes.ts`)
- Catalog grid → Catalog cards: renders results (evidence: `src/components/Grid.tsx`)
- Catalog grid → Sorting controls: renders sorting (evidence: `src/components/Grid.tsx`)
- Catalog cards → Marketplace storage: updates install state (evidence: `src/components/Card/Card.tsx`)
- Catalog cards → Marketplace utilities: processes themes (evidence: `src/components/Card/Card.tsx`)
- Catalog cards → Modal dispatcher: opens actions (evidence: `src/components/Card/Card.tsx`)
- Catalog grid → Modal dispatcher: opens tools (evidence: `src/components/Grid.tsx`)
- Modal dispatcher → Snippet editor: dispatches snippet (evidence: `src/logic/LaunchModals.tsx`)
- Modal dispatcher → Settings modal: dispatches settings (evidence: `src/logic/LaunchModals.tsx`)
- Modal dispatcher → Backup modal: dispatches backup (evidence: `src/logic/LaunchModals.tsx`)
- Modal dispatcher → Theme developer tools: dispatches tools (evidence: `src/logic/LaunchModals.tsx`)
- Modal dispatcher → Update modal: dispatches update (evidence: `src/logic/LaunchModals.tsx`)
- Snippet editor → Marketplace storage: persists snippets (evidence: `src/components/Modals/Snippet/index.tsx`)
- Settings modal → Marketplace utilities: resets marketplace (evidence: `src/components/Modals/Settings/index.tsx`)
- Extension runtime → Catalog retrieval: uses remote catalog (evidence: `src/extensions/extension.tsx`)
- Extension runtime → Marketplace storage: uses persisted state (evidence: `src/extensions/extension.tsx`)
