# thomasventure/todolistapp architecture

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

- Interactive diagram: https://gitdiagram.com/thomasventure/todolistapp
- Repository: https://github.com/thomasventure/todolistapp

## Overview

This is a small interactive command-line to-do list app. The user enters the menu through the view, which requests and displays the current list and handles add, remove, and exit choices. The service creates and coordinates todo operations; the repository keeps todos in a mutable in-memory list. The excerpts show the app’s wiring and these calls, but no persistence beyond process memory. The repository interface and implementation are separate nodes to distinguish the service boundary from storage behavior.

Main entry points: [`app/src/main/kotlin/services/TodoListServiceImpl.kt`](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/services/TodoListServiceImpl.kt) (Service logic), [`app/src/main/kotlin/view/TodoListView.kt`](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/view/TodoListView.kt) (Todo view), [`app/src/main/kotlin/todolist/kotlin/App.kt`](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/todolist/kotlin/App.kt) (App wiring), [`app/src/main/kotlin/repository/TodoListRepositoryImpl.kt`](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/repository/TodoListRepositoryImpl.kt) (List repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI interaction"]
  node_app["App wiring<br/>[App.kt]"]
  node_view["Todo view<br/>[TodoListView.kt]"]
  node_input["Console input<br/>[InputUtil.kt]"]
end

subgraph group_domain["Todo domain"]
  node_service["Todo service<br/>[TodoListService.kt]"]
  node_service_impl["Service logic"]
  node_todo["Todo entity<br/>[Todolist.kt]"]
end

subgraph group_storage["In-memory storage"]
  node_repository["Repository contract"]
  node_repository_impl["List repository"]
end

node_user(("User"))

node_user -->|"uses"| node_view
node_app -->|"creates"| node_repository_impl
node_app -->|"creates"| node_service_impl
node_app -->|"creates and starts"| node_view
node_view -->|"requests operations"| node_service
node_view -->|"reads input"| node_input
node_service_impl -->|"implements"| node_service
node_service_impl -->|"calls"| node_repository
node_repository_impl -->|"implements"| node_repository
node_service_impl -->|"creates"| node_todo
node_repository_impl -->|"stores"| node_todo

click node_app "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/todolist/kotlin/App.kt"
click node_view "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/view/TodoListView.kt"
click node_input "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/utils/InputUtil.kt"
click node_service "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/services/TodoListService.kt"
click node_service_impl "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/services/TodoListServiceImpl.kt"
click node_todo "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/entity/Todolist.kt"
click node_repository "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/repository/TodoListRepository.kt"
click node_repository_impl "https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/repository/TodoListRepositoryImpl.kt"

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_app,node_view,node_input,node_user toneBlue
class node_service,node_service_impl,node_todo toneAmber
class node_repository,node_repository_impl toneMint
```

## Components

### CLI interaction

- [App wiring](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/todolist/kotlin/App.kt): `app/src/main/kotlin/todolist/kotlin/App.kt`
- [Todo view](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/view/TodoListView.kt): `app/src/main/kotlin/view/TodoListView.kt`
- [Console input](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/utils/InputUtil.kt): `app/src/main/kotlin/utils/InputUtil.kt`

### Todo domain

- [Todo service](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/services/TodoListService.kt): `app/src/main/kotlin/services/TodoListService.kt`
- [Service logic](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/services/TodoListServiceImpl.kt): `app/src/main/kotlin/services/TodoListServiceImpl.kt`
- [Todo entity](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/entity/Todolist.kt): `app/src/main/kotlin/entity/Todolist.kt`

### In-memory storage

- [Repository contract](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/repository/TodoListRepository.kt): `app/src/main/kotlin/repository/TodoListRepository.kt`
- [List repository](https://github.com/thomasventure/todolistapp/blob/master/app/src/main/kotlin/repository/TodoListRepositoryImpl.kt): `app/src/main/kotlin/repository/TodoListRepositoryImpl.kt`

### Other components

- **User**

## Connections

- User → Todo view: uses
- App wiring → List repository: creates (evidence: `app/src/main/kotlin/todolist/kotlin/App.kt`)
- App wiring → Service logic: creates (evidence: `app/src/main/kotlin/todolist/kotlin/App.kt`)
- App wiring → Todo view: creates and starts (evidence: `app/src/main/kotlin/todolist/kotlin/App.kt`)
- Todo view → Todo service: requests operations (evidence: `app/src/main/kotlin/view/TodoListView.kt`)
- Todo view → Console input: reads input (evidence: `app/src/main/kotlin/view/TodoListView.kt`)
- Service logic → Todo service: implements (evidence: `app/src/main/kotlin/services/TodoListServiceImpl.kt`)
- Service logic → Repository contract: calls (evidence: `app/src/main/kotlin/services/TodoListServiceImpl.kt`)
- List repository → Repository contract: implements (evidence: `app/src/main/kotlin/repository/TodoListRepositoryImpl.kt`)
- Service logic → Todo entity: creates (evidence: `app/src/main/kotlin/services/TodoListServiceImpl.kt`)
- List repository → Todo entity: stores (evidence: `app/src/main/kotlin/repository/TodoListRepositoryImpl.kt`)
