# victoreluyera/todo_crud architecture

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

- Interactive diagram: https://gitdiagram.com/victoreluyera/todo_crud
- Repository: https://github.com/victoreluyera/todo_crud

## Overview

This is a small React todo-list app. The browser mounts App, which owns todo and input state, loads and saves todos in localStorage, and coordinates the input and list. Users add todos through TodoInput and edit or delete them through TodoCard actions rendered by TodoList. The source excerpts show these component and storage relationships; no separate backend or other product capabilities are documented.

Main entry points: [`src/App.jsx`](https://github.com/victoreluyera/todo_crud/blob/main/src/App.jsx) (Todo state and coordination), [`src/components/TodoInput.jsx`](https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoInput.jsx) (Todo input), [`src/components/TodoCard.jsx`](https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoCard.jsx) (Todo card actions), [`src/main.jsx`](https://github.com/victoreluyera/todo_crud/blob/main/src/main.jsx) (React entry point)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["App runtime"]
  node_entry["React entry point<br/>[main.jsx]"]
  node_app["Todo state and coordination<br/>[App.jsx]"]
end

subgraph group_todo_ui["Todo interface"]
  node_input["Todo input<br/>[TodoInput.jsx]"]
  node_list["Todo list<br/>[TodoList.jsx]"]
  node_card["Todo card actions<br/>[TodoCard.jsx]"]
end

subgraph group_persistence["Persistence"]
  node_browser[("Browser localStorage")]
end

node_user(("User"))

node_browser -->|"loads page"| node_entry
node_entry -->|"mounts"| node_app
node_app -->|"renders"| node_input
node_app -->|"renders"| node_list
node_list -->|"renders"| node_card
node_user -->|"enters todo"| node_input
node_input -->|"submits todo"| node_app
node_user -->|"chooses action"| node_card
node_card -->|"requests edit or delete"| node_app
node_app -->|"reads todos"| node_browser
node_app -->|"writes todos"| node_browser

click node_entry "https://github.com/victoreluyera/todo_crud/blob/main/src/main.jsx"
click node_app "https://github.com/victoreluyera/todo_crud/blob/main/src/App.jsx"
click node_input "https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoInput.jsx"
click node_list "https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoList.jsx"
click node_card "https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoCard.jsx"

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_entry,node_app,node_user toneBlue
class node_input,node_list,node_card toneAmber
class node_browser toneMint
```

## Components

### App runtime

- [React entry point](https://github.com/victoreluyera/todo_crud/blob/main/src/main.jsx): `src/main.jsx`
- [Todo state and coordination](https://github.com/victoreluyera/todo_crud/blob/main/src/App.jsx): `src/App.jsx`

### Todo interface

- [Todo input](https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoInput.jsx): `src/components/TodoInput.jsx`
- [Todo list](https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoList.jsx): `src/components/TodoList.jsx`
- [Todo card actions](https://github.com/victoreluyera/todo_crud/blob/main/src/components/TodoCard.jsx): `src/components/TodoCard.jsx`

### Persistence

- **Browser localStorage**

### Other components

- **User**

## Connections

- Browser localStorage → React entry point: loads page
- React entry point → Todo state and coordination: mounts (evidence: `src/main.jsx`)
- Todo state and coordination → Todo input: renders (evidence: `src/App.jsx`)
- Todo state and coordination → Todo list: renders (evidence: `src/App.jsx`)
- Todo list → Todo card actions: renders (evidence: `src/components/TodoList.jsx`)
- User → Todo input: enters todo
- Todo input → Todo state and coordination: submits todo (evidence: `src/components/TodoInput.jsx`)
- User → Todo card actions: chooses action
- Todo card actions → Todo state and coordination: requests edit or delete (evidence: `src/components/TodoCard.jsx`)
- Todo state and coordination → Browser localStorage: reads todos (evidence: `src/App.jsx`)
- Todo state and coordination → Browser localStorage: writes todos (evidence: `src/App.jsx`)
