# imamulkadir/repolauncher architecture

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

- Interactive diagram: https://gitdiagram.com/imamulkadir/repolauncher
- Repository: https://github.com/imamulkadir/repolauncher

## Overview

#### Purpose and Entry Points

Repo Launcher is a Windows desktop utility for browsing repositories under a configured root and opening selected paths in IntelliJ IDEA. The source entry point is `RepoLa.py`; packaged execution is defined by `RepoLauncher.spec`, producing a standalone Windows executable.

#### Application Shell and UI

The application is a PySide6 desktop GUI with a frameless dark window, custom title bar, search input, repository tree, status display, action buttons, and settings drawer. UI state drives selected paths, active browse mode, search text, and enabled actions. The primary implementation is consolidated in `RepoLa.py`.

#### Persistent Configuration Boundary

At startup, the application loads or creates `%APPDATA%\RepoIdeaLauncher\config.json`. Configuration supplies the repository `root_path` and IntelliJ `idea_path`; settings edits update the persisted values and should refresh filesystem-backed views. Defaults target `C:\Projects` and a conventional IntelliJ installation path. Configuration handling resides in `RepoLa.py`.

#### Repository Browsing Model

Folders mode presents the configured root’s top-level repositories and supports drilling into immediate subfolders. The tree is lazy-loaded: child directories are scanned only when a user expands a node, keeping initial filesystem work bounded by the root listing. The custom tree rendering and directory traversal logic are in `RepoLa.py`.

#### Search and Files Mode

Search input filters repository names in folder browsing and supports recursive discovery of files and folders in Files mode. Input is debounced to avoid repeated expensive scans while typing. This establishes a key performance boundary: immediate/lazy directory enumeration for tree browsing versus recursive traversal for global file search. Both mode switching and filtering are implemented in `RepoLa.py`.

#### Selection and Launch Actions

Selecting an item exposes its full path in the status area and enables actions: open in Windows Explorer, copy the path to the clipboard, or launch it in IntelliJ. Double-click and Enter are alternate launch triggers. The launch boundary invokes the configured external `idea64.exe`; Explorer and clipboard operations use Windows/PySide integration. Action orchestration is in `RepoLa.py`.

#### Runtime and Packaging

The supported runtime is Windows with Python 3.10+ and PySide6. `RepoLauncher.spec` is the PyInstaller packaging definition; `version_info.txt` provides executable version metadata. The application is intended to run either directly through `RepoLa.py` or as the generated `RepoLauncher.exe`.

Main entry points: [`RepoLa.py`](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py) (Frameless app shell), [`RepoLauncher.spec`](https://github.com/imamulkadir/repolauncher/blob/master/RepoLauncher.spec) (PyInstaller spec), [`version_info.txt`](https://github.com/imamulkadir/repolauncher/blob/master/version_info.txt) (Version metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop UI"]
  node_shell["Frameless app shell<br/>main window<br/>[RepoLa.py]"]
  node_ui_state["UI state<br/>interaction state<br/>[RepoLa.py]"]
  node_settings["Settings drawer<br/>configuration UI<br/>[RepoLa.py]"]
  node_search["Search and mode controls<br/>input controller<br/>[RepoLa.py]"]
  node_tree["Repository tree<br/>custom tree view<br/>[RepoLa.py]"]
end

subgraph group_core["Application Core"]
  node_entry["RepoLa application<br/>PySide6 entry point<br/>[RepoLa.py]"]
  node_config[("Persistent config<br/>JSON configuration<br/>[RepoLa.py]")]
  node_browser["Directory browser<br/>filesystem model<br/>[RepoLa.py]"]
  node_file_search["Recursive file search<br/>search service<br/>[RepoLa.py]"]
  node_actions["Selection actions<br/>action orchestrator<br/>[RepoLa.py]"]
end

subgraph group_platform["Windows &amp; Distribution"]
  node_windows{{"Windows integrations<br/>platform services<br/>[RepoLa.py]"}}
  node_idea{{"IntelliJ IDEA<br/>external executable"}}
  node_spec["PyInstaller spec<br/>packaging definition<br/>[RepoLauncher.spec]"]
  node_version["Version metadata<br/>executable metadata<br/>[version_info.txt]"]
  node_exe["RepoLauncher.exe<br/>Windows executable"]
end

node_entry -->|"creates"| node_shell
node_entry -->|"loads or creates"| node_config
node_config -->|"supplies and persists values"| node_settings
node_shell -->|"hosts"| node_ui_state
node_shell -->|"contains"| node_search
node_shell -->|"contains"| node_tree
node_ui_state -->|"enables selected-path actions"| node_actions
node_search -->|"Folders mode filters"| node_browser
node_search -->|"Files mode triggers"| node_file_search
node_config -->|"provides root path"| node_browser
node_browser -->|"supplies lazy-loaded directories"| node_tree
node_file_search -->|"supplies recursive results"| node_tree
node_tree -->|"updates selection"| node_ui_state
node_actions -->|"opens Explorer and copies paths"| node_windows
node_actions -->|"launches selected path"| node_idea
node_config -->|"provides executable path"| node_idea
node_spec -->|"builds"| node_exe
node_version -->|"version metadata"| node_spec
node_exe -.->|"packages runtime"| node_entry

click node_entry "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_shell "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_ui_state "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_settings "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_search "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_tree "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_config "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_browser "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_file_search "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_actions "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_windows "https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py"
click node_spec "https://github.com/imamulkadir/repolauncher/blob/master/RepoLauncher.spec"
click node_version "https://github.com/imamulkadir/repolauncher/blob/master/version_info.txt"

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_shell,node_ui_state,node_settings,node_search,node_tree toneBlue
class node_entry,node_config,node_browser,node_file_search,node_actions toneAmber
class node_windows,node_idea,node_spec,node_version,node_exe toneMint
```

## Components

### Desktop UI

- [Frameless app shell](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): main window · Hosts title bar, status area, actions, and settings drawer. · `RepoLa.py`
- [UI state](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): interaction state · Tracks selection, mode, search text, and action availability. · `RepoLa.py`
- [Settings drawer](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): configuration UI · Edits repository root and IntelliJ path. · `RepoLa.py`
- [Search and mode controls](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): input controller · Debounces input and switches between Folders and Files modes. · `RepoLa.py`
- [Repository tree](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): custom tree view · Renders repositories and expandable directory nodes. · `RepoLa.py`

### Application Core

- [RepoLa application](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): PySide6 entry point · Desktop application implementation and runtime entry point. · `RepoLa.py`
- [Persistent config](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): JSON configuration · Stores root_path and idea_path under %APPDATA%. · `RepoLa.py`
- [Directory browser](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): filesystem model · Lists root repositories and lazy-loads expanded child directories. · `RepoLa.py`
- [Recursive file search](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): search service · Traverses files and folders only in Files mode. · `RepoLa.py`
- [Selection actions](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): action orchestrator · Launches IntelliJ, opens Explorer, and copies selected paths. · `RepoLa.py`

### Windows & Distribution

- [Windows integrations](https://github.com/imamulkadir/repolauncher/blob/master/RepoLa.py): platform services · Filesystem, Explorer, clipboard, and external process integration. · `RepoLa.py`
- **IntelliJ IDEA**: external executable · Configured idea64.exe receives selected paths.
- [PyInstaller spec](https://github.com/imamulkadir/repolauncher/blob/master/RepoLauncher.spec): packaging definition · `RepoLauncher.spec`
- [Version metadata](https://github.com/imamulkadir/repolauncher/blob/master/version_info.txt): executable metadata · `version_info.txt`
- **RepoLauncher.exe**: Windows executable · Packaged standalone application.

## Connections

- RepoLa application → Frameless app shell: creates
- RepoLa application → Persistent config: loads or creates
- Persistent config → Settings drawer: supplies and persists values
- Frameless app shell → UI state: hosts
- Frameless app shell → Search and mode controls: contains
- Frameless app shell → Repository tree: contains
- UI state → Selection actions: enables selected-path actions
- Search and mode controls → Directory browser: Folders mode filters
- Search and mode controls → Recursive file search: Files mode triggers
- Persistent config → Directory browser: provides root path
- Directory browser → Repository tree: supplies lazy-loaded directories
- Recursive file search → Repository tree: supplies recursive results
- Repository tree → UI state: updates selection
- Selection actions → Windows integrations: opens Explorer and copies paths
- Selection actions → IntelliJ IDEA: launches selected path
- Persistent config → IntelliJ IDEA: provides executable path
- PyInstaller spec → RepoLauncher.exe: builds
- Version metadata → PyInstaller spec: version metadata
- RepoLauncher.exe → RepoLa application: packages runtime
