# microsoft/powerapps-tools architecture

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

- Interactive diagram: https://gitdiagram.com/microsoft/powerapps-tools
- Repository: https://github.com/microsoft/powerapps-tools

## Overview

This repository is a collection of Power Apps developer tools and Power Platform controls, rather than one end-to-end application. Its visible workflows include editing themes, comparing app changes, merging apps, converting phone apps, and using PCF controls for maps, downloads, attachments, and SVG editing. The excerpts show theme data loading and app-package parsing/change analysis; most individual control and desktop-tool implementations were not sampled, and the README is empty, so their internal relationships are not inferred.

Main entry points: [`Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs) (Theme editor UI), [`Tools/Common/Microsoft.PowerApps.Tools.Zipper/Utility.cs`](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/Microsoft.PowerApps.Tools.Zipper/Utility.cs) (Package archive I/O), [`Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs`](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs) (App merge processor), [`Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs`](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs) (Phone-to-tablet conversion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pcf["Power Platform Controls"]
  node_maps_dataset["Azure Maps dataset<br/>[index.ts]"]
  node_maps_field["Azure Maps field<br/>[index.ts]"]
  node_base64["Base64 download<br/>[index.ts]"]
  node_image_attachment["Image attachment<br/>[index.ts]"]
  node_svg_editor["SVG editor<br/>[index.ts]"]
end

subgraph group_theme["Theme Editor"]
  node_theme_ui["Theme editor UI<br/>[MainViewModel.cs]"]
  node_palette_vm["Palette editing"]
  node_theme_history["Edit history<br/>[History.cs]"]
  node_theme_data["Theme data service<br/>[DataService.cs]"]
  node_theme_design_data["Design theme data"]
  node_theme_model["Theme model<br/>[ThemeModel.cs]"]
end

subgraph group_desktop["Desktop Utilities"]
  node_change_finder["App change finder"]
  node_app_merger_ui["App merger UI<br/>[MainViewModel.cs]"]
  node_phone_converter_ui["Phone converter UI<br/>[MainWindow.xaml.cs]"]
end

subgraph group_appdata["App Package Utilities"]
  node_app_entities["App entity schema<br/>[Model.cs]"]
  node_utility_models["Package data models<br/>[AppData.cs]"]
  node_app_helper["Package extraction helpers<br/>[Helper.cs]"]
  node_zipper["Package archive I/O<br/>[Utility.cs]"]
  node_merge_processor["App merge processor<br/>[MergeProcessor.cs]"]
end

subgraph group_core["Core Transformations"]
  node_change_manager["App change analysis<br/>[ChangeManager.cs]"]
  node_phone_converter["Phone-to-tablet conversion<br/>[Converter.cs]"]
  node_conversion_rules["Conversion rules<br/>[ConversionRule.cs]"]
  node_node_details["Control node details<br/>[NodeDetails.cs]"]
end

node_maker(("Power Apps maker"))

node_theme_ui -->|"uses"| node_palette_vm
node_theme_ui -->|"uses"| node_theme_history
node_theme_ui -->|"loads via"| node_theme_data
node_theme_ui -->|"updates"| node_theme_model
node_theme_ui -->|"uses"| node_zipper
node_theme_ui -->|"uses"| node_utility_models
node_theme_data -->|"deserializes"| node_theme_model
node_theme_design_data -->|"creates"| node_theme_model
node_app_helper -->|"extracts with"| node_zipper
node_app_helper -->|"builds"| node_utility_models
node_merge_processor -->|"delegates to"| node_app_helper
node_merge_processor -->|"merges"| node_utility_models
node_merge_processor -->|"uses"| node_zipper
node_change_manager -->|"extracts with"| node_zipper
node_change_manager -->|"analyzes"| node_app_entities
node_phone_converter -->|"uses"| node_conversion_rules
node_phone_converter -->|"uses"| node_node_details
node_phone_converter -->|"uses"| node_zipper

click node_maps_dataset "https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/AzureMaps/data-set/azureMapsDataSetControl/index.ts"
click node_maps_field "https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/AzureMaps/field/azureMapsFieldControl/index.ts"
click node_base64 "https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/Base64Download/Base64Download/index.ts"
click node_image_attachment "https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/ImageAttachmentControl/ImageAttachmentControl/index.ts"
click node_svg_editor "https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/SVGEditor/SVGEditor/index.ts"
click node_theme_ui "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs"
click node_palette_vm "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/PaletteViewModel.cs"
click node_theme_history "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/History.cs"
click node_theme_data "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/DataService.cs"
click node_theme_design_data "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Design/DesignDataService.cs"
click node_theme_model "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/ThemeModel.cs"
click node_change_finder "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.Tools.AppChangeFinder/ChangeFinderViewModel.cs"
click node_app_merger_ui "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.Tools.AppMerger/ViewModel/MainViewModel.cs"
click node_phone_converter_ui "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.Tools.PhoneAppConverter/MainWindow.xaml.cs"
click node_app_entities "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/Microsoft.PowerApps.Tools.AppEntities/Model.cs"
click node_utility_models "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/Models/AppData.cs"
click node_app_helper "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/Helper.cs"
click node_zipper "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/Microsoft.PowerApps.Tools.Zipper/Utility.cs"
click node_merge_processor "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs"
click node_change_manager "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs"
click node_phone_converter "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs"
click node_conversion_rules "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/ConversionRule.cs"
click node_node_details "https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/NodeDetails.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_maps_dataset,node_maps_field,node_base64,node_image_attachment,node_svg_editor toneBlue
class node_theme_ui,node_palette_vm,node_theme_history,node_theme_data,node_theme_design_data,node_theme_model toneAmber
class node_change_finder,node_app_merger_ui,node_phone_converter_ui toneMint
class node_app_entities,node_utility_models,node_app_helper,node_zipper,node_merge_processor toneRose
class node_change_manager,node_phone_converter,node_conversion_rules,node_node_details,node_maker toneIndigo
```

## Components

### Power Platform Controls

- [Azure Maps dataset](https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/AzureMaps/data-set/azureMapsDataSetControl/index.ts): `Components/PCF/AzureMaps/data-set/azureMapsDataSetControl/index.ts`
- [Azure Maps field](https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/AzureMaps/field/azureMapsFieldControl/index.ts): `Components/PCF/AzureMaps/field/azureMapsFieldControl/index.ts`
- [Base64 download](https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/Base64Download/Base64Download/index.ts): `Components/PCF/Base64Download/Base64Download/index.ts`
- [Image attachment](https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/ImageAttachmentControl/ImageAttachmentControl/index.ts): `Components/PCF/ImageAttachmentControl/ImageAttachmentControl/index.ts`
- [SVG editor](https://github.com/microsoft/powerapps-tools/blob/master/Components/PCF/SVGEditor/SVGEditor/index.ts): `Components/PCF/SVGEditor/SVGEditor/index.ts`

### Theme Editor

- [Theme editor UI](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs): `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`
- [Palette editing](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/PaletteViewModel.cs): `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/PaletteViewModel.cs`
- [Edit history](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/History.cs): `Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/History.cs`
- [Theme data service](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/DataService.cs): `Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/DataService.cs`
- [Design theme data](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Design/DesignDataService.cs): `Tools/Apps/Microsoft.PowerApps.ThemeEditor/Design/DesignDataService.cs`
- [Theme model](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/ThemeModel.cs): `Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/ThemeModel.cs`

### Desktop Utilities

- [App change finder](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.Tools.AppChangeFinder/ChangeFinderViewModel.cs): `Tools/Apps/Microsoft.PowerApps.Tools.AppChangeFinder/ChangeFinderViewModel.cs`
- [App merger UI](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.Tools.AppMerger/ViewModel/MainViewModel.cs): `Tools/Apps/Microsoft.PowerApps.Tools.AppMerger/ViewModel/MainViewModel.cs`
- [Phone converter UI](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Apps/Microsoft.PowerApps.Tools.PhoneAppConverter/MainWindow.xaml.cs): `Tools/Apps/Microsoft.PowerApps.Tools.PhoneAppConverter/MainWindow.xaml.cs`

### App Package Utilities

- [App entity schema](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/Microsoft.PowerApps.Tools.AppEntities/Model.cs): `Tools/Common/Microsoft.PowerApps.Tools.AppEntities/Model.cs`
- [Package data models](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/Models/AppData.cs): `Tools/Common/PowerApps.Tools.Utilities/Models/AppData.cs`
- [Package extraction helpers](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/Helper.cs): `Tools/Common/PowerApps.Tools.Utilities/Helper.cs`
- [Package archive I/O](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/Microsoft.PowerApps.Tools.Zipper/Utility.cs): `Tools/Common/Microsoft.PowerApps.Tools.Zipper/Utility.cs`
- [App merge processor](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs): `Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs`

### Core Transformations

- [App change analysis](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs): `Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs`
- [Phone-to-tablet conversion](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs): `Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs`
- [Conversion rules](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/ConversionRule.cs): `Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/ConversionRule.cs`
- [Control node details](https://github.com/microsoft/powerapps-tools/blob/master/Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/NodeDetails.cs): `Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/NodeDetails.cs`

### Other components

- **Power Apps maker**

## Connections

- Theme editor UI → Palette editing: uses (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`)
- Theme editor UI → Edit history: uses (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`)
- Theme editor UI → Theme data service: loads via (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`)
- Theme editor UI → Theme model: updates (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`)
- Theme editor UI → Package archive I/O: uses (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`)
- Theme editor UI → Package data models: uses (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs`)
- Theme data service → Theme model: deserializes (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/Model/DataService.cs`)
- Design theme data → Theme model: creates (evidence: `Tools/Apps/Microsoft.PowerApps.ThemeEditor/Design/DesignDataService.cs`)
- Package extraction helpers → Package archive I/O: extracts with (evidence: `Tools/Common/PowerApps.Tools.Utilities/Helper.cs`)
- Package extraction helpers → Package data models: builds (evidence: `Tools/Common/PowerApps.Tools.Utilities/Helper.cs`)
- App merge processor → Package extraction helpers: delegates to (evidence: `Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs`)
- App merge processor → Package data models: merges (evidence: `Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs`)
- App merge processor → Package archive I/O: uses (evidence: `Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs`)
- App change analysis → Package archive I/O: extracts with (evidence: `Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs`)
- App change analysis → App entity schema: analyzes (evidence: `Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs`)
- Phone-to-tablet conversion → Conversion rules: uses (evidence: `Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs`)
- Phone-to-tablet conversion → Control node details: uses (evidence: `Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs`)
- Phone-to-tablet conversion → Package archive I/O: uses (evidence: `Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet/Converter.cs`)
