# imakedonsky/pulsepm architecture

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

- Interactive diagram: https://gitdiagram.com/imakedonsky/pulsepm
- Repository: https://github.com/imakedonsky/pulsepm

## Overview

PulsePM is a project-management application with a TanStack frontend and Django API. The main workflow is a user entering the app, authenticating, then managing organizations, memberships and invitations, workspaces, and work items. Django API routes dispatch to domain handlers, which read and write relational models; work-item handlers also enforce organization membership and scope. The README describes Agile project tracking, documentation, and reminders, but sampled sources do not establish their implementation. Edges reflect shown imports, calls, or documented relationships; unsampled frontend-to-API wiring is left unverified.

Main entry points: [`backend/api/routers.py`](https://github.com/imakedonsky/pulsepm/blob/main/backend/api/routers.py) (API router), [`backend/organizations/api/invitation_views.py`](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/invitation_views.py) (Invitation endpoints), [`backend/workitems/api/views.py`](https://github.com/imakedonsky/pulsepm/blob/main/backend/workitems/api/views.py) (Work-item endpoints), [`backend/organizations/models.py`](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/models.py) (Organization data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_frontend_routes["App routes<br/>[routeTree.gen.ts]"]
  node_auth_guard["Auth guard<br/>[route.tsx]"]
  node_auth_client["Auth client<br/>[auth-api.ts]"]
  node_registration["Registration UI"]
  node_profile_page["Profile page<br/>[profile.tsx]"]
  node_organization_page["Organization page"]
end

subgraph group_api["API and identity"]
  node_backend_api["API router<br/>[routers.py]"]
  node_auth_endpoints["Auth endpoints<br/>[auth_views.py]"]
  node_user_model["User model<br/>[models.py]"]
  node_user_manager["User manager<br/>[managers.py]"]
  node_settings["Runtime settings<br/>[settings.py]"]
end

subgraph group_org["Organizations"]
  node_organization_endpoints["Organization endpoints<br/>[views.py]"]
  node_invitation_endpoints["Invitation endpoints"]
  node_workspace_endpoints["Workspace endpoints<br/>[workspace_views.py]"]
  node_organization_models[("Organization data<br/>[models.py]")]
  node_email_sender["Invitation email<br/>[emails.py]"]
end

subgraph group_work["Work management"]
  node_workitem_endpoints["Work-item endpoints<br/>[views.py]"]
  node_workitem_models[("Work-item data<br/>[models.py]")]
end

node_user(("User"))
node_sqlite[("SQLite database")]
node_mailpit["Mailpit SMTP"]

node_user -.->|"opens"| node_frontend_routes
node_frontend_routes -->|"routes"| node_auth_guard
node_auth_guard -->|"checks session"| node_auth_client
node_registration -.->|"uses auth"| node_auth_client
node_frontend_routes -.->|"requests API"| node_backend_api
node_backend_api -->|"routes auth"| node_auth_endpoints
node_backend_api -->|"routes organization"| node_organization_endpoints
node_backend_api -->|"routes invitations"| node_invitation_endpoints
node_backend_api -->|"routes work items"| node_workitem_endpoints
node_auth_endpoints -->|"creates users"| node_user_model
node_auth_endpoints -->|"accepts invitation"| node_invitation_endpoints
node_user_model -->|"uses manager"| node_user_manager
node_organization_endpoints -->|"reads and writes"| node_organization_models
node_invitation_endpoints -->|"reads and writes"| node_organization_models
node_invitation_endpoints -->|"references users"| node_user_model
node_workspace_endpoints -.->|"uses workspace data"| node_organization_models
node_invitation_endpoints -->|"sends email"| node_email_sender
node_email_sender -.->|"delivers email"| node_mailpit
node_workitem_endpoints -->|"checks membership"| node_organization_endpoints
node_workitem_endpoints -->|"checks organization"| node_organization_models
node_workitem_endpoints -->|"reads and writes"| node_workitem_models
node_settings -->|"configures"| node_sqlite

click node_frontend_routes "https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routeTree.gen.ts"
click node_auth_guard "https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routes/_authentificated/route.tsx"
click node_auth_client "https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/lib/auth-api.ts"
click node_registration "https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/components/UI/RegistrationModal.tsx"
click node_profile_page "https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routes/_authentificated/profile.tsx"
click node_organization_page "https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routes/_authentificated/organization.%24organizationId.tsx"
click node_backend_api "https://github.com/imakedonsky/pulsepm/blob/main/backend/api/routers.py"
click node_auth_endpoints "https://github.com/imakedonsky/pulsepm/blob/main/backend/users/api/auth_views.py"
click node_user_model "https://github.com/imakedonsky/pulsepm/blob/main/backend/users/models.py"
click node_user_manager "https://github.com/imakedonsky/pulsepm/blob/main/backend/users/managers.py"
click node_organization_endpoints "https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/views.py"
click node_invitation_endpoints "https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/invitation_views.py"
click node_workspace_endpoints "https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/workspace_views.py"
click node_organization_models "https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/models.py"
click node_email_sender "https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/mailpitRequests/emails.py"
click node_workitem_endpoints "https://github.com/imakedonsky/pulsepm/blob/main/backend/workitems/api/views.py"
click node_workitem_models "https://github.com/imakedonsky/pulsepm/blob/main/backend/workitems/models.py"
click node_settings "https://github.com/imakedonsky/pulsepm/blob/main/backend/conf/settings.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_frontend_routes,node_auth_guard,node_auth_client,node_registration,node_profile_page,node_organization_page,node_user toneBlue
class node_backend_api,node_auth_endpoints,node_user_model,node_user_manager,node_settings,node_sqlite toneAmber
class node_organization_endpoints,node_invitation_endpoints,node_workspace_endpoints,node_organization_models,node_email_sender toneMint
class node_workitem_endpoints,node_workitem_models toneRose
class node_mailpit toneIndigo
```

## Components

### Frontend

- [App routes](https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routeTree.gen.ts): `frontend/src/routeTree.gen.ts`
- [Auth guard](https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routes/_authentificated/route.tsx): `frontend/src/routes/_authentificated/route.tsx`
- [Auth client](https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/lib/auth-api.ts): `frontend/src/lib/auth-api.ts`
- [Registration UI](https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/components/UI/RegistrationModal.tsx): `frontend/src/components/UI/RegistrationModal.tsx`
- [Profile page](https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routes/_authentificated/profile.tsx): `frontend/src/routes/_authentificated/profile.tsx`
- [Organization page](https://github.com/imakedonsky/pulsepm/blob/main/frontend/src/routes/_authentificated/organization.%24organizationId.tsx): `frontend/src/routes/_authentificated/organization.$organizationId.tsx`

### API and identity

- [API router](https://github.com/imakedonsky/pulsepm/blob/main/backend/api/routers.py): `backend/api/routers.py`
- [Auth endpoints](https://github.com/imakedonsky/pulsepm/blob/main/backend/users/api/auth_views.py): `backend/users/api/auth_views.py`
- [User model](https://github.com/imakedonsky/pulsepm/blob/main/backend/users/models.py): `backend/users/models.py`
- [User manager](https://github.com/imakedonsky/pulsepm/blob/main/backend/users/managers.py): `backend/users/managers.py`
- [Runtime settings](https://github.com/imakedonsky/pulsepm/blob/main/backend/conf/settings.py): `backend/conf/settings.py`

### Organizations

- [Organization endpoints](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/views.py): `backend/organizations/api/views.py`
- [Invitation endpoints](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/invitation_views.py): `backend/organizations/api/invitation_views.py`
- [Workspace endpoints](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/api/workspace_views.py): `backend/organizations/api/workspace_views.py`
- [Organization data](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/models.py): `backend/organizations/models.py`
- [Invitation email](https://github.com/imakedonsky/pulsepm/blob/main/backend/organizations/mailpitRequests/emails.py): `backend/organizations/mailpitRequests/emails.py`

### Work management

- [Work-item endpoints](https://github.com/imakedonsky/pulsepm/blob/main/backend/workitems/api/views.py): `backend/workitems/api/views.py`
- [Work-item data](https://github.com/imakedonsky/pulsepm/blob/main/backend/workitems/models.py): `backend/workitems/models.py`

### Other components

- **User**
- **SQLite database**
- **Mailpit SMTP**

## Connections

- User → App routes: opens (evidence: `README.md`)
- App routes → Auth guard: routes (evidence: `frontend/src/routeTree.gen.ts`)
- Auth guard → Auth client: checks session (evidence: `frontend/src/routes/_authentificated/route.tsx`)
- Registration UI → Auth client: uses auth
- App routes → API router: requests API
- API router → Auth endpoints: routes auth (evidence: `backend/api/routers.py`)
- API router → Organization endpoints: routes organization (evidence: `backend/api/routers.py`)
- API router → Invitation endpoints: routes invitations (evidence: `backend/api/routers.py`)
- API router → Work-item endpoints: routes work items (evidence: `backend/api/routers.py`)
- Auth endpoints → User model: creates users (evidence: `backend/users/api/auth_views.py`)
- Auth endpoints → Invitation endpoints: accepts invitation (evidence: `backend/users/api/auth_views.py`)
- User model → User manager: uses manager (evidence: `backend/users/models.py`)
- Organization endpoints → Organization data: reads and writes (evidence: `backend/organizations/api/views.py`)
- Invitation endpoints → Organization data: reads and writes (evidence: `backend/organizations/api/invitation_views.py`)
- Invitation endpoints → User model: references users (evidence: `backend/organizations/api/invitation_views.py`)
- Workspace endpoints → Organization data: uses workspace data
- Invitation endpoints → Invitation email: sends email (evidence: `backend/organizations/api/invitation_views.py`)
- Invitation email → Mailpit SMTP: delivers email (evidence: `README.md`)
- Work-item endpoints → Organization endpoints: checks membership (evidence: `backend/workitems/api/views.py`)
- Work-item endpoints → Organization data: checks organization (evidence: `backend/workitems/api/views.py`)
- Work-item endpoints → Work-item data: reads and writes (evidence: `backend/workitems/api/views.py`)
- Runtime settings → SQLite database: configures (evidence: `backend/conf/settings.py`)
