# farag2/sophia-script-for-windows architecture

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

- Interactive diagram: https://gitdiagram.com/farag2/sophia-script-for-windows
- Repository: https://github.com/farag2/sophia-script-for-windows

## Overview

Sophia Script for Windows is a PowerShell toolkit for interactively configuring and restoring Windows settings across supported Windows editions, architectures, and PowerShell versions. The main workflow is a user launching a version-appropriate script and applying selected tweaks; documented capabilities include privacy and security settings, app management, system cleanup, and other Windows configuration. The tree also includes a graphical wrapper and configuration/localization assets. No source excerpts were provided, so feature-level relationships below rely on README statements; implementation details and links between subsystems remain unverified.

Main entry points: [`src`](https://github.com/farag2/sophia-script-for-windows/tree/main/src) (Sophia scripts), [`Wrapper/SophiaScriptWrapper.exe`](https://github.com/farag2/sophia-script-for-windows/blob/main/Wrapper/SophiaScriptWrapper.exe) (Graphical wrapper), [`Wrapper/Config`](https://github.com/farag2/sophia-script-for-windows/tree/main/Wrapper/Config) (Windows configuration), [`Wrapper/Localizations`](https://github.com/farag2/sophia-script-for-windows/tree/main/Wrapper/Localizations) (Localized resources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry points"]
  node_scripts["Sophia scripts"]
  node_wrapper["Graphical wrapper"]
end

subgraph group_tuning["Windows tuning"]
  node_privacy["Privacy and security"]
  node_personalization["Personalization and AI"]
  node_policies["Registry policies"]
  node_dns["DNS-over-HTTPS"]
  node_folders["User folders"]
end

subgraph group_management["System management"]
  node_associations["File associations"]
  node_apps["App management"]
  node_cleanup["Scheduled cleanup"]
  node_wsl["WSL installation"]
  node_runtimes["Runtime installation"]
  node_cursors["Cursor installation"]
end

subgraph group_assets["Configuration assets"]
  node_configuration["Windows configuration"]
  node_localizations["Localized resources"]
end

node_user(("Windows user"))

node_user -->|"runs"| node_scripts
node_scripts -->|"configures"| node_privacy
node_scripts -->|"configures"| node_personalization
node_scripts -->|"applies"| node_policies
node_scripts -->|"configures"| node_dns
node_scripts -->|"changes"| node_folders
node_scripts -->|"manages"| node_associations
node_scripts -->|"manages"| node_apps
node_scripts -->|"creates tasks"| node_cleanup
node_scripts -->|"installs"| node_wsl
node_scripts -->|"installs"| node_runtimes
node_scripts -->|"installs"| node_cursors
node_user -.->|"uses"| node_wrapper
node_wrapper -.->|"reads"| node_configuration
node_wrapper -.->|"uses"| node_localizations

click node_scripts "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_wrapper "https://github.com/farag2/sophia-script-for-windows/blob/main/Wrapper/SophiaScriptWrapper.exe"
click node_configuration "https://github.com/farag2/sophia-script-for-windows/tree/main/Wrapper/Config"
click node_localizations "https://github.com/farag2/sophia-script-for-windows/tree/main/Wrapper/Localizations"
click node_privacy "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_personalization "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_policies "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_dns "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_folders "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_associations "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_apps "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_cleanup "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_wsl "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_runtimes "https://github.com/farag2/sophia-script-for-windows/tree/main/src"
click node_cursors "https://github.com/farag2/sophia-script-for-windows/tree/main/src"

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_scripts,node_wrapper,node_user toneBlue
class node_privacy,node_personalization,node_policies,node_dns,node_folders toneAmber
class node_associations,node_apps,node_cleanup,node_wsl,node_runtimes,node_cursors toneMint
class node_configuration,node_localizations toneRose
```

## Components

### Entry points

- [Sophia scripts](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [Graphical wrapper](https://github.com/farag2/sophia-script-for-windows/blob/main/Wrapper/SophiaScriptWrapper.exe): `Wrapper/SophiaScriptWrapper.exe`

### Windows tuning

- [Privacy and security](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [Personalization and AI](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [Registry policies](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [DNS-over-HTTPS](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [User folders](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`

### System management

- [File associations](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [App management](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [Scheduled cleanup](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [WSL installation](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [Runtime installation](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`
- [Cursor installation](https://github.com/farag2/sophia-script-for-windows/tree/main/src): `src`

### Configuration assets

- [Windows configuration](https://github.com/farag2/sophia-script-for-windows/tree/main/Wrapper/Config): `Wrapper/Config`
- [Localized resources](https://github.com/farag2/sophia-script-for-windows/tree/main/Wrapper/Localizations): `Wrapper/Localizations`

### Other components

- **Windows user**

## Connections

- Windows user → Sophia scripts: runs (evidence: `README.md`)
- Sophia scripts → Privacy and security: configures (evidence: `README.md`)
- Sophia scripts → Personalization and AI: configures (evidence: `README.md`)
- Sophia scripts → Registry policies: applies (evidence: `README.md`)
- Sophia scripts → DNS-over-HTTPS: configures (evidence: `README.md`)
- Sophia scripts → User folders: changes (evidence: `README.md`)
- Sophia scripts → File associations: manages (evidence: `README.md`)
- Sophia scripts → App management: manages (evidence: `README.md`)
- Sophia scripts → Scheduled cleanup: creates tasks (evidence: `README.md`)
- Sophia scripts → WSL installation: installs (evidence: `README.md`)
- Sophia scripts → Runtime installation: installs (evidence: `README.md`)
- Sophia scripts → Cursor installation: installs (evidence: `README.md`)
- Windows user → Graphical wrapper: uses
- Graphical wrapper → Windows configuration: reads
- Graphical wrapper → Localized resources: uses
