# niaueow/ingetinnia architecture

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

- Interactive diagram: https://gitdiagram.com/niaueow/ingetinnia
- Repository: https://github.com/niaueow/ingetinnia

## Overview

Ingetinnia is a NestJS task-management backend with an HTTP API and an optional Telegram bot. Users create, view, complete, reschedule, or delete tasks; the task service validates deadlines, updates task status, and schedules reminders, while Telegram also offers conversational task entry and reminder actions. Prisma provides persistence. The graph follows the sampled controllers and services plus README-documented bot and reminder capabilities; the Prisma schema and unsampled implementation details were not inspected, so no more specific storage or scheduling relationships are inferred.

Main entry points: [`src/telegram/telegram.service.ts`](https://github.com/niaueow/ingetinnia/blob/master/src/telegram/telegram.service.ts) (Bot & reminder worker), [`src/tasks/tasks.service.ts`](https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.service.ts) (Task operations), [`src/app.module.ts`](https://github.com/niaueow/ingetinnia/blob/master/src/app.module.ts) (App wiring), [`src/tasks/tasks.controller.ts`](https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.controller.ts) (Task endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application &amp; API"]
  node_main["Server bootstrap<br/>[main.ts]"]
  node_app_module["App wiring<br/>[app.module.ts]"]
  node_app_controller["Root endpoint<br/>[app.controller.ts]"]
  node_app_service["Root response<br/>[app.service.ts]"]
end

subgraph group_tasks["Task Management"]
  node_tasks_module["Tasks wiring<br/>[tasks.module.ts]"]
  node_tasks_controller["Task endpoints"]
  node_task_dto["Task data shapes<br/>[task.dto.ts]"]
  node_tasks_service["Task operations<br/>[tasks.service.ts]"]
end

subgraph group_telegram["Telegram &amp; Reminders"]
  node_telegram_module["Bot wiring<br/>[telegram.module.ts]"]
  node_telegram_service["Bot &amp; reminder worker"]
end

subgraph group_storage["Persistence"]
  node_prisma_service["Prisma client<br/>[prisma.service.ts]"]
  node_database[("Task and reminder store<br/>[schema.prisma]")]
end

node_user(("Task user"))
node_telegram_user(("Telegram user"))
node_telegram_platform["Telegram"]

node_main -->|"starts"| node_app_module
node_app_module -->|"registers"| node_app_controller
node_app_module -->|"imports"| node_tasks_module
node_app_module -->|"imports"| node_telegram_module
node_app_controller -->|"calls"| node_app_service
node_user -->|"uses task endpoints"| node_tasks_controller
node_tasks_module -->|"registers"| node_tasks_controller
node_tasks_module -->|"provides"| node_tasks_service
node_tasks_controller -->|"accepts shapes"| node_task_dto
node_tasks_controller -->|"calls"| node_tasks_service
node_tasks_service -->|"uses"| node_prisma_service
node_tasks_service -->|"reads and writes"| node_database
node_telegram_module -->|"provides"| node_telegram_service
node_telegram_user -->|"sends commands"| node_telegram_service
node_telegram_service -->|"calls"| node_tasks_service
node_telegram_service -->|"uses"| node_prisma_service
node_telegram_service -->|"reads and updates reminders"| node_database
node_telegram_service -->|"sends messages"| node_telegram_platform

click node_main "https://github.com/niaueow/ingetinnia/blob/master/src/main.ts"
click node_app_module "https://github.com/niaueow/ingetinnia/blob/master/src/app.module.ts"
click node_app_controller "https://github.com/niaueow/ingetinnia/blob/master/src/app.controller.ts"
click node_app_service "https://github.com/niaueow/ingetinnia/blob/master/src/app.service.ts"
click node_tasks_module "https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.module.ts"
click node_tasks_controller "https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.controller.ts"
click node_task_dto "https://github.com/niaueow/ingetinnia/blob/master/src/tasks/task.dto.ts"
click node_tasks_service "https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.service.ts"
click node_telegram_module "https://github.com/niaueow/ingetinnia/blob/master/src/telegram/telegram.module.ts"
click node_telegram_service "https://github.com/niaueow/ingetinnia/blob/master/src/telegram/telegram.service.ts"
click node_prisma_service "https://github.com/niaueow/ingetinnia/blob/master/src/prisma.service.ts"
click node_database "https://github.com/niaueow/ingetinnia/blob/master/prisma/schema.prisma"

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_main,node_app_module,node_app_controller,node_app_service,node_telegram_user toneBlue
class node_tasks_module,node_tasks_controller,node_task_dto,node_tasks_service toneAmber
class node_telegram_module,node_telegram_service toneMint
class node_prisma_service,node_database,node_user toneRose
class node_telegram_platform toneIndigo
```

## Components

### Application & API

- [Server bootstrap](https://github.com/niaueow/ingetinnia/blob/master/src/main.ts): `src/main.ts`
- [App wiring](https://github.com/niaueow/ingetinnia/blob/master/src/app.module.ts): `src/app.module.ts`
- [Root endpoint](https://github.com/niaueow/ingetinnia/blob/master/src/app.controller.ts): `src/app.controller.ts`
- [Root response](https://github.com/niaueow/ingetinnia/blob/master/src/app.service.ts): `src/app.service.ts`

### Task Management

- [Tasks wiring](https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.module.ts): `src/tasks/tasks.module.ts`
- [Task endpoints](https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.controller.ts): `src/tasks/tasks.controller.ts`
- [Task data shapes](https://github.com/niaueow/ingetinnia/blob/master/src/tasks/task.dto.ts): `src/tasks/task.dto.ts`
- [Task operations](https://github.com/niaueow/ingetinnia/blob/master/src/tasks/tasks.service.ts): `src/tasks/tasks.service.ts`

### Telegram & Reminders

- [Bot wiring](https://github.com/niaueow/ingetinnia/blob/master/src/telegram/telegram.module.ts): `src/telegram/telegram.module.ts`
- [Bot & reminder worker](https://github.com/niaueow/ingetinnia/blob/master/src/telegram/telegram.service.ts): `src/telegram/telegram.service.ts`

### Persistence

- [Prisma client](https://github.com/niaueow/ingetinnia/blob/master/src/prisma.service.ts): `src/prisma.service.ts`
- [Task and reminder store](https://github.com/niaueow/ingetinnia/blob/master/prisma/schema.prisma): `prisma/schema.prisma`

### Other components

- **Task user**
- **Telegram user**
- **Telegram**

## Connections

- Server bootstrap → App wiring: starts (evidence: `src/main.ts`)
- App wiring → Root endpoint: registers (evidence: `src/app.module.ts`)
- App wiring → Tasks wiring: imports (evidence: `src/app.module.ts`)
- App wiring → Bot wiring: imports (evidence: `src/app.module.ts`)
- Root endpoint → Root response: calls (evidence: `src/app.controller.ts`)
- Task user → Task endpoints: uses task endpoints (evidence: `README.md`)
- Tasks wiring → Task endpoints: registers (evidence: `src/tasks/tasks.module.ts`)
- Tasks wiring → Task operations: provides (evidence: `src/tasks/tasks.module.ts`)
- Task endpoints → Task data shapes: accepts shapes (evidence: `src/tasks/tasks.controller.ts`)
- Task endpoints → Task operations: calls (evidence: `src/tasks/tasks.controller.ts`)
- Task operations → Prisma client: uses (evidence: `src/tasks/tasks.service.ts`)
- Task operations → Task and reminder store: reads and writes (evidence: `src/tasks/tasks.service.ts`)
- Bot wiring → Bot & reminder worker: provides (evidence: `src/telegram/telegram.module.ts`)
- Telegram user → Bot & reminder worker: sends commands (evidence: `README.md`)
- Bot & reminder worker → Task operations: calls (evidence: `src/telegram/telegram.service.ts`)
- Bot & reminder worker → Prisma client: uses (evidence: `src/telegram/telegram.service.ts`)
- Bot & reminder worker → Task and reminder store: reads and updates reminders (evidence: `src/telegram/telegram.service.ts`)
- Bot & reminder worker → Telegram: sends messages (evidence: `src/telegram/telegram.service.ts`)
