# fufugis/neo-lib-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/fufugis/neo-lib-launcher
- Repository: https://github.com/fufugis/neo-lib-launcher

## Overview

NEO-LIB is a local-first Windows game library built as an Electron desktop app. Users discover or import games, review metadata and artwork, organize their library, then launch games through their original client or executable. The README also documents Home, Lounge, retro libraries, playtime records, themes, extensions, and update/news features. The excerpts show the Electron main process, local JSON storage, guarded IPC, and controller-navigation logic; unsampled feature relationships are included only where the README or source index supports them.

Main entry points: [`desktop-app/src/App.jsx`](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/App.jsx) (App shell), [`desktop-app/src/components/CoverWall.jsx`](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/CoverWall.jsx) (Library views), [`desktop-app/electron/main.js`](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/main.js) (Electron main), [`desktop-app/src/components/GameDetail.jsx`](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/GameDetail.jsx) (Game details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Desktop experience"]
  node_app["App shell<br/>[App.jsx]"]
  node_library_views["Library views<br/>[CoverWall.jsx]"]
  node_game_detail["Game details<br/>[GameDetail.jsx]"]
  node_home["Home widgets<br/>[HomeHub.jsx]"]
  node_lounge["Lounge browser<br/>[NeoLounge.jsx]"]
  node_controller["Controller navigation"]
end

subgraph group_library["Library workflow"]
  node_import["Game import<br/>[scanners.cjs]"]
  node_metadata["Metadata and artwork<br/>[main.js]"]
  node_launch["Game launching"]
  node_playtime["Playtime records"]
  node_retro["Retro sources"]
end

subgraph group_runtime["Electron runtime"]
  node_main["Electron main<br/>[main.js]"]
  node_ipc["IPC handlers<br/>[registry.cjs]"]
  node_guards["IPC validation"]
  node_storage[("Local JSON storage<br/>[app-storage.cjs]")]
end

subgraph group_personal["Personalization"]
  node_themes["Themes and visuals"]
  node_extensions["Widgets and modules"]
end

subgraph group_ecosystem["Connected features"]
  node_news["News and updates"]
  node_online{{"Online providers"}}
end

node_user(("Player"))

node_user -->|"uses"| node_app
node_app -->|"presents"| node_library_views
node_app -->|"presents"| node_home
node_user -->|"starts import"| node_import
node_import -.->|"reviews metadata"| node_metadata
node_user -->|"browses and organizes"| node_library_views
node_library_views -.->|"opens details"| node_game_detail
node_game_detail -.->|"launches game"| node_launch
node_launch -.->|"records play"| node_playtime
node_main -->|"persists local data"| node_storage
node_main -->|"registers handlers"| node_ipc
node_ipc -->|"validates requests"| node_guards
node_user -->|"configures sources"| node_retro
node_user -->|"browses games"| node_lounge
node_user -->|"customizes interface"| node_themes
node_user -->|"imports extensions"| node_extensions
node_user -.->|"navigates by controller"| node_controller
node_user -->|"views news and updates"| node_news
node_metadata -.->|"contacts providers"| node_online
node_news -.->|"fetches content"| node_online

click node_app "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/App.jsx"
click node_library_views "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/CoverWall.jsx"
click node_game_detail "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/GameDetail.jsx"
click node_home "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/HomeHub.jsx"
click node_lounge "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/lounge/NeoLounge.jsx"
click node_import "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/launchers/scanners.cjs"
click node_metadata "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/main.js"
click node_launch "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/game/game-launch-service.cjs"
click node_playtime "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/playtime/playtime-history-service.cjs"
click node_main "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/main.js"
click node_ipc "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/ipc/registry.cjs"
click node_guards "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/ipc/contract-guards.cjs"
click node_storage "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/storage/app-storage.cjs"
click node_retro "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/emulation/retro-source-service.cjs"
click node_themes "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/themes/custom-theme-service.cjs"
click node_extensions "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/widgets/widget-package-service.cjs"
click node_controller "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/services/controller-navigation-service.mjs"
click node_news "https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/providers/public-news-provider-service.cjs"

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_library_views,node_game_detail,node_home,node_lounge,node_controller toneBlue
class node_import,node_metadata,node_launch,node_playtime,node_retro toneAmber
class node_main,node_ipc,node_guards,node_storage toneMint
class node_themes,node_extensions toneRose
class node_news,node_online,node_user toneIndigo
```

## Components

### Desktop experience

- [App shell](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/App.jsx): `desktop-app/src/App.jsx`
- [Library views](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/CoverWall.jsx): `desktop-app/src/components/CoverWall.jsx`
- [Game details](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/GameDetail.jsx): `desktop-app/src/components/GameDetail.jsx`
- [Home widgets](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/HomeHub.jsx): `desktop-app/src/components/HomeHub.jsx`
- [Lounge browser](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/components/lounge/NeoLounge.jsx): `desktop-app/src/components/lounge/NeoLounge.jsx`
- [Controller navigation](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/src/services/controller-navigation-service.mjs): `desktop-app/src/services/controller-navigation-service.mjs`

### Library workflow

- [Game import](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/launchers/scanners.cjs): `desktop-app/electron/launchers/scanners.cjs`
- [Metadata and artwork](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/main.js): `desktop-app/electron/main.js`
- [Game launching](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/game/game-launch-service.cjs): `desktop-app/electron/game/game-launch-service.cjs`
- [Playtime records](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/playtime/playtime-history-service.cjs): `desktop-app/electron/playtime/playtime-history-service.cjs`
- [Retro sources](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/emulation/retro-source-service.cjs): `desktop-app/electron/emulation/retro-source-service.cjs`

### Electron runtime

- [Electron main](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/main.js): `desktop-app/electron/main.js`
- [IPC handlers](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/ipc/registry.cjs): `desktop-app/electron/ipc/registry.cjs`
- [IPC validation](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/ipc/contract-guards.cjs): `desktop-app/electron/ipc/contract-guards.cjs`
- [Local JSON storage](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/storage/app-storage.cjs): `desktop-app/electron/storage/app-storage.cjs`

### Personalization

- [Themes and visuals](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/themes/custom-theme-service.cjs): `desktop-app/electron/themes/custom-theme-service.cjs`
- [Widgets and modules](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/widgets/widget-package-service.cjs): `desktop-app/electron/widgets/widget-package-service.cjs`

### Connected features

- [News and updates](https://github.com/fufugis/neo-lib-launcher/blob/main/desktop-app/electron/providers/public-news-provider-service.cjs): `desktop-app/electron/providers/public-news-provider-service.cjs`
- **Online providers**

### Other components

- **Player**

## Connections

- Player → App shell: uses
- App shell → Library views: presents (evidence: `desktop-app/src/App.jsx`)
- App shell → Home widgets: presents (evidence: `desktop-app/src/App.jsx`)
- Player → Game import: starts import
- Game import → Metadata and artwork: reviews metadata (evidence: `desktop-app/electron/main.js`)
- Player → Library views: browses and organizes
- Library views → Game details: opens details
- Game details → Game launching: launches game
- Game launching → Playtime records: records play
- Electron main → Local JSON storage: persists local data (evidence: `desktop-app/electron/main.js`)
- Electron main → IPC handlers: registers handlers (evidence: `desktop-app/electron/main.js`)
- IPC handlers → IPC validation: validates requests
- Player → Retro sources: configures sources
- Player → Lounge browser: browses games
- Player → Themes and visuals: customizes interface
- Player → Widgets and modules: imports extensions
- Player → Controller navigation: navigates by controller
- Player → News and updates: views news and updates
- Metadata and artwork → Online providers: contacts providers
- News and updates → Online providers: fetches content
