# johanekstroem/deleteme architecture

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

- Interactive diagram: https://gitdiagram.com/johanekstroem/deleteme
- Repository: https://github.com/johanekstroem/deleteme

## Overview

This is a Blazor task-management application with user accounts, per-user todo lists, and administration of users and todos. Users work with todos through the web UI and TodoService, which applies domain rules and persists through a repository; administrators have a separate management service and identity-backed user repository. Program.cs wires services, authentication, persistence, and startup seeding. The page components and seeder were not excerpted, so their detailed calls are left unverified; dashed links indicate those likely connections.

Main entry points: [`App.Web/Program.cs`](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Program.cs) (Application startup), [`App.Application/Administration/AdminManagementService.cs`](https://github.com/johanekstroem/deleteme/blob/main/App.Application/Administration/AdminManagementService.cs) (Admin management), [`App.Web/Components/App.razor`](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/App.razor) (Blazor shell), [`App.Infrastructure/Persistence/EfTodoRepository.cs`](https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Persistence/EfTodoRepository.cs) (Todo repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_app_shell["Blazor shell<br/>[App.razor]"]
  node_todo_ui["Todo page<br/>[Home.razor]"]
  node_admin_ui["Admin page<br/>[Admin.razor]"]
  node_auth_ui["Login and registration<br/>[Login.razor]"]
  node_admin_access["Admin access"]
  node_identity_seeder["Identity seeder<br/>[IdentitySeeder.cs]"]
  node_auth_state["Authentication state"]
  node_startup["Application startup<br/>[Program.cs]"]
end

subgraph group_application["Application services"]
  node_todo_service["Todo service<br/>[TodoService.cs]"]
  node_admin_service["Admin management"]
end

subgraph group_domain["Todo domain"]
  node_todo_domain["Todo entity<br/>[Todo.cs]"]
end

subgraph group_infrastructure["Persistence and identity"]
  node_todo_repository["Todo repository"]
  node_admin_repository["Identity user repository"]
  node_db_context[("EF database context<br/>[TodoDbContext.cs]")]
  node_application_user["Identity user<br/>[ApplicationUser.cs]"]
end

node_user(("User"))

node_user -.->|"uses"| node_app_shell
node_app_shell -.->|"renders"| node_todo_ui
node_app_shell -.->|"renders"| node_admin_ui
node_app_shell -.->|"renders"| node_auth_ui
node_todo_ui -.->|"uses"| node_todo_service
node_admin_ui -.->|"uses"| node_admin_service
node_todo_service -->|"calls"| node_todo_repository
node_todo_service -->|"creates and updates"| node_todo_domain
node_admin_service -->|"checks access"| node_admin_access
node_admin_service -->|"manages users"| node_admin_repository
node_admin_service -->|"manages todos"| node_todo_repository
node_admin_service -->|"updates"| node_todo_domain
node_todo_repository -->|"queries and saves"| node_db_context
node_todo_repository -->|"loads and stores"| node_todo_domain
node_db_context -->|"maps identity"| node_application_user
node_db_context -->|"maps todos"| node_todo_domain
node_admin_repository -->|"manages accounts"| node_application_user
node_startup -->|"registers"| node_todo_service
node_startup -->|"registers"| node_admin_service
node_startup -->|"registers"| node_admin_access
node_startup -->|"registers"| node_todo_repository
node_startup -->|"registers"| node_admin_repository
node_startup -->|"configures and migrates"| node_db_context
node_startup -->|"runs seeding"| node_identity_seeder
node_startup -->|"registers"| node_auth_state
node_startup -->|"maps components"| node_app_shell
node_auth_ui -.->|"uses"| node_auth_state

click node_app_shell "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/App.razor"
click node_todo_ui "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/Pages/Home.razor"
click node_admin_ui "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/Pages/Admin.razor"
click node_auth_ui "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/Pages/Login.razor"
click node_todo_service "https://github.com/johanekstroem/deleteme/blob/main/App.Application/Todos/TodoService.cs"
click node_admin_service "https://github.com/johanekstroem/deleteme/blob/main/App.Application/Administration/AdminManagementService.cs"
click node_admin_access "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Services/CurrentAdminAccess.cs"
click node_todo_repository "https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Persistence/EfTodoRepository.cs"
click node_admin_repository "https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Identity/IdentityAdminUserRepository.cs"
click node_todo_domain "https://github.com/johanekstroem/deleteme/blob/main/App.Domain/Todos/Todo.cs"
click node_db_context "https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Persistence/TodoDbContext.cs"
click node_application_user "https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Identity/ApplicationUser.cs"
click node_identity_seeder "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Services/IdentitySeeder.cs"
click node_auth_state "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Services/RevalidatingIdentityAuthenticationStateProvider.cs"
click node_startup "https://github.com/johanekstroem/deleteme/blob/main/App.Web/Program.cs"

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_shell,node_todo_ui,node_admin_ui,node_auth_ui,node_admin_access,node_identity_seeder,node_auth_state,node_startup,node_user toneBlue
class node_todo_service,node_admin_service toneAmber
class node_todo_domain toneMint
class node_todo_repository,node_admin_repository,node_db_context,node_application_user toneRose
```

## Components

### Web interface

- [Blazor shell](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/App.razor): `App.Web/Components/App.razor`
- [Todo page](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/Pages/Home.razor): `App.Web/Components/Pages/Home.razor`
- [Admin page](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/Pages/Admin.razor): `App.Web/Components/Pages/Admin.razor`
- [Login and registration](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Components/Pages/Login.razor): `App.Web/Components/Pages/Login.razor`
- [Admin access](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Services/CurrentAdminAccess.cs): `App.Web/Services/CurrentAdminAccess.cs`
- [Identity seeder](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Services/IdentitySeeder.cs): `App.Web/Services/IdentitySeeder.cs`
- [Authentication state](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Services/RevalidatingIdentityAuthenticationStateProvider.cs): `App.Web/Services/RevalidatingIdentityAuthenticationStateProvider.cs`
- [Application startup](https://github.com/johanekstroem/deleteme/blob/main/App.Web/Program.cs): `App.Web/Program.cs`

### Application services

- [Todo service](https://github.com/johanekstroem/deleteme/blob/main/App.Application/Todos/TodoService.cs): `App.Application/Todos/TodoService.cs`
- [Admin management](https://github.com/johanekstroem/deleteme/blob/main/App.Application/Administration/AdminManagementService.cs): `App.Application/Administration/AdminManagementService.cs`

### Todo domain

- [Todo entity](https://github.com/johanekstroem/deleteme/blob/main/App.Domain/Todos/Todo.cs): `App.Domain/Todos/Todo.cs`

### Persistence and identity

- [Todo repository](https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Persistence/EfTodoRepository.cs): `App.Infrastructure/Persistence/EfTodoRepository.cs`
- [Identity user repository](https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Identity/IdentityAdminUserRepository.cs): `App.Infrastructure/Identity/IdentityAdminUserRepository.cs`
- [EF database context](https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Persistence/TodoDbContext.cs): `App.Infrastructure/Persistence/TodoDbContext.cs`
- [Identity user](https://github.com/johanekstroem/deleteme/blob/main/App.Infrastructure/Identity/ApplicationUser.cs): `App.Infrastructure/Identity/ApplicationUser.cs`

### Other components

- **User**

## Connections

- User → Blazor shell: uses
- Blazor shell → Todo page: renders
- Blazor shell → Admin page: renders
- Blazor shell → Login and registration: renders
- Todo page → Todo service: uses
- Admin page → Admin management: uses
- Todo service → Todo repository: calls (evidence: `App.Application/Todos/TodoService.cs`)
- Todo service → Todo entity: creates and updates (evidence: `App.Application/Todos/TodoService.cs`)
- Admin management → Admin access: checks access (evidence: `App.Application/Administration/AdminManagementService.cs`)
- Admin management → Identity user repository: manages users (evidence: `App.Application/Administration/AdminManagementService.cs`)
- Admin management → Todo repository: manages todos (evidence: `App.Application/Administration/AdminManagementService.cs`)
- Admin management → Todo entity: updates (evidence: `App.Application/Administration/AdminManagementService.cs`)
- Todo repository → EF database context: queries and saves (evidence: `App.Infrastructure/Persistence/EfTodoRepository.cs`)
- Todo repository → Todo entity: loads and stores (evidence: `App.Infrastructure/Persistence/EfTodoRepository.cs`)
- EF database context → Identity user: maps identity (evidence: `App.Infrastructure/Persistence/TodoDbContext.cs`)
- EF database context → Todo entity: maps todos (evidence: `App.Infrastructure/Persistence/TodoDbContext.cs`)
- Identity user repository → Identity user: manages accounts (evidence: `App.Infrastructure/Identity/IdentityAdminUserRepository.cs`)
- Application startup → Todo service: registers (evidence: `App.Web/Program.cs`)
- Application startup → Admin management: registers (evidence: `App.Web/Program.cs`)
- Application startup → Admin access: registers (evidence: `App.Web/Program.cs`)
- Application startup → Todo repository: registers (evidence: `App.Web/Program.cs`)
- Application startup → Identity user repository: registers (evidence: `App.Web/Program.cs`)
- Application startup → EF database context: configures and migrates (evidence: `App.Web/Program.cs`)
- Application startup → Identity seeder: runs seeding (evidence: `App.Web/Program.cs`)
- Application startup → Authentication state: registers (evidence: `App.Web/Program.cs`)
- Application startup → Blazor shell: maps components (evidence: `App.Web/Program.cs`)
- Login and registration → Authentication state: uses
