# drupin0-0/blackfeather architecture

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

- Interactive diagram: https://gitdiagram.com/drupin0-0/blackfeather
- Repository: https://github.com/drupin0-0/blackfeather

## Overview

BlackFeather (Sincrow) is a Django project-collaboration app. Members create projects and tasks, manage access and task permissions, and use project chat and private messaging; join requests and notifications support collaboration. The graph separates account/profile, project/task, and messaging stages, plus the HTTP and WebSocket entry points. Several modules are unsampled; their placement and links rely on the source index or documented routes, so uncertain links are omitted.

Main entry points: [`Tasks/models.py`](https://github.com/drupin0-0/blackfeather/blob/main/Tasks/models.py) (Projects and tasks), [`accounts/views.py`](https://github.com/drupin0-0/blackfeather/blob/main/accounts/views.py) (Account workflows), [`chat/views.py`](https://github.com/drupin0-0/blackfeather/blob/main/chat/views.py) (Chat and join requests), [`chat/models.py`](https://github.com/drupin0-0/blackfeather/blob/main/chat/models.py) (Messages and notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_http["HTTP router<br/>[urls.py]"]
  node_wsroutes["WebSocket routes<br/>[routing.py]"]
  node_asgi["ASGI application<br/>[asgi.py]"]
end

subgraph group_accounts["Accounts and profiles"]
  node_account_views["Account workflows<br/>[views.py]"]
  node_account_forms["Account forms<br/>[forms.py]"]
  node_account_services["Recovery email<br/>[services.py]"]
  node_identity_store[("Identity and profiles<br/>[models.py]")]
end

subgraph group_projects["Projects and tasks"]
  node_task_views["Project and task workflows<br/>[views.py]"]
  node_task_ai["AI task generation<br/>[ai_service.py]"]
  node_task_serializers["Task serializers<br/>[serializers.py]"]
  node_project_store[("Projects and tasks<br/>[models.py]")]
end

subgraph group_messaging["Chat and notifications"]
  node_chat_views["Chat and join requests<br/>[views.py]"]
  node_chat_store[("Messages and notifications<br/>[models.py]")]
  node_notification_service["Notification dispatch"]
  node_project_consumer["Project chat<br/>[consumers.py]"]
  node_direct_views["Private chat views<br/>[direct_views.py]"]
  node_direct_consumer["Private chat socket"]
end

node_user(("User"))
node_n8n["n8n webhook"]

node_user -->|"uses"| node_http
node_http -->|"routes"| node_account_views
node_http -->|"routes"| node_task_views
node_http -->|"routes"| node_chat_views
node_asgi -->|"loads routes"| node_wsroutes
node_wsroutes -->|"dispatches"| node_project_consumer
node_wsroutes -->|"dispatches"| node_direct_consumer
node_account_views -->|"uses"| node_account_forms
node_account_views -->|"sends recovery"| node_account_services
node_account_views -->|"reads and updates"| node_identity_store
node_account_views -->|"reads tasks"| node_project_store
node_task_views -->|"requests generation"| node_task_ai
node_task_views -->|"reads and writes"| node_project_store
node_task_views -->|"uses"| node_task_serializers
node_task_ai -->|"creates tasks"| node_project_store
node_task_ai -.->|"posts task request"| node_n8n
node_chat_views -->|"reads and writes"| node_chat_store
node_chat_views -->|"reads project access"| node_project_store
node_chat_views -->|"looks up users"| node_identity_store
node_chat_views -->|"creates notifications"| node_notification_service
node_notification_service -->|"stores notifications"| node_chat_store
node_project_consumer -->|"loads and saves messages"| node_chat_store
node_project_consumer -->|"checks project access"| node_project_store
node_direct_views -->|"reads project data"| node_project_store
node_direct_views -->|"uses messaging data"| node_chat_store
node_direct_consumer -->|"uses messaging data"| node_chat_store

click node_http "https://github.com/drupin0-0/blackfeather/blob/main/Sincrow/urls.py"
click node_wsroutes "https://github.com/drupin0-0/blackfeather/blob/main/chat/routing.py"
click node_asgi "https://github.com/drupin0-0/blackfeather/blob/main/Sincrow/asgi.py"
click node_account_views "https://github.com/drupin0-0/blackfeather/blob/main/accounts/views.py"
click node_account_forms "https://github.com/drupin0-0/blackfeather/blob/main/accounts/forms.py"
click node_account_services "https://github.com/drupin0-0/blackfeather/blob/main/accounts/services.py"
click node_identity_store "https://github.com/drupin0-0/blackfeather/blob/main/accounts/models.py"
click node_task_views "https://github.com/drupin0-0/blackfeather/blob/main/Tasks/views.py"
click node_task_ai "https://github.com/drupin0-0/blackfeather/blob/main/Tasks/ai_service.py"
click node_task_serializers "https://github.com/drupin0-0/blackfeather/blob/main/Tasks/serializers.py"
click node_project_store "https://github.com/drupin0-0/blackfeather/blob/main/Tasks/models.py"
click node_chat_views "https://github.com/drupin0-0/blackfeather/blob/main/chat/views.py"
click node_chat_store "https://github.com/drupin0-0/blackfeather/blob/main/chat/models.py"
click node_notification_service "https://github.com/drupin0-0/blackfeather/blob/main/chat/notification_service.py"
click node_project_consumer "https://github.com/drupin0-0/blackfeather/blob/main/chat/consumers.py"
click node_direct_views "https://github.com/drupin0-0/blackfeather/blob/main/chat/direct_views.py"
click node_direct_consumer "https://github.com/drupin0-0/blackfeather/blob/main/chat/direct_consumers.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_http,node_wsroutes,node_asgi,node_user toneBlue
class node_account_views,node_account_forms,node_account_services,node_identity_store toneAmber
class node_task_views,node_task_ai,node_task_serializers,node_project_store,node_n8n toneMint
class node_chat_views,node_chat_store,node_notification_service,node_project_consumer,node_direct_views,node_direct_consumer toneRose
```

## Components

### Application entry

- [HTTP router](https://github.com/drupin0-0/blackfeather/blob/main/Sincrow/urls.py): `Sincrow/urls.py`
- [WebSocket routes](https://github.com/drupin0-0/blackfeather/blob/main/chat/routing.py): `chat/routing.py`
- [ASGI application](https://github.com/drupin0-0/blackfeather/blob/main/Sincrow/asgi.py): `Sincrow/asgi.py`

### Accounts and profiles

- [Account workflows](https://github.com/drupin0-0/blackfeather/blob/main/accounts/views.py): `accounts/views.py`
- [Account forms](https://github.com/drupin0-0/blackfeather/blob/main/accounts/forms.py): `accounts/forms.py`
- [Recovery email](https://github.com/drupin0-0/blackfeather/blob/main/accounts/services.py): `accounts/services.py`
- [Identity and profiles](https://github.com/drupin0-0/blackfeather/blob/main/accounts/models.py): `accounts/models.py`

### Projects and tasks

- [Project and task workflows](https://github.com/drupin0-0/blackfeather/blob/main/Tasks/views.py): `Tasks/views.py`
- [AI task generation](https://github.com/drupin0-0/blackfeather/blob/main/Tasks/ai_service.py): `Tasks/ai_service.py`
- [Task serializers](https://github.com/drupin0-0/blackfeather/blob/main/Tasks/serializers.py): `Tasks/serializers.py`
- [Projects and tasks](https://github.com/drupin0-0/blackfeather/blob/main/Tasks/models.py): `Tasks/models.py`

### Chat and notifications

- [Chat and join requests](https://github.com/drupin0-0/blackfeather/blob/main/chat/views.py): `chat/views.py`
- [Messages and notifications](https://github.com/drupin0-0/blackfeather/blob/main/chat/models.py): `chat/models.py`
- [Notification dispatch](https://github.com/drupin0-0/blackfeather/blob/main/chat/notification_service.py): `chat/notification_service.py`
- [Project chat](https://github.com/drupin0-0/blackfeather/blob/main/chat/consumers.py): `chat/consumers.py`
- [Private chat views](https://github.com/drupin0-0/blackfeather/blob/main/chat/direct_views.py): `chat/direct_views.py`
- [Private chat socket](https://github.com/drupin0-0/blackfeather/blob/main/chat/direct_consumers.py): `chat/direct_consumers.py`

### Other components

- **User**
- **n8n webhook**

## Connections

- User → HTTP router: uses
- HTTP router → Account workflows: routes (evidence: `Sincrow/urls.py`)
- HTTP router → Project and task workflows: routes (evidence: `Sincrow/urls.py`)
- HTTP router → Chat and join requests: routes (evidence: `Sincrow/urls.py`)
- ASGI application → WebSocket routes: loads routes (evidence: `Sincrow/asgi.py`)
- WebSocket routes → Project chat: dispatches (evidence: `chat/routing.py`)
- WebSocket routes → Private chat socket: dispatches (evidence: `chat/routing.py`)
- Account workflows → Account forms: uses (evidence: `accounts/views.py`)
- Account workflows → Recovery email: sends recovery (evidence: `accounts/views.py`)
- Account workflows → Identity and profiles: reads and updates (evidence: `accounts/views.py`)
- Account workflows → Projects and tasks: reads tasks (evidence: `accounts/views.py`)
- Project and task workflows → AI task generation: requests generation (evidence: `Tasks/views.py`)
- Project and task workflows → Projects and tasks: reads and writes (evidence: `Tasks/views.py`)
- Project and task workflows → Task serializers: uses (evidence: `Tasks/views.py`)
- AI task generation → Projects and tasks: creates tasks (evidence: `Tasks/ai_service.py`)
- AI task generation → n8n webhook: posts task request (evidence: `Tasks/ai_service.py`)
- Chat and join requests → Messages and notifications: reads and writes (evidence: `chat/views.py`)
- Chat and join requests → Projects and tasks: reads project access (evidence: `chat/views.py`)
- Chat and join requests → Identity and profiles: looks up users (evidence: `chat/views.py`)
- Chat and join requests → Notification dispatch: creates notifications (evidence: `chat/views.py`)
- Notification dispatch → Messages and notifications: stores notifications (evidence: `chat/notification_service.py`)
- Project chat → Messages and notifications: loads and saves messages (evidence: `chat/consumers.py`)
- Project chat → Projects and tasks: checks project access (evidence: `chat/consumers.py`)
- Private chat views → Projects and tasks: reads project data (evidence: `chat/direct_views.py`)
- Private chat views → Messages and notifications: uses messaging data (evidence: `chat/direct_views.py`)
- Private chat socket → Messages and notifications: uses messaging data (evidence: `chat/direct_consumers.py`)
