Architecture of microsoft/powertoys
microsoft/powertoys is 7,337 source files holding 85,227 symbols across 6 modules, written mainly in C#, C++, JavaScript. The largest module is src, with 6,307 files, and 107 files are entry points into the dependency graph.
How powertoys fits together
Each utility lives in its own area of the src directory, which holds 6307 of the repository's files. src/common is the shared helper library used by the native and managed components, covering settings files, logging, version strings, monitor geometry and UI test automation. src/common/interop holds shared Windows helper code for logging, named-pipe trust, update state, notifications and native API calls. installer/PowerToysSetupCustomActionsVNext adds custom steps to the installer, including handling files-in-use prompts during setup and running custom actions during MSI installs. src/dsc/v3/PowerToys.DSC/Program.cs is one of the program entry points for the DSC component. Unit tests for the shared C++ helpers are in src/common/UnitTests-CommonUtils, where each test calls production code and reports pass or fail.
Largest modules
- src: 6,307 files and 766,660 lines of code
- tools: 79 files and 5,897 lines of code
- .github: 13 files and 5,475 lines of code
- .pipelines: 11 files and 1,170 lines of code
- installer: 9 files and 1,782 lines of code
- doc: 1 file and 24 lines of code
Languages
By file count: C# 4,945 files, C++ 1,339 files, JavaScript 106 files, C 18 files, Python 11 files, Makefile 1 file.
Documentation
Repowise documents powertoys in 5,580 pages generated from the source, 71 of them written explanations of the repository and its modules. Module guides include:
- src/Monaco/customLanguages: ActionRunner Execution Core
- src/modules/AdvancedPaste/AdvancedPaste: Advanced Paste AI Action Pipeline
- src/modules/alwaysontop/AlwaysOnTop: Always On Top Window Pinning
- src/modules/previewpane/common/cominterop: Bgcode Preview Handler Interop
- src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.Calc/Helper: Bookmark Entry Forms
- tools/BugReportTool/BugReportTool: Bug Report Collection Tool
More on powertoys: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos