# detlefs/export-vertexmodlist architecture

> Architecture diagram of the GitHub repository detlefs/export-vertexmodlist, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/detlefs/export-vertexmodlist
- Repository: https://github.com/detlefs/export-vertexmodlist

## Overview

##### Main Components

a) Input Sources:
- A sub-component for "state_backups_full/*.json" files in %APPDATA%\Vortex\temp

b) Processing Components:
- A sub-component for the ModData Type Definition

c) Output Handlers:
- Potential output processing streams (PowerShell pipeline)
- Common filtering/formatting components (Where-Object, Select-Object, etc.)

##### Flow Representation

- JSON backup file → Script Input
- Script Processing → ModData Objects
- ModData Objects → PowerShell Pipeline
- Pipeline → Various Output Formats (Table, Markdown, etc.)

##### Specific Implementation Details

- Blue: External components (Vortex Application)
- Green: Core script components
- Yellow: Data transformation components
- Gray: Output formats

##### Elements

a) Input Section:
- Vortex Backup Location: %APPDATA%\Vortex\temp\state_backups_full\*.json
- About backup file selection (newest file)

b) Processing Section:
- ModData Type with key properties
- Filtering logic for "Uninstalled" mods

c) Output Section:
- PowerShell pipeline options
- Common output formats (Table, Markdown, etc.)

##### Important Notes

- Version compatibility (Vortex 1.10.8)
- Backup file refresh requirements
- Pipeline integration points

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Input
        VA[Vortex Application]
        BF["%APPDATA%\Vortex\temp\state_backups_full\*.json"]
        VA --> BF
    end

    subgraph Processing
        PS[Export-VortexModList Script]:::script
        MT[ModData Type Definition]
        BF --> PS
        PS --> MT
    end

    subgraph Pipeline
        PL[PowerShell Pipeline]
        FT[Where-Object Filter]
        SO[Select-Object]
        MT --> PL
        PL --> FT
        FT --> SO
    end

    subgraph Output
        TB[Table Format]
        MD[Markdown Format]
        CSV[CSV Format]
        SO --> TB
        SO --> MD
        SO --> CSV
    end

    subgraph Notes
        N1[Vortex 1.10.8 Compatible]
        N2[Requires Fresh Backup]
        N3[Pipeline Integration]
    end

    classDef external fill:#2374AB
    classDef processing fill:#57A773
    classDef pipeline fill:#FFD23F
    classDef output fill:#EE964B
    classDef notes fill:#gray
    classDef script fill:#57A773,stroke:#333,stroke-width:2px

    class VA external
    class PS,MT processing
    class PL,FT,SO pipeline
    class TB,MD,CSV output
    class N1,N2,N3 notes

    click PS "https://github.com/detlefs/Export-VertexModList/blob/master/Export-VortexModList.ps1"

    %% Legend
    subgraph Legend
        L1[External System]:::external
        L2[Processing Component]:::processing
        L3[Pipeline Component]:::pipeline
        L4[Output Format]:::output
        L5[System Note]:::notes
    end
```
