# squ1zm0/techdirect architecture

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

- Interactive diagram: https://gitdiagram.com/squ1zm0/techdirect
- Repository: https://github.com/squ1zm0/techdirect

## Overview

This repository is a manufacturer technical-support directory: its YAML records hold manufacturer and support-contact data, and a script turns those records into JSON indexes and category shards. The evident maintainer workflow is to maintain records, optionally normalize phone numbers, validate record completeness, then build indexes. Network, web-search, and external verification are also represented by repository guides and logs, but their implementation and links to the data workflow are not shown in the supplied excerpts; those connections are therefore omitted.

Main entry points: [`tech-support-directory/data/manufacturers`](https://github.com/squ1zm0/techdirect/tree/main/tech-support-directory/data/manufacturers) (Manufacturer records), [`tech-support-directory/scripts/build-index.ts`](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/build-index.ts) (Index builder), [`tech-support-directory/scripts/normalize-phones.ts`](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/normalize-phones.ts) (Phone normalizer), [`tech-support-directory/scripts/validate.ts`](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/validate.ts) (Record validator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_records["Directory data"]
  node_manufacturer_records[("Manufacturer records")]
  node_phone_normalizer["Phone normalizer"]
  node_record_validator["Record validator<br/>[validate.ts]"]
end

subgraph group_indexing["Index generation"]
  node_index_builder["Index builder<br/>[build-index.ts]"]
  node_generated_indexes[("Generated JSON indexes")]
end

subgraph group_verification["Verification practice"]
  node_verification_guides["Verification guides"]
  node_network_guide["Network validation"]
  node_web_search_guide["Web search verification"]
  node_verification_log["External verification log"]
end

node_maintainer(("Directory maintainer"))

node_maintainer -.->|"maintains"| node_manufacturer_records
node_phone_normalizer -->|"rewrites phones"| node_manufacturer_records
node_record_validator -->|"checks records"| node_manufacturer_records
node_index_builder -->|"reads records"| node_manufacturer_records
node_index_builder -->|"writes indexes"| node_generated_indexes

click node_manufacturer_records "https://github.com/squ1zm0/techdirect/tree/main/tech-support-directory/data/manufacturers"
click node_phone_normalizer "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/normalize-phones.ts"
click node_record_validator "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/validate.ts"
click node_index_builder "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/build-index.ts"
click node_generated_indexes "https://github.com/squ1zm0/techdirect/tree/main/tech-support-directory/dist"
click node_verification_guides "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/VERIFICATION_METHODOLOGY.md"
click node_network_guide "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/NETWORK_VALIDATION_GUIDE.md"
click node_web_search_guide "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/WEB_SEARCH_VERIFICATION_GUIDE.md"
click node_verification_log "https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/EXTERNAL_VERIFICATION_LOG.md"

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_manufacturer_records,node_phone_normalizer,node_record_validator toneBlue
class node_index_builder,node_generated_indexes toneAmber
class node_verification_guides,node_network_guide,node_web_search_guide,node_verification_log toneMint
class node_maintainer toneIndigo
```

## Components

### Directory data

- [Manufacturer records](https://github.com/squ1zm0/techdirect/tree/main/tech-support-directory/data/manufacturers): `tech-support-directory/data/manufacturers`
- [Phone normalizer](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/normalize-phones.ts): `tech-support-directory/scripts/normalize-phones.ts`
- [Record validator](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/validate.ts): `tech-support-directory/scripts/validate.ts`

### Index generation

- [Index builder](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/scripts/build-index.ts): `tech-support-directory/scripts/build-index.ts`
- [Generated JSON indexes](https://github.com/squ1zm0/techdirect/tree/main/tech-support-directory/dist): `tech-support-directory/dist`

### Verification practice

- [Verification guides](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/VERIFICATION_METHODOLOGY.md): `tech-support-directory/VERIFICATION_METHODOLOGY.md`
- [Network validation](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/NETWORK_VALIDATION_GUIDE.md): `tech-support-directory/NETWORK_VALIDATION_GUIDE.md`
- [Web search verification](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/WEB_SEARCH_VERIFICATION_GUIDE.md): `tech-support-directory/WEB_SEARCH_VERIFICATION_GUIDE.md`
- [External verification log](https://github.com/squ1zm0/techdirect/blob/main/tech-support-directory/EXTERNAL_VERIFICATION_LOG.md): `tech-support-directory/EXTERNAL_VERIFICATION_LOG.md`

### Other components

- **Directory maintainer**

## Connections

- Directory maintainer → Manufacturer records: maintains
- Phone normalizer → Manufacturer records: rewrites phones (evidence: `tech-support-directory/scripts/normalize-phones.ts`)
- Record validator → Manufacturer records: checks records (evidence: `tech-support-directory/scripts/validate.ts`)
- Index builder → Manufacturer records: reads records (evidence: `tech-support-directory/scripts/build-index.ts`)
- Index builder → Generated JSON indexes: writes indexes (evidence: `tech-support-directory/scripts/build-index.ts`)
