# d4n13l1/taskmanager architecture

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

- Interactive diagram: https://gitdiagram.com/d4n13l1/taskmanager
- Repository: https://github.com/d4n13l1/taskmanager

## Overview

taskManager is a FastAPI task and project management API. Clients enter through the application, authenticate with login or refresh tokens, then use protected user, project, participant, and task operations backed by SQLModel persistence. The graph separates API routing, identity and access control, project/task domain behavior, and persistence. It includes the documented participant and task capabilities; migration operations are excluded as development infrastructure. Relationships are limited to imports, dependency declarations, and calls visible in the excerpts or README.

Main entry points: [`dependencies/dependencies.py`](https://github.com/d4n13l1/taskmanager/blob/main/dependencies/dependencies.py) (Auth dependencies), [`main.py`](https://github.com/d4n13l1/taskmanager/blob/main/main.py) (FastAPI app), [`routes/auth_routes.py`](https://github.com/d4n13l1/taskmanager/blob/main/routes/auth_routes.py) (Authentication routes), [`models/models.py`](https://github.com/d4n13l1/taskmanager/blob/main/models/models.py) (Domain models and schemas)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API entry"]
  node_app["FastAPI app<br/>[main.py]"]
end

subgraph group_identity["Identity and access"]
  node_auth_routes["Authentication routes<br/>[auth_routes.py]"]
  node_user_routes["User management<br/>[user_routes.py]"]
  node_dependencies["Auth dependencies<br/>[dependencies.py]"]
  node_security["JWT and passwords<br/>[security.py]"]
  node_config["Security settings<br/>[config.py]"]
end

subgraph group_work["Projects and tasks"]
  node_project_routes["Project and task operations<br/>[project_routes.py]"]
  node_domain_models["Domain models and schemas<br/>[models.py]"]
end

subgraph group_persistence["Persistence"]
  node_session_provider["Session and engine<br/>[database.py]"]
  node_database[("SQL database")]
end

node_client(("API client"))

node_client -->|"calls API"| node_app
node_app -->|"registers routes"| node_auth_routes
node_app -->|"registers routes"| node_user_routes
node_app -->|"registers routes"| node_project_routes
node_app -->|"uses profile auth"| node_dependencies
node_auth_routes -->|"verifies and creates tokens"| node_security
node_auth_routes -->|"validates refresh token"| node_dependencies
node_auth_routes -->|"queries user"| node_domain_models
node_auth_routes -->|"reads token settings"| node_config
node_user_routes -->|"uses session and guards"| node_dependencies
node_user_routes -->|"reads and updates users"| node_domain_models
node_project_routes -->|"uses session and guards"| node_dependencies
node_project_routes -->|"reads and updates projects and tasks"| node_domain_models
node_dependencies -->|"opens sessions"| node_session_provider
node_dependencies -->|"loads users"| node_domain_models
node_dependencies -->|"reads JWT settings"| node_config
node_security -->|"uses password context and settings"| node_config
node_session_provider -->|"connects"| node_database

click node_app "https://github.com/d4n13l1/taskmanager/blob/main/main.py"
click node_auth_routes "https://github.com/d4n13l1/taskmanager/blob/main/routes/auth_routes.py"
click node_user_routes "https://github.com/d4n13l1/taskmanager/blob/main/routes/user_routes.py"
click node_dependencies "https://github.com/d4n13l1/taskmanager/blob/main/dependencies/dependencies.py"
click node_security "https://github.com/d4n13l1/taskmanager/blob/main/core/security.py"
click node_config "https://github.com/d4n13l1/taskmanager/blob/main/core/config.py"
click node_project_routes "https://github.com/d4n13l1/taskmanager/blob/main/routes/project_routes.py"
click node_domain_models "https://github.com/d4n13l1/taskmanager/blob/main/models/models.py"
click node_session_provider "https://github.com/d4n13l1/taskmanager/blob/main/db/database.py"

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_client toneBlue
class node_auth_routes,node_user_routes,node_dependencies,node_security,node_config toneAmber
class node_project_routes,node_domain_models toneMint
class node_session_provider,node_database toneRose
```

## Components

### API entry

- [FastAPI app](https://github.com/d4n13l1/taskmanager/blob/main/main.py): `main.py`

### Identity and access

- [Authentication routes](https://github.com/d4n13l1/taskmanager/blob/main/routes/auth_routes.py): `routes/auth_routes.py`
- [User management](https://github.com/d4n13l1/taskmanager/blob/main/routes/user_routes.py): `routes/user_routes.py`
- [Auth dependencies](https://github.com/d4n13l1/taskmanager/blob/main/dependencies/dependencies.py): `dependencies/dependencies.py`
- [JWT and passwords](https://github.com/d4n13l1/taskmanager/blob/main/core/security.py): `core/security.py`
- [Security settings](https://github.com/d4n13l1/taskmanager/blob/main/core/config.py): `core/config.py`

### Projects and tasks

- [Project and task operations](https://github.com/d4n13l1/taskmanager/blob/main/routes/project_routes.py): `routes/project_routes.py`
- [Domain models and schemas](https://github.com/d4n13l1/taskmanager/blob/main/models/models.py): `models/models.py`

### Persistence

- [Session and engine](https://github.com/d4n13l1/taskmanager/blob/main/db/database.py): `db/database.py`
- **SQL database**

### Other components

- **API client**

## Connections

- API client → FastAPI app: calls API (evidence: `README.md`)
- FastAPI app → Authentication routes: registers routes (evidence: `main.py`)
- FastAPI app → User management: registers routes (evidence: `main.py`)
- FastAPI app → Project and task operations: registers routes (evidence: `main.py`)
- FastAPI app → Auth dependencies: uses profile auth (evidence: `main.py`)
- Authentication routes → JWT and passwords: verifies and creates tokens (evidence: `routes/auth_routes.py`)
- Authentication routes → Auth dependencies: validates refresh token (evidence: `routes/auth_routes.py`)
- Authentication routes → Domain models and schemas: queries user (evidence: `routes/auth_routes.py`)
- Authentication routes → Security settings: reads token settings (evidence: `routes/auth_routes.py`)
- User management → Auth dependencies: uses session and guards (evidence: `routes/user_routes.py`)
- User management → Domain models and schemas: reads and updates users (evidence: `routes/user_routes.py`)
- Project and task operations → Auth dependencies: uses session and guards (evidence: `routes/project_routes.py`)
- Project and task operations → Domain models and schemas: reads and updates projects and tasks (evidence: `routes/project_routes.py`)
- Auth dependencies → Session and engine: opens sessions (evidence: `dependencies/dependencies.py`)
- Auth dependencies → Domain models and schemas: loads users (evidence: `dependencies/dependencies.py`)
- Auth dependencies → Security settings: reads JWT settings (evidence: `dependencies/dependencies.py`)
- JWT and passwords → Security settings: uses password context and settings (evidence: `core/security.py`)
- Session and engine → SQL database: connects (evidence: `db/database.py`)
