# vanshgupta150/wspot architecture

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

- Interactive diagram: https://gitdiagram.com/vanshgupta150/wspot
- Repository: https://github.com/vanshgupta150/wspot

## Overview

wSpot is a Windows app launcher: Ctrl+Space reveals a popup where users search indexed Start Menu shortcuts and launch a selected result. At startup, the window scans shortcuts, resolves their targets and arguments, then replaces the SQLite index. Search flows from the view model to the database; launching flows through the view model to the process launcher. The README documents the view binding and major capabilities; relationships not visible in sampled source are omitted.

Main entry points: [`MainWindow.xaml.cs`](https://github.com/vanshgupta150/wspot/blob/main/MainWindow.xaml.cs) (Popup window and hotkey), [`MainViewModel.cs`](https://github.com/vanshgupta150/wspot/blob/main/MainViewModel.cs) (Search and launch view model), [`AppIndexer.cs`](https://github.com/vanshgupta150/wspot/blob/main/AppIndexer.cs) (Start Menu scanner), [`AppDatabase.cs`](https://github.com/vanshgupta150/wspot/blob/main/AppDatabase.cs) (App database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Popup shell"]
  node_window["Popup window and hotkey<br/>[MainWindow.xaml.cs]"]
  node_view["Search view<br/>[MainWindow.xaml]"]
end

subgraph group_indexing["App indexing"]
  node_indexer["Start Menu scanner<br/>[AppIndexer.cs]"]
  node_resolver["Shortcut resolver"]
  node_entry["Indexed app entry<br/>[AppEntry.cs]"]
end

subgraph group_search["Search and launch"]
  node_viewmodel["Search and launch view model<br/>[MainViewModel.cs]"]
  node_command["Launch command<br/>[RelayCommand.cs]"]
  node_launcher["Process launcher<br/>[ProcessLauncher.cs]"]
end

subgraph group_storage["App storage"]
  node_database["App database<br/>[AppDatabase.cs]"]
  node_sqlite[("SQLite index")]
end

node_user(("User"))
node_windows["Windows hotkey and process services"]

node_user -->|"presses hotkey"| node_window
node_window -->|"registers hotkey"| node_windows
node_windows -->|"dispatches hotkey"| node_window
node_window -->|"scans apps"| node_indexer
node_window -->|"replaces index"| node_database
node_indexer -->|"resolves shortcuts"| node_resolver
node_indexer -->|"creates entries"| node_entry
node_database -->|"reads and writes"| node_sqlite
node_window -->|"creates"| node_viewmodel
node_view -->|"binds to"| node_viewmodel
node_viewmodel -->|"searches"| node_database
node_viewmodel -->|"creates command"| node_command
node_viewmodel -->|"launches selection"| node_launcher
node_launcher -->|"starts process"| node_windows

click node_window "https://github.com/vanshgupta150/wspot/blob/main/MainWindow.xaml.cs"
click node_view "https://github.com/vanshgupta150/wspot/blob/main/MainWindow.xaml"
click node_indexer "https://github.com/vanshgupta150/wspot/blob/main/AppIndexer.cs"
click node_resolver "https://github.com/vanshgupta150/wspot/blob/main/ShortcutResolver.cs"
click node_entry "https://github.com/vanshgupta150/wspot/blob/main/AppEntry.cs"
click node_viewmodel "https://github.com/vanshgupta150/wspot/blob/main/MainViewModel.cs"
click node_command "https://github.com/vanshgupta150/wspot/blob/main/RelayCommand.cs"
click node_launcher "https://github.com/vanshgupta150/wspot/blob/main/ProcessLauncher.cs"
click node_database "https://github.com/vanshgupta150/wspot/blob/main/AppDatabase.cs"

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_window,node_view,node_user toneBlue
class node_indexer,node_resolver,node_entry toneAmber
class node_viewmodel,node_command,node_launcher toneMint
class node_database,node_sqlite toneRose
class node_windows toneIndigo
```

## Components

### Popup shell

- [Popup window and hotkey](https://github.com/vanshgupta150/wspot/blob/main/MainWindow.xaml.cs): `MainWindow.xaml.cs`
- [Search view](https://github.com/vanshgupta150/wspot/blob/main/MainWindow.xaml): `MainWindow.xaml`

### App indexing

- [Start Menu scanner](https://github.com/vanshgupta150/wspot/blob/main/AppIndexer.cs): `AppIndexer.cs`
- [Shortcut resolver](https://github.com/vanshgupta150/wspot/blob/main/ShortcutResolver.cs): `ShortcutResolver.cs`
- [Indexed app entry](https://github.com/vanshgupta150/wspot/blob/main/AppEntry.cs): `AppEntry.cs`

### Search and launch

- [Search and launch view model](https://github.com/vanshgupta150/wspot/blob/main/MainViewModel.cs): `MainViewModel.cs`
- [Launch command](https://github.com/vanshgupta150/wspot/blob/main/RelayCommand.cs): `RelayCommand.cs`
- [Process launcher](https://github.com/vanshgupta150/wspot/blob/main/ProcessLauncher.cs): `ProcessLauncher.cs`

### App storage

- [App database](https://github.com/vanshgupta150/wspot/blob/main/AppDatabase.cs): `AppDatabase.cs`
- **SQLite index**

### Other components

- **User**
- **Windows hotkey and process services**

## Connections

- User → Popup window and hotkey: presses hotkey (evidence: `MainWindow.xaml.cs`)
- Popup window and hotkey → Windows hotkey and process services: registers hotkey (evidence: `MainWindow.xaml.cs`)
- Windows hotkey and process services → Popup window and hotkey: dispatches hotkey (evidence: `MainWindow.xaml.cs`)
- Popup window and hotkey → Start Menu scanner: scans apps (evidence: `MainWindow.xaml.cs`)
- Popup window and hotkey → App database: replaces index (evidence: `MainWindow.xaml.cs`)
- Start Menu scanner → Shortcut resolver: resolves shortcuts (evidence: `AppIndexer.cs`)
- Start Menu scanner → Indexed app entry: creates entries (evidence: `AppIndexer.cs`)
- App database → SQLite index: reads and writes (evidence: `AppDatabase.cs`)
- Popup window and hotkey → Search and launch view model: creates (evidence: `MainWindow.xaml.cs`)
- Search view → Search and launch view model: binds to (evidence: `README.md`)
- Search and launch view model → App database: searches (evidence: `MainViewModel.cs`)
- Search and launch view model → Launch command: creates command (evidence: `MainViewModel.cs`)
- Search and launch view model → Process launcher: launches selection (evidence: `MainViewModel.cs`)
- Process launcher → Windows hotkey and process services: starts process (evidence: `ProcessLauncher.cs`)
