# tt-a1i/archify architecture

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

- Interactive diagram: https://gitdiagram.com/tt-a1i/archify
- Repository: https://github.com/tt-a1i/archify
- Video tour (about a minute): https://gitdiagram.com/tt-a1i/archify/video

## Overview

Archify is an agent-assisted tool for turning a description or repository into an interactive HTML visual. Its principal workflow is: an agent invokes the CLI, Archify prepares and renders a diagram, then the artifact can be checked and finalized for exploration and sharing. The README also describes explainer pages and source-backed repository diagrams. Some renderer and viewer internals were not sampled, so those subsystems are represented by their exact paths; edges to them are limited to documented capabilities or indexed references.

Main entry points: [`archify/bin/archify.mjs`](https://github.com/tt-a1i/archify/blob/main/archify/bin/archify.mjs) (Archify CLI), [`archify/renderers/workflow/workflow-compiler.mjs`](https://github.com/tt-a1i/archify/blob/main/archify/renderers/workflow/workflow-compiler.mjs) (Workflow diagrams), [`archify/explainer/prepare.mjs`](https://github.com/tt-a1i/archify/blob/main/archify/explainer/prepare.mjs) (Explainer preparation), [`archify/explainer/render.mjs`](https://github.com/tt-a1i/archify/blob/main/archify/explainer/render.mjs) (Explainer rendering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Authoring"]
  node_cli["Archify CLI<br/>[archify.mjs]"]
  node_scenarios["Scenario recipes<br/>[scenarios.mjs]"]
end

subgraph group_rendering["Diagram rendering"]
  node_architecture["Architecture diagrams<br/>[routing.mjs]"]
  node_workflow["Workflow diagrams"]
  node_dataflow["Dataflow diagrams"]
  node_other_diagrams["Other diagram types"]
  node_shared_geometry["Shared geometry<br/>[geometry.mjs]"]
end

subgraph group_explaining["Explainers and comparison"]
  node_explainer_prepare["Explainer preparation<br/>[prepare.mjs]"]
  node_explainer_render["Explainer rendering<br/>[render.mjs]"]
  node_explainer_reader["Explainer reader<br/>[reader.js]"]
  node_architecture_delta["Architecture comparison"]
end

subgraph group_delivery["Artifact delivery"]
  node_visual_check["Visual checking<br/>[visual-check.mjs]"]
  node_finalize["Artifact finalization<br/>[finalize.mjs]"]
  node_preview["Live preview<br/>[preview.mjs]"]
  node_viewer["Interactive viewer"]
  node_html_artifact["Interactive HTML"]
end

node_agent(("User AI agent"))

node_agent -->|"requests visual"| node_cli
node_cli -->|"prepares explainer"| node_explainer_prepare
node_cli -->|"loads comparison"| node_architecture_delta
node_cli -->|"runs checks"| node_visual_check
node_cli -->|"finalizes artifact"| node_finalize
node_cli -->|"starts preview"| node_preview
node_explainer_prepare -.->|"prepares page"| node_explainer_render
node_explainer_render -->|"renders page"| node_html_artifact
node_explainer_reader -->|"reads panels"| node_html_artifact
node_architecture_delta -.->|"compares diagrams"| node_html_artifact
node_architecture -->|"uses geometry"| node_shared_geometry
node_workflow -->|"uses geometry"| node_shared_geometry
node_workflow -.->|"renders diagram"| node_html_artifact
node_dataflow -.->|"renders diagram"| node_html_artifact
node_other_diagrams -.->|"renders diagrams"| node_html_artifact
node_scenarios -.->|"informs authoring"| node_cli
node_visual_check -->|"checks artifact"| node_html_artifact
node_finalize -->|"commits artifact"| node_html_artifact
node_preview -.->|"serves preview"| node_html_artifact
node_html_artifact -->|"opens interactively"| node_viewer

click node_cli "https://github.com/tt-a1i/archify/blob/main/archify/bin/archify.mjs"
click node_scenarios "https://github.com/tt-a1i/archify/blob/main/archify/recipes/scenarios.mjs"
click node_architecture "https://github.com/tt-a1i/archify/blob/main/archify/renderers/architecture/routing.mjs"
click node_workflow "https://github.com/tt-a1i/archify/blob/main/archify/renderers/workflow/workflow-compiler.mjs"
click node_dataflow "https://github.com/tt-a1i/archify/blob/main/archify/renderers/dataflow/render-dataflow.mjs"
click node_other_diagrams "https://github.com/tt-a1i/archify/tree/main/archify/renderers"
click node_shared_geometry "https://github.com/tt-a1i/archify/blob/main/archify/renderers/shared/geometry.mjs"
click node_explainer_prepare "https://github.com/tt-a1i/archify/blob/main/archify/explainer/prepare.mjs"
click node_explainer_render "https://github.com/tt-a1i/archify/blob/main/archify/explainer/render.mjs"
click node_explainer_reader "https://github.com/tt-a1i/archify/blob/main/archify/explainer/reader.js"
click node_architecture_delta "https://github.com/tt-a1i/archify/blob/main/archify/delta/architecture-delta.mjs"
click node_visual_check "https://github.com/tt-a1i/archify/blob/main/archify/bin/visual-check.mjs"
click node_finalize "https://github.com/tt-a1i/archify/blob/main/archify/bin/finalize.mjs"
click node_preview "https://github.com/tt-a1i/archify/blob/main/archify/bin/preview.mjs"
click node_viewer "https://github.com/tt-a1i/archify/tree/main/viewer"

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_cli,node_scenarios,node_agent toneBlue
class node_architecture,node_workflow,node_dataflow,node_other_diagrams,node_shared_geometry toneAmber
class node_explainer_prepare,node_explainer_render,node_explainer_reader,node_architecture_delta toneMint
class node_visual_check,node_finalize,node_preview,node_viewer,node_html_artifact toneRose
```

## Components

### Authoring

- [Archify CLI](https://github.com/tt-a1i/archify/blob/main/archify/bin/archify.mjs): `archify/bin/archify.mjs`
- [Scenario recipes](https://github.com/tt-a1i/archify/blob/main/archify/recipes/scenarios.mjs): `archify/recipes/scenarios.mjs`

### Diagram rendering

- [Architecture diagrams](https://github.com/tt-a1i/archify/blob/main/archify/renderers/architecture/routing.mjs): `archify/renderers/architecture/routing.mjs`
- [Workflow diagrams](https://github.com/tt-a1i/archify/blob/main/archify/renderers/workflow/workflow-compiler.mjs): `archify/renderers/workflow/workflow-compiler.mjs`
- [Dataflow diagrams](https://github.com/tt-a1i/archify/blob/main/archify/renderers/dataflow/render-dataflow.mjs): `archify/renderers/dataflow/render-dataflow.mjs`
- [Other diagram types](https://github.com/tt-a1i/archify/tree/main/archify/renderers): `archify/renderers`
- [Shared geometry](https://github.com/tt-a1i/archify/blob/main/archify/renderers/shared/geometry.mjs): `archify/renderers/shared/geometry.mjs`

### Explainers and comparison

- [Explainer preparation](https://github.com/tt-a1i/archify/blob/main/archify/explainer/prepare.mjs): `archify/explainer/prepare.mjs`
- [Explainer rendering](https://github.com/tt-a1i/archify/blob/main/archify/explainer/render.mjs): `archify/explainer/render.mjs`
- [Explainer reader](https://github.com/tt-a1i/archify/blob/main/archify/explainer/reader.js): `archify/explainer/reader.js`
- [Architecture comparison](https://github.com/tt-a1i/archify/blob/main/archify/delta/architecture-delta.mjs): `archify/delta/architecture-delta.mjs`

### Artifact delivery

- [Visual checking](https://github.com/tt-a1i/archify/blob/main/archify/bin/visual-check.mjs): `archify/bin/visual-check.mjs`
- [Artifact finalization](https://github.com/tt-a1i/archify/blob/main/archify/bin/finalize.mjs): `archify/bin/finalize.mjs`
- [Live preview](https://github.com/tt-a1i/archify/blob/main/archify/bin/preview.mjs): `archify/bin/preview.mjs`
- [Interactive viewer](https://github.com/tt-a1i/archify/tree/main/viewer): `viewer`
- **Interactive HTML**

### Other components

- **User AI agent**

## Connections

- User AI agent → Archify CLI: requests visual (evidence: `README.md`)
- Archify CLI → Explainer preparation: prepares explainer (evidence: `archify/bin/archify.mjs`)
- Archify CLI → Architecture comparison: loads comparison (evidence: `archify/bin/archify.mjs`)
- Archify CLI → Visual checking: runs checks (evidence: `archify/bin/archify.mjs`)
- Archify CLI → Artifact finalization: finalizes artifact (evidence: `archify/bin/archify.mjs`)
- Archify CLI → Live preview: starts preview (evidence: `archify/bin/archify.mjs`)
- Explainer preparation → Explainer rendering: prepares page
- Explainer rendering → Interactive HTML: renders page (evidence: `README.md`)
- Explainer reader → Interactive HTML: reads panels (evidence: `README.md`)
- Architecture comparison → Interactive HTML: compares diagrams
- Architecture diagrams → Shared geometry: uses geometry (evidence: `archify/renderers/architecture/routing.mjs`)
- Workflow diagrams → Shared geometry: uses geometry (evidence: `archify/renderers/workflow/workflow-compiler.mjs`)
- Workflow diagrams → Interactive HTML: renders diagram
- Dataflow diagrams → Interactive HTML: renders diagram
- Other diagram types → Interactive HTML: renders diagrams
- Scenario recipes → Archify CLI: informs authoring
- Visual checking → Interactive HTML: checks artifact (evidence: `archify/bin/visual-check.mjs`)
- Artifact finalization → Interactive HTML: commits artifact (evidence: `archify/bin/finalize.mjs`)
- Live preview → Interactive HTML: serves preview
- Interactive HTML → Interactive viewer: opens interactively (evidence: `README.md`)
