# git-neelesh/archify architecture

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

- Interactive diagram: https://gitdiagram.com/git-neelesh/archify
- Repository: https://github.com/git-neelesh/archify

## Overview

Archify turns an idea, plan, or repository into an interactive HTML diagram that users can explore and share. Its documented workflow begins with a user asking an AI agent to use Archify; the CLI produces the artifact, which the viewer supports with focused views and route tracing. The repository also includes distinct architecture, workflow, sequence, dataflow, and lifecycle renderers, plus repository-delta and artifact-preview/verification capabilities. Some renderer dispatch and viewer wiring are unsampled, so those links are marked unverified rather than inferred as direct calls.

Main entry points: [`archify/bin/archify.mjs`](https://github.com/git-neelesh/archify/blob/main/archify/bin/archify.mjs) (Archify CLI), [`archify/bin/finalize.mjs`](https://github.com/git-neelesh/archify/blob/main/archify/bin/finalize.mjs) (Artifact finalization), [`viewer/export.js`](https://github.com/git-neelesh/archify/blob/main/viewer/export.js) (Interactive HTML viewer), [`archify/bin/preview.mjs`](https://github.com/git-neelesh/archify/blob/main/archify/bin/preview.mjs) (Live preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

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

subgraph group_rendering["Rendering and shared services"]
  node_architecture["Architecture diagrams"]
  node_workflow["Workflow diagrams"]
  node_sequence["Sequence diagrams"]
  node_dataflow["Dataflow diagrams"]
  node_lifecycle["Lifecycle diagrams"]
  node_render_shared["Render helpers<br/>[utils.mjs]"]
  node_validation["Input validation<br/>[validator.mjs]"]
end

subgraph group_exploration["Interactive exploration"]
  node_interactive_viewer["Interactive HTML viewer<br/>[export.js]"]
  node_focus["Focus and guided views<br/>[focus.js]"]
  node_route_probe["Route tracing<br/>[route-probe.js]"]
  node_semantic_lens["Semantic lens<br/>[semantic-lens.js]"]
end

subgraph group_delivery["Artifact delivery"]
  node_preview["Live preview<br/>[preview.mjs]"]
  node_finalize["Artifact finalization<br/>[finalize.mjs]"]
  node_visual_check["Visual verification<br/>[visual-check.mjs]"]
  node_output_paths["Output path safety<br/>[output-path.mjs]"]
  node_atomic_output["Atomic output<br/>[atomic-output.mjs]"]
end

subgraph group_evidence["Repository evidence"]
  node_delta["Architecture delta"]
  node_repository_evidence["Repository evidence"]
end

node_user(("User / AI agent"))

node_user -->|"requests diagram"| node_cli
node_cli -.->|"uses recipes"| node_scenarios
node_cli -.->|"renders diagrams"| node_architecture
node_cli -.->|"renders diagrams"| node_workflow
node_cli -.->|"renders diagrams"| node_sequence
node_cli -.->|"renders diagrams"| node_dataflow
node_cli -.->|"renders diagrams"| node_lifecycle
node_cli -->|"validates input"| node_validation
node_workflow -->|"uses helpers"| node_render_shared
node_sequence -->|"uses helpers"| node_render_shared
node_interactive_viewer -.->|"supports focus"| node_focus
node_interactive_viewer -.->|"supports tracing"| node_route_probe
node_interactive_viewer -.->|"supports lens"| node_semantic_lens
node_cli -.->|"checks evidence"| node_repository_evidence
node_cli -.->|"computes changes"| node_delta
node_cli -->|"starts preview"| node_preview
node_preview -->|"resolves output"| node_output_paths
node_preview -.->|"commits artifact"| node_atomic_output
node_cli -->|"finalizes artifact"| node_finalize
node_finalize -->|"checks artifact"| node_visual_check
node_finalize -->|"writes safely"| node_atomic_output
node_finalize -->|"resolves paths"| node_output_paths
node_visual_check -->|"publishes evidence"| node_atomic_output

click node_cli "https://github.com/git-neelesh/archify/blob/main/archify/bin/archify.mjs"
click node_scenarios "https://github.com/git-neelesh/archify/blob/main/archify/recipes/scenarios.mjs"
click node_architecture "https://github.com/git-neelesh/archify/blob/main/archify/renderers/architecture/render-architecture.mjs"
click node_workflow "https://github.com/git-neelesh/archify/blob/main/archify/renderers/workflow/workflow-compiler.mjs"
click node_sequence "https://github.com/git-neelesh/archify/blob/main/archify/renderers/sequence/render-sequence.mjs"
click node_dataflow "https://github.com/git-neelesh/archify/blob/main/archify/renderers/dataflow/render-dataflow.mjs"
click node_lifecycle "https://github.com/git-neelesh/archify/blob/main/archify/renderers/lifecycle/render-lifecycle.mjs"
click node_render_shared "https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/utils.mjs"
click node_validation "https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/validator.mjs"
click node_interactive_viewer "https://github.com/git-neelesh/archify/blob/main/viewer/export.js"
click node_focus "https://github.com/git-neelesh/archify/blob/main/viewer/focus.js"
click node_route_probe "https://github.com/git-neelesh/archify/blob/main/viewer/route-probe.js"
click node_semantic_lens "https://github.com/git-neelesh/archify/blob/main/viewer/semantic-lens.js"
click node_delta "https://github.com/git-neelesh/archify/blob/main/archify/delta/architecture-delta.mjs"
click node_repository_evidence "https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/repository-evidence.mjs"
click node_preview "https://github.com/git-neelesh/archify/blob/main/archify/bin/preview.mjs"
click node_finalize "https://github.com/git-neelesh/archify/blob/main/archify/bin/finalize.mjs"
click node_visual_check "https://github.com/git-neelesh/archify/blob/main/archify/bin/visual-check.mjs"
click node_output_paths "https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/output-path.mjs"
click node_atomic_output "https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/atomic-output.mjs"

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_user toneBlue
class node_architecture,node_workflow,node_sequence,node_dataflow,node_lifecycle,node_render_shared,node_validation toneAmber
class node_interactive_viewer,node_focus,node_route_probe,node_semantic_lens toneMint
class node_preview,node_finalize,node_visual_check,node_output_paths,node_atomic_output toneRose
class node_delta,node_repository_evidence toneIndigo
```

## Components

### Diagram authoring

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

### Rendering and shared services

- [Architecture diagrams](https://github.com/git-neelesh/archify/blob/main/archify/renderers/architecture/render-architecture.mjs): `archify/renderers/architecture/render-architecture.mjs`
- [Workflow diagrams](https://github.com/git-neelesh/archify/blob/main/archify/renderers/workflow/workflow-compiler.mjs): `archify/renderers/workflow/workflow-compiler.mjs`
- [Sequence diagrams](https://github.com/git-neelesh/archify/blob/main/archify/renderers/sequence/render-sequence.mjs): `archify/renderers/sequence/render-sequence.mjs`
- [Dataflow diagrams](https://github.com/git-neelesh/archify/blob/main/archify/renderers/dataflow/render-dataflow.mjs): `archify/renderers/dataflow/render-dataflow.mjs`
- [Lifecycle diagrams](https://github.com/git-neelesh/archify/blob/main/archify/renderers/lifecycle/render-lifecycle.mjs): `archify/renderers/lifecycle/render-lifecycle.mjs`
- [Render helpers](https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/utils.mjs): `archify/renderers/shared/utils.mjs`
- [Input validation](https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/validator.mjs): `archify/renderers/shared/validator.mjs`

### Interactive exploration

- [Interactive HTML viewer](https://github.com/git-neelesh/archify/blob/main/viewer/export.js): `viewer/export.js`
- [Focus and guided views](https://github.com/git-neelesh/archify/blob/main/viewer/focus.js): `viewer/focus.js`
- [Route tracing](https://github.com/git-neelesh/archify/blob/main/viewer/route-probe.js): `viewer/route-probe.js`
- [Semantic lens](https://github.com/git-neelesh/archify/blob/main/viewer/semantic-lens.js): `viewer/semantic-lens.js`

### Artifact delivery

- [Live preview](https://github.com/git-neelesh/archify/blob/main/archify/bin/preview.mjs): `archify/bin/preview.mjs`
- [Artifact finalization](https://github.com/git-neelesh/archify/blob/main/archify/bin/finalize.mjs): `archify/bin/finalize.mjs`
- [Visual verification](https://github.com/git-neelesh/archify/blob/main/archify/bin/visual-check.mjs): `archify/bin/visual-check.mjs`
- [Output path safety](https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/output-path.mjs): `archify/renderers/shared/output-path.mjs`
- [Atomic output](https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/atomic-output.mjs): `archify/renderers/shared/atomic-output.mjs`

### Repository evidence

- [Architecture delta](https://github.com/git-neelesh/archify/blob/main/archify/delta/architecture-delta.mjs): `archify/delta/architecture-delta.mjs`
- [Repository evidence](https://github.com/git-neelesh/archify/blob/main/archify/renderers/shared/repository-evidence.mjs): `archify/renderers/shared/repository-evidence.mjs`

### Other components

- **User / AI agent**

## Connections

- User / AI agent → Archify CLI: requests diagram (evidence: `README.md`)
- Archify CLI → Scenario recipes: uses recipes
- Archify CLI → Architecture diagrams: renders diagrams
- Archify CLI → Workflow diagrams: renders diagrams
- Archify CLI → Sequence diagrams: renders diagrams
- Archify CLI → Dataflow diagrams: renders diagrams
- Archify CLI → Lifecycle diagrams: renders diagrams
- Archify CLI → Input validation: validates input (evidence: `archify/bin/archify.mjs`)
- Workflow diagrams → Render helpers: uses helpers (evidence: `archify/renderers/workflow/workflow-compiler.mjs`)
- Sequence diagrams → Render helpers: uses helpers (evidence: `archify/renderers/sequence/render-sequence.mjs`)
- Interactive HTML viewer → Focus and guided views: supports focus
- Interactive HTML viewer → Route tracing: supports tracing
- Interactive HTML viewer → Semantic lens: supports lens
- Archify CLI → Repository evidence: checks evidence
- Archify CLI → Architecture delta: computes changes
- Archify CLI → Live preview: starts preview (evidence: `archify/bin/archify.mjs`)
- Live preview → Output path safety: resolves output (evidence: `archify/bin/preview.mjs`)
- Live preview → Atomic output: commits artifact (evidence: `archify/bin/preview.mjs`)
- Archify CLI → Artifact finalization: finalizes artifact (evidence: `archify/bin/archify.mjs`)
- Artifact finalization → Visual verification: checks artifact (evidence: `archify/bin/finalize.mjs`)
- Artifact finalization → Atomic output: writes safely (evidence: `archify/bin/finalize.mjs`)
- Artifact finalization → Output path safety: resolves paths (evidence: `archify/bin/finalize.mjs`)
- Visual verification → Atomic output: publishes evidence (evidence: `archify/bin/visual-check.mjs`)
