# varunnnkhandelwal/ssh-portfolio architecture

> Architecture diagram of the GitHub repository varunnnkhandelwal/ssh-portfolio, 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/varunnnkhandelwal/ssh-portfolio
- Repository: https://github.com/varunnnkhandelwal/ssh-portfolio

## Overview

This repository is an SSH-hosted interactive portfolio built as a terminal UI. An SSH visitor enters through the Wish server and its Bubble Tea middleware, then navigates portfolio screens or opens the command playground; commands can route to contact, start a tile game, or trigger portfolio-specific responses. The single source file also contains the project and contact lists, resume content, terminal styling, and screen rendering. The README is empty, and the excerpt omits portions of main.go, so the graph avoids inferring links between those unsampled features.

Main entry points: [`main.go`](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go) (Command handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["SSH access"]
  node_wish["Wish server<br/>[main.go]"]
  node_tea_handler["Tea handler<br/>[main.go]"]
end

subgraph group_portfolio["Portfolio UI"]
  node_ui_model["UI model<br/>[main.go]"]
  node_home["Home screen<br/>[main.go]"]
  node_project_list["Project list<br/>[main.go]"]
  node_contact["Contact screen<br/>[main.go]"]
  node_resume["Resume content<br/>[main.go]"]
  node_terminal_views["Terminal rendering<br/>[main.go]"]
end

subgraph group_playground["Interactive playground"]
  node_playground["Command playground<br/>[main.go]"]
  node_command_router["Command handling<br/>[main.go]"]
  node_tile_game["Tile game<br/>[main.go]"]
end

node_visitor(("SSH visitor"))

node_visitor -.->|"connects by SSH"| node_wish
node_wish -->|"registers middleware"| node_tea_handler
node_playground -->|"handles input"| node_command_router
node_command_router -->|"routes contact command"| node_contact
node_command_router -->|"starts game"| node_tile_game
node_playground -->|"moves and updates"| node_tile_game

click node_wish "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_tea_handler "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_ui_model "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_home "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_project_list "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_contact "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_resume "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_playground "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_command_router "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_tile_game "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"
click node_terminal_views "https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go"

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_wish,node_tea_handler toneBlue
class node_ui_model,node_home,node_project_list,node_contact,node_resume,node_terminal_views toneAmber
class node_playground,node_command_router,node_tile_game toneMint
class node_visitor toneIndigo
```

## Components

### SSH access

- [Wish server](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Tea handler](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`

### Portfolio UI

- [UI model](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Home screen](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Project list](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Contact screen](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Resume content](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Terminal rendering](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`

### Interactive playground

- [Command playground](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Command handling](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`
- [Tile game](https://github.com/varunnnkhandelwal/ssh-portfolio/blob/main/main.go): `main.go`

### Other components

- **SSH visitor**

## Connections

- SSH visitor → Wish server: connects by SSH
- Wish server → Tea handler: registers middleware (evidence: `main.go`)
- Command playground → Command handling: handles input (evidence: `main.go`)
- Command handling → Contact screen: routes contact command (evidence: `main.go`)
- Command handling → Tile game: starts game (evidence: `main.go`)
- Command playground → Tile game: moves and updates (evidence: `main.go`)
