# cantdoasm/yodo architecture

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

- Interactive diagram: https://gitdiagram.com/cantdoasm/yodo
- Repository: https://github.com/cantdoasm/yodo

## Overview

YoDo is a small Rust terminal todo app. Its runtime flow loads saved tasks, presents and edits them in an ncurses interface, then saves the resulting list on exit. Parsing, formatting, and screen sizing are internal helpers within the single main module; no separate service or persistence subsystem is evidenced. The graph reflects the inspected main source and README, rather than treating tests as product components.

Main entry points: [`src/main.rs`](https://github.com/cantdoasm/yodo/blob/main/src/main.rs) (Todo application), [`save.txt`](https://github.com/cantdoasm/yodo/blob/main/save.txt) (Saved todo state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_todo_runtime["Todo runtime"]
  node_todo_app["Todo application<br/>[main.rs]"]
end

node_user(("User"))
node_todo_state[("Saved todo state<br/>[save.txt]")]

node_user -->|"uses"| node_todo_app
node_todo_app -->|"loads and saves"| node_todo_state

click node_todo_app "https://github.com/cantdoasm/yodo/blob/main/src/main.rs"
click node_todo_state "https://github.com/cantdoasm/yodo/blob/main/save.txt"

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_todo_app,node_user toneBlue
class node_todo_state toneAmber
```

## Components

### Todo runtime

- [Todo application](https://github.com/cantdoasm/yodo/blob/main/src/main.rs): `src/main.rs`

### Other components

- **User**
- [Saved todo state](https://github.com/cantdoasm/yodo/blob/main/save.txt): `save.txt`

## Connections

- User → Todo application: uses (evidence: `README.md`)
- Todo application → Saved todo state: loads and saves (evidence: `src/main.rs`)
