# itzmediegoo/archor architecture

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

- Interactive diagram: https://gitdiagram.com/itzmediegoo/archor
- Repository: https://github.com/itzmediegoo/archor

## Overview

ArchOr is a Windows Forms desktop tool for triaging scanned land-registry documents. The user selects a source folder, reviews images in a preview, assigns categories, and archives categorized files under a protocol folder with generated names; uncategorized rows remain available. It also remembers source and destination paths between sessions and rejects an existing protocol folder. The graph follows the sampled startup and form logic; the README documents the product capabilities, while unsampled implementation details are not inferred.

Main entry points: [`ArchOr/Form1.cs`](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs) (File archiving), [`ArchOr/Program.cs`](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Program.cs) (Application startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_program["Application startup<br/>[Program.cs]"]
  node_form["Main form<br/>[Form1.cs]"]
  node_source_picker["Source selection<br/>[Form1.cs]"]
  node_destination_picker["Destination selection<br/>[Form1.cs]"]
end

subgraph group_triage["Document triage"]
  node_image_list["Image list<br/>[Form1.cs]"]
  node_preview["Image preview<br/>[Form1.cs]"]
  node_category_grid["Category grid<br/>[Form1.cs]"]
end

subgraph group_archive["Archive and session"]
  node_protocol_check["Protocol validation<br/>[Form1.cs]"]
  node_archive_files["File archiving<br/>[Form1.cs]"]
  node_row_cleanup["Processed-row cleanup<br/>[Form1.cs]"]
  node_session_paths["Saved paths<br/>[Form1.cs]"]
end

node_user(("User"))
node_filesystem[("Local filesystem")]

node_program -->|"runs"| node_form
node_user -->|"selects source"| node_source_picker
node_user -->|"selects destination"| node_destination_picker
node_user -->|"categorizes images"| node_category_grid
node_user -->|"starts archiving"| node_archive_files
node_form -->|"loads paths"| node_session_paths
node_source_picker -->|"loads folder"| node_image_list
node_image_list -->|"reads filenames"| node_filesystem
node_image_list -->|"selection displays"| node_preview
node_preview -->|"reads image stream"| node_filesystem
node_source_picker -->|"saves paths"| node_session_paths
node_destination_picker -->|"saves paths"| node_session_paths
node_session_paths -->|"reads and writes config"| node_filesystem
node_archive_files -->|"checks folder"| node_protocol_check
node_archive_files -->|"creates and copies"| node_filesystem
node_archive_files -->|"removes successes"| node_row_cleanup
node_row_cleanup -->|"updates rows"| node_category_grid

click node_program "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Program.cs"
click node_form "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_source_picker "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_destination_picker "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_image_list "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_preview "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_category_grid "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_protocol_check "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_archive_files "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_row_cleanup "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs"
click node_session_paths "https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.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_program,node_form,node_source_picker,node_destination_picker,node_user toneBlue
class node_image_list,node_preview,node_category_grid,node_filesystem toneAmber
class node_protocol_check,node_archive_files,node_row_cleanup,node_session_paths toneMint
```

## Components

### Desktop interface

- [Application startup](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Program.cs): `ArchOr/Program.cs`
- [Main form](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [Source selection](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [Destination selection](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`

### Document triage

- [Image list](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [Image preview](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [Category grid](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`

### Archive and session

- [Protocol validation](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [File archiving](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [Processed-row cleanup](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`
- [Saved paths](https://github.com/itzmediegoo/archor/blob/master/ArchOr/Form1.cs): `ArchOr/Form1.cs`

### Other components

- **User**
- **Local filesystem**

## Connections

- Application startup → Main form: runs (evidence: `ArchOr/Program.cs`)
- User → Source selection: selects source (evidence: `README.md`)
- User → Destination selection: selects destination (evidence: `README.md`)
- User → Category grid: categorizes images (evidence: `README.md`)
- User → File archiving: starts archiving (evidence: `README.md`)
- Main form → Saved paths: loads paths (evidence: `ArchOr/Form1.cs`)
- Source selection → Image list: loads folder (evidence: `ArchOr/Form1.cs`)
- Image list → Local filesystem: reads filenames (evidence: `ArchOr/Form1.cs`)
- Image list → Image preview: selection displays (evidence: `ArchOr/Form1.cs`)
- Image preview → Local filesystem: reads image stream (evidence: `ArchOr/Form1.cs`)
- Source selection → Saved paths: saves paths (evidence: `ArchOr/Form1.cs`)
- Destination selection → Saved paths: saves paths (evidence: `ArchOr/Form1.cs`)
- Saved paths → Local filesystem: reads and writes config (evidence: `ArchOr/Form1.cs`)
- File archiving → Protocol validation: checks folder (evidence: `ArchOr/Form1.cs`)
- File archiving → Local filesystem: creates and copies (evidence: `ArchOr/Form1.cs`)
- File archiving → Processed-row cleanup: removes successes (evidence: `ArchOr/Form1.cs`)
- Processed-row cleanup → Category grid: updates rows (evidence: `ArchOr/Form1.cs`)
