# m1nuzz/flux-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/m1nuzz/flux-launcher
- Repository: https://github.com/m1nuzz/flux-launcher

## Overview

Flux Launcher is a native Windows keyboard launcher whose main workflow is activation, query entry, parallel provider searches, ranked result publication, and launching or acting on a selection. The graph includes documented file search, built-ins/plugins, settings, and Windows integrations. Some subsystem links rely on README capabilities or SOURCE INDEX references; unsampled implementation details and uncertain wiring are omitted.

Main entry points: [`crates/flux-launcher/src/background_tasks.rs`](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/background_tasks.rs) (Provider orchestration), [`crates/flux-launcher/src/main.rs`](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/main.rs) (Launcher UI), [`crates/flux-launcher/src/plugins.rs`](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/plugins.rs) (Plugin providers), [`crates/flux-launcher/src/key_handlers.rs`](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/key_handlers.rs) (Keyboard handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Launcher interaction"]
  node_launcher["Launcher UI<br/>[main.rs]"]
  node_hotkeys["Global hotkeys<br/>[hotkeys.rs]"]
  node_keyinput["Keyboard handling<br/>[key_handlers.rs]"]
  node_searchui["Search interface<br/>[ui_search.rs]"]
  node_resultui["Result presentation<br/>[result_widgets.rs]"]
  node_actions["Result actions<br/>[result_actions.rs]"]
  node_launch["Application launch<br/>[launch.rs]"]
end

subgraph group_search["Search and providers"]
  node_coresearch["Search model<br/>[search.rs]"]
  node_matching["Matching and ranking<br/>[search_match.rs]"]
  node_searchmodel["Result selection<br/>[search_model.rs]"]
  node_appcatalog["Application catalog<br/>[applications.rs]"]
  node_appscan["App discovery<br/>[app_scan.rs]"]
  node_provider["Provider orchestration"]
  node_snapshot["Result merging"]
end

subgraph group_integrations["Windows and plugins"]
  node_everything["Everything search<br/>[everything.rs]"]
  node_plugins["Plugin providers<br/>[plugins.rs]"]
  node_nativeplugins["Native plugins<br/>[native_plugins.rs]"]
  node_pluginprocess["Flow plugin process"]
  node_windows["Windows services"]
end

subgraph group_state["Settings and updates"]
  node_settings["User settings<br/>[settings.rs]"]
  node_settingsstore[("Settings persistence<br/>[settings_store.rs]")]
  node_updater["Stable updater<br/>[updater.rs]"]
end

node_user(("Launcher user"))
node_github["GitHub releases"]

node_user -->|"activates"| node_hotkeys
node_hotkeys -.->|"shows or hides"| node_launcher
node_user -->|"enters query"| node_keyinput
node_keyinput -.->|"updates query"| node_searchui
node_launcher -.->|"starts searches"| node_provider
node_provider -->|"requests apps"| node_appcatalog
node_appcatalog -->|"uses discovery"| node_appscan
node_provider -->|"requests files"| node_everything
node_provider -->|"requests plugins"| node_plugins
node_plugins -->|"queries native"| node_nativeplugins
node_plugins -.->|"invokes executable"| node_pluginprocess
node_provider -->|"publishes responses"| node_snapshot
node_snapshot -.->|"sets displayed rows"| node_resultui
node_provider -.->|"ranks results"| node_coresearch
node_coresearch -->|"uses match ranking"| node_matching
node_searchmodel -->|"ranks built-ins"| node_coresearch
node_keyinput -->|"navigates results"| node_searchmodel
node_keyinput -->|"dispatches actions"| node_actions
node_actions -->|"executes plugin action"| node_plugins
node_actions -->|"launches selection"| node_launch
node_launch -.->|"opens target"| node_windows
node_launcher -.->|"configures"| node_settings
node_settings -->|"persists settings"| node_settingsstore
node_launcher -->|"checks updates"| node_updater
node_updater -->|"checks releases"| node_github
node_launcher -->|"integrates system UI"| node_windows
node_user -->|"uses provider keywords"| node_plugins

click node_launcher "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/main.rs"
click node_hotkeys "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/hotkeys.rs"
click node_keyinput "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/key_handlers.rs"
click node_searchui "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/ui_search.rs"
click node_resultui "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/result_widgets.rs"
click node_actions "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/result_actions.rs"
click node_launch "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/launch.rs"
click node_coresearch "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/search.rs"
click node_matching "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/search_match.rs"
click node_searchmodel "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/search_model.rs"
click node_appcatalog "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/applications.rs"
click node_appscan "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/app_scan.rs"
click node_provider "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/background_tasks.rs"
click node_snapshot "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/provider_snapshot.rs"
click node_everything "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/everything.rs"
click node_plugins "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/plugins.rs"
click node_nativeplugins "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/native_plugins.rs"
click node_settings "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/settings.rs"
click node_settingsstore "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/settings_store.rs"
click node_updater "https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/updater.rs"

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_launcher,node_hotkeys,node_keyinput,node_searchui,node_resultui,node_actions,node_launch,node_user toneBlue
class node_coresearch,node_matching,node_searchmodel,node_appcatalog,node_appscan,node_provider,node_snapshot toneAmber
class node_everything,node_plugins,node_nativeplugins,node_pluginprocess,node_windows toneMint
class node_settings,node_settingsstore,node_updater toneRose
class node_github toneIndigo
```

## Components

### Launcher interaction

- [Launcher UI](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/main.rs): `crates/flux-launcher/src/main.rs`
- [Global hotkeys](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/hotkeys.rs): `crates/flux-launcher/src/hotkeys.rs`
- [Keyboard handling](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/key_handlers.rs): `crates/flux-launcher/src/key_handlers.rs`
- [Search interface](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/ui_search.rs): `crates/flux-launcher/src/ui_search.rs`
- [Result presentation](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/result_widgets.rs): `crates/flux-launcher/src/result_widgets.rs`
- [Result actions](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/result_actions.rs): `crates/flux-launcher/src/result_actions.rs`
- [Application launch](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/launch.rs): `crates/flux-launcher/src/launch.rs`

### Search and providers

- [Search model](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/search.rs): `crates/flux-core/src/search.rs`
- [Matching and ranking](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/search_match.rs): `crates/flux-core/src/search_match.rs`
- [Result selection](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/search_model.rs): `crates/flux-core/src/search_model.rs`
- [Application catalog](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/applications.rs): `crates/flux-launcher/src/applications.rs`
- [App discovery](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/app_scan.rs): `crates/flux-launcher/src/app_scan.rs`
- [Provider orchestration](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/background_tasks.rs): `crates/flux-launcher/src/background_tasks.rs`
- [Result merging](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/provider_snapshot.rs): `crates/flux-launcher/src/provider_snapshot.rs`

### Windows and plugins

- [Everything search](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/everything.rs): `crates/flux-launcher/src/everything.rs`
- [Plugin providers](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/plugins.rs): `crates/flux-launcher/src/plugins.rs`
- [Native plugins](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/native_plugins.rs): `crates/flux-launcher/src/native_plugins.rs`
- **Flow plugin process**
- **Windows services**

### Settings and updates

- [User settings](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/settings.rs): `crates/flux-core/src/settings.rs`
- [Settings persistence](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-core/src/settings_store.rs): `crates/flux-core/src/settings_store.rs`
- [Stable updater](https://github.com/m1nuzz/flux-launcher/blob/main/crates/flux-launcher/src/updater.rs): `crates/flux-launcher/src/updater.rs`

### Other components

- **Launcher user**
- **GitHub releases**

## Connections

- Launcher user → Global hotkeys: activates
- Global hotkeys → Launcher UI: shows or hides (evidence: `crates/flux-launcher/src/main.rs`)
- Launcher user → Keyboard handling: enters query
- Keyboard handling → Search interface: updates query
- Launcher UI → Provider orchestration: starts searches (evidence: `crates/flux-launcher/src/main.rs`)
- Provider orchestration → Application catalog: requests apps (evidence: `crates/flux-launcher/src/background_tasks.rs`)
- Application catalog → App discovery: uses discovery (evidence: `crates/flux-launcher/src/applications.rs`)
- Provider orchestration → Everything search: requests files (evidence: `crates/flux-launcher/src/background_tasks.rs`)
- Provider orchestration → Plugin providers: requests plugins (evidence: `crates/flux-launcher/src/background_tasks.rs`)
- Plugin providers → Native plugins: queries native (evidence: `crates/flux-launcher/src/plugins.rs`)
- Plugin providers → Flow plugin process: invokes executable
- Provider orchestration → Result merging: publishes responses (evidence: `crates/flux-launcher/src/background_tasks.rs`)
- Result merging → Result presentation: sets displayed rows
- Provider orchestration → Search model: ranks results
- Search model → Matching and ranking: uses match ranking (evidence: `crates/flux-core/src/search.rs`)
- Result selection → Search model: ranks built-ins (evidence: `crates/flux-core/src/search_model.rs`)
- Keyboard handling → Result selection: navigates results (evidence: `crates/flux-launcher/src/key_handlers.rs`)
- Keyboard handling → Result actions: dispatches actions (evidence: `crates/flux-launcher/src/key_handlers.rs`)
- Result actions → Plugin providers: executes plugin action (evidence: `crates/flux-launcher/src/result_actions.rs`)
- Result actions → Application launch: launches selection (evidence: `crates/flux-launcher/src/result_actions.rs`)
- Application launch → Windows services: opens target
- Launcher UI → User settings: configures
- User settings → Settings persistence: persists settings (evidence: `crates/flux-core/src/settings_store.rs`)
- Launcher UI → Stable updater: checks updates
- Stable updater → GitHub releases: checks releases
- Launcher UI → Windows services: integrates system UI
- Launcher user → Plugin providers: uses provider keywords
