# inky-feather/rimcrow architecture

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

- Interactive diagram: https://gitdiagram.com/inky-feather/rimcrow
- Repository: https://github.com/inky-feather/rimcrow

## Overview

RimCrow is a Vue/pywebview desktop manager for RimWorld mods. Users configure game and Workshop locations, scan mods, organize and sort a load order, then save, back up, deploy, or launch the chosen environment. The product also covers Workshop and Git-based acquisition, profiles, logs and file search, texture optimization, and AI assistance. The map combines documented capabilities with sampled frontend/backend references; several feature-specific implementation links are omitted where source excerpts do not establish their callers.

Main entry points: [`backend/api.py`](https://github.com/inky-feather/rimcrow/blob/main/backend/api.py) (Backend API), [`frontend/src/app/stores/appStore.js`](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/stores/appStore.js) (Application state), [`backend/managers/mgr_steam.py`](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_steam.py) (Workshop services), [`frontend/src/app/App.vue`](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/App.vue) (Vue application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop shell"]
  node_app["Vue application<br/>[App.vue]"]
  node_bridge["Pywebview bridge<br/>[pywebviewBridge.js]"]
  node_appstore["Application state<br/>[appStore.js]"]
  node_api["Backend API<br/>[api.py]"]
end

subgraph group_modops["Mod management"]
  node_modstore["Mod list state<br/>[modStore.js]"]
  node_scanner["Mod scanning<br/>[mod_scanner.py]"]
  node_loadorder["Load order<br/>[mgr_load_order.py]"]
  node_rules["Sort rules<br/>[mgr_rules.py]"]
  node_orderui["Order interface<br/>[orderStore.js]"]
  node_profiles["Profiles<br/>[mgr_profile.py]"]
  node_texture["Texture optimization<br/>[mgr_texture_opt.py]"]
end

subgraph group_sources["Acquisition and deployment"]
  node_workshop["Workshop services<br/>[mgr_steam.py]"]
  node_downloads["Downloads<br/>[mgr_download.py]"]
  node_gitmods["Git mod sources<br/>[mgr_github.py]"]
  node_deployment["Mod deployment<br/>[mgr_mod_package.py]"]
end

subgraph group_diagnostics["Diagnostics and assistance"]
  node_logs["Game logs<br/>[mgr_game_logs.py]"]
  node_search["File search<br/>[manager.py]"]
  node_ai["AI assistance<br/>[ai_service.py]"]
end

subgraph group_platform["Runtime services"]
  node_locations["Game locations<br/>[game_locations.py]"]
  node_settings["Settings<br/>[settings.py]"]
  node_database[("Application database<br/>[dao.py]")]
end

node_user(("Manager user"))
node_game["RimWorld"]
node_steam["Steam services"]
node_ai_provider["AI provider"]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_appstore
node_appstore -->|"requests"| node_bridge
node_bridge -.->|"invokes"| node_api
node_api -->|"resolves paths"| node_locations
node_api -->|"uses settings"| node_settings
node_api -->|"reads and writes"| node_database
node_appstore -->|"loads mod state"| node_modstore
node_api -.->|"scans mods"| node_scanner
node_api -.->|"manages order"| node_loadorder
node_api -.->|"applies rules"| node_rules
node_appstore -->|"refreshes order"| node_orderui
node_api -.->|"manages profiles"| node_profiles
node_api -->|"dispatches requests"| node_workshop
node_workshop -->|"uses downloads"| node_downloads
node_workshop -->|"queries Workshop"| node_steam
node_api -.->|"manages sources"| node_gitmods
node_api -.->|"deploys packages"| node_deployment
node_api -.->|"serves log tools"| node_logs
node_api -.->|"runs searches"| node_search
node_api -->|"dispatches AI tasks"| node_ai
node_ai -.->|"sends requests"| node_ai_provider
node_api -.->|"optimizes textures"| node_texture
node_api -.->|"launches game"| node_game

click node_app "https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/App.vue"
click node_bridge "https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/bridge/pywebviewBridge.js"
click node_appstore "https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/stores/appStore.js"
click node_api "https://github.com/inky-feather/rimcrow/blob/main/backend/api.py"
click node_locations "https://github.com/inky-feather/rimcrow/blob/main/backend/paths/game_locations.py"
click node_settings "https://github.com/inky-feather/rimcrow/blob/main/backend/settings.py"
click node_database "https://github.com/inky-feather/rimcrow/blob/main/backend/database/dao.py"
click node_modstore "https://github.com/inky-feather/rimcrow/blob/main/frontend/src/features/mod/stores/modStore.js"
click node_scanner "https://github.com/inky-feather/rimcrow/blob/main/backend/scanner/mod_scanner.py"
click node_loadorder "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_load_order.py"
click node_rules "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_rules.py"
click node_orderui "https://github.com/inky-feather/rimcrow/blob/main/frontend/src/features/load-order/orderStore.js"
click node_profiles "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_profile.py"
click node_workshop "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_steam.py"
click node_downloads "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_download.py"
click node_gitmods "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_github.py"
click node_deployment "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_mod_package.py"
click node_logs "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_game_logs.py"
click node_search "https://github.com/inky-feather/rimcrow/blob/main/backend/text_search/manager.py"
click node_ai "https://github.com/inky-feather/rimcrow/blob/main/backend/ai/ai_service.py"
click node_texture "https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_texture_opt.py"

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_bridge,node_appstore,node_api,node_user toneBlue
class node_modstore,node_scanner,node_loadorder,node_rules,node_orderui,node_profiles,node_texture toneAmber
class node_workshop,node_downloads,node_gitmods,node_deployment toneMint
class node_logs,node_search,node_ai toneRose
class node_locations,node_settings,node_database,node_game,node_steam,node_ai_provider toneIndigo
```

## Components

### Desktop shell

- [Vue application](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/App.vue): `frontend/src/app/App.vue`
- [Pywebview bridge](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/bridge/pywebviewBridge.js): `frontend/src/app/bridge/pywebviewBridge.js`
- [Application state](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/app/stores/appStore.js): `frontend/src/app/stores/appStore.js`
- [Backend API](https://github.com/inky-feather/rimcrow/blob/main/backend/api.py): `backend/api.py`

### Mod management

- [Mod list state](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/features/mod/stores/modStore.js): `frontend/src/features/mod/stores/modStore.js`
- [Mod scanning](https://github.com/inky-feather/rimcrow/blob/main/backend/scanner/mod_scanner.py): `backend/scanner/mod_scanner.py`
- [Load order](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_load_order.py): `backend/managers/mgr_load_order.py`
- [Sort rules](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_rules.py): `backend/managers/mgr_rules.py`
- [Order interface](https://github.com/inky-feather/rimcrow/blob/main/frontend/src/features/load-order/orderStore.js): `frontend/src/features/load-order/orderStore.js`
- [Profiles](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_profile.py): `backend/managers/mgr_profile.py`
- [Texture optimization](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_texture_opt.py): `backend/managers/mgr_texture_opt.py`

### Acquisition and deployment

- [Workshop services](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_steam.py): `backend/managers/mgr_steam.py`
- [Downloads](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_download.py): `backend/managers/mgr_download.py`
- [Git mod sources](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_github.py): `backend/managers/mgr_github.py`
- [Mod deployment](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_mod_package.py): `backend/managers/mgr_mod_package.py`

### Diagnostics and assistance

- [Game logs](https://github.com/inky-feather/rimcrow/blob/main/backend/managers/mgr_game_logs.py): `backend/managers/mgr_game_logs.py`
- [File search](https://github.com/inky-feather/rimcrow/blob/main/backend/text_search/manager.py): `backend/text_search/manager.py`
- [AI assistance](https://github.com/inky-feather/rimcrow/blob/main/backend/ai/ai_service.py): `backend/ai/ai_service.py`

### Runtime services

- [Game locations](https://github.com/inky-feather/rimcrow/blob/main/backend/paths/game_locations.py): `backend/paths/game_locations.py`
- [Settings](https://github.com/inky-feather/rimcrow/blob/main/backend/settings.py): `backend/settings.py`
- [Application database](https://github.com/inky-feather/rimcrow/blob/main/backend/database/dao.py): `backend/database/dao.py`

### Other components

- **Manager user**
- **RimWorld**
- **Steam services**
- **AI provider**

## Connections

- Manager user → Vue application: uses
- Vue application → Application state: renders (evidence: `frontend/src/app/App.vue`)
- Application state → Pywebview bridge: requests (evidence: `frontend/src/app/stores/appStore.js`)
- Pywebview bridge → Backend API: invokes
- Backend API → Game locations: resolves paths (evidence: `backend/api.py`)
- Backend API → Settings: uses settings (evidence: `backend/api.py`)
- Backend API → Application database: reads and writes (evidence: `backend/api.py`)
- Application state → Mod list state: loads mod state (evidence: `frontend/src/app/stores/appStore.js`)
- Backend API → Mod scanning: scans mods (evidence: `backend/api.py`)
- Backend API → Load order: manages order (evidence: `backend/api.py`)
- Backend API → Sort rules: applies rules
- Application state → Order interface: refreshes order (evidence: `frontend/src/app/stores/appStore.js`)
- Backend API → Profiles: manages profiles (evidence: `backend/api.py`)
- Backend API → Workshop services: dispatches requests (evidence: `backend/api.py`)
- Workshop services → Downloads: uses downloads (evidence: `backend/managers/mgr_steam.py`)
- Workshop services → Steam services: queries Workshop
- Backend API → Git mod sources: manages sources
- Backend API → Mod deployment: deploys packages
- Backend API → Game logs: serves log tools (evidence: `backend/api.py`)
- Backend API → File search: runs searches
- Backend API → AI assistance: dispatches AI tasks (evidence: `backend/api.py`)
- AI assistance → AI provider: sends requests
- Backend API → Texture optimization: optimizes textures
- Backend API → RimWorld: launches game
