# tzara/zig_ssh architecture

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

- Interactive diagram: https://gitdiagram.com/tzara/zig_ssh
- Repository: https://github.com/tzara/zig_ssh

## Overview

The tree suggests a Zig command-line SQL tool, with terminal, TOML, and SQL-file components. No README or source excerpts were provided, so the runtime workflow and relationships between these components cannot be verified; edges are omitted rather than inferred from filenames.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_main["Application entry<br/>[main.zig]"]
  node_rsql["SQL tool<br/>[rsql.zig]"]
  node_term["Terminal handling<br/>[term.zig]"]
  node_toml["TOML handling<br/>[toml.zig]"]
end

subgraph group_data["Configuration and SQL"]
  node_remote_config["Remote DB config<br/>[remote-db.toml]"]
  node_sqlfiles["SQL scripts"]
end

click node_main "https://github.com/tzara/zig_ssh/blob/main/src/main.zig"
click node_rsql "https://github.com/tzara/zig_ssh/blob/main/src/rsql.zig"
click node_term "https://github.com/tzara/zig_ssh/blob/main/src/term.zig"
click node_toml "https://github.com/tzara/zig_ssh/blob/main/src/toml.zig"
click node_remote_config "https://github.com/tzara/zig_ssh/blob/main/remote-db.toml"
click node_sqlfiles "https://github.com/tzara/zig_ssh/tree/main/sqlfiles"

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_main,node_rsql,node_term,node_toml toneBlue
class node_remote_config,node_sqlfiles toneAmber
```

## Components

### Runtime

- [Application entry](https://github.com/tzara/zig_ssh/blob/main/src/main.zig): `src/main.zig`
- [SQL tool](https://github.com/tzara/zig_ssh/blob/main/src/rsql.zig): `src/rsql.zig`
- [Terminal handling](https://github.com/tzara/zig_ssh/blob/main/src/term.zig): `src/term.zig`
- [TOML handling](https://github.com/tzara/zig_ssh/blob/main/src/toml.zig): `src/toml.zig`

### Configuration and SQL

- [Remote DB config](https://github.com/tzara/zig_ssh/blob/main/remote-db.toml): `remote-db.toml`
- [SQL scripts](https://github.com/tzara/zig_ssh/tree/main/sqlfiles): `sqlfiles`
