# bwhtech/hive architecture

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

- Interactive diagram: https://gitdiagram.com/bwhtech/hive
- Repository: https://github.com/bwhtech/hive

## Overview

BWH Hive is project-management software: users enter through a Vue single-page app to work with projects, tasks, team views, milestones, requests, and project updates. The Frappe backend exposes application APIs and enforces role- and project-based access; its document types represent the product’s records. Search, GitHub integration, and mention notifications are supporting capabilities. The shown excerpts establish frontend routing and several backend calls, but do not expose most page-to-API wiring, so that connection is marked unverified.

Main entry points: [`bwh_hive/bwh_hive/api.py`](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/api.py) (Hive API), [`frontend/src/router.ts`](https://github.com/bwhtech/hive/blob/develop/frontend/src/router.ts) (Page router), [`frontend/src/main.ts`](https://github.com/bwhtech/hive/blob/develop/frontend/src/main.ts) (Vue app entry), [`bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py`](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py) (Project updates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Hive interface"]
  node_app_entry["Vue app entry<br/>[main.ts]"]
  node_app_shell["App shell<br/>[App.vue]"]
  node_router["Page router<br/>[router.ts]"]
  node_dashboard["Dashboard<br/>[DashboardPage.vue]"]
  node_projects_ui["Project views"]
  node_tasks_ui["Task views<br/>[TasksPage.vue]"]
  node_team_ui["Team views<br/>[TeamPage.vue]"]
end

subgraph group_backend["Application services"]
  node_api["Hive API<br/>[api.py]"]
  node_permissions["Access control<br/>[permissions.py]"]
  node_search["Full-text search<br/>[search.py]"]
  node_overdue["Overdue notifications<br/>[tasks.py]"]
end

subgraph group_records["Hive records"]
  node_project_records["Project records<br/>[hive_project.py]"]
  node_task_records["Task records<br/>[hive_task.py]"]
  node_milestones["Milestones<br/>[hive_milestone.py]"]
  node_requests["Feature requests"]
  node_updates["Project updates"]
  node_comments["Task comments"]
  node_reactions["Update reactions"]
end

subgraph group_integrations["Integrations"]
  node_github["GitHub integration<br/>[github.py]"]
  node_settings["Hive settings<br/>[hive_settings.py]"]
end

node_user(("Hive user"))
node_github_service{{"GitHub"}}

node_user -->|"opens"| node_app_entry
node_app_entry -->|"mounts"| node_app_shell
node_app_entry -->|"installs"| node_router
node_router -->|"routes to"| node_dashboard
node_router -->|"routes to"| node_projects_ui
node_router -->|"routes to"| node_tasks_ui
node_router -->|"routes to"| node_team_ui
node_app_shell -.->|"presents"| node_user
node_dashboard -.->|"requests data"| node_api
node_projects_ui -.->|"requests data"| node_api
node_tasks_ui -.->|"requests data"| node_api
node_team_ui -.->|"requests data"| node_api
node_api -->|"checks access"| node_permissions
node_api -->|"queries"| node_search
node_overdue -->|"enriches tasks"| node_api
node_updates -->|"extracts mentions"| node_comments
node_updates -->|"stores reactions"| node_reactions
node_settings -->|"configures"| node_github
node_github -.->|"integrates"| node_github_service

click node_app_entry "https://github.com/bwhtech/hive/blob/develop/frontend/src/main.ts"
click node_app_shell "https://github.com/bwhtech/hive/blob/develop/frontend/src/App.vue"
click node_router "https://github.com/bwhtech/hive/blob/develop/frontend/src/router.ts"
click node_dashboard "https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/DashboardPage.vue"
click node_projects_ui "https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/ProjectDetailPage.vue"
click node_tasks_ui "https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/TasksPage.vue"
click node_team_ui "https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/TeamPage.vue"
click node_api "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/api.py"
click node_permissions "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/permissions.py"
click node_search "https://github.com/bwhtech/hive/blob/develop/bwh_hive/search.py"
click node_overdue "https://github.com/bwhtech/hive/blob/develop/bwh_hive/tasks.py"
click node_project_records "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_project/hive_project.py"
click node_task_records "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_task/hive_task.py"
click node_milestones "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_milestone/hive_milestone.py"
click node_requests "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_feature_request/hive_feature_request.py"
click node_updates "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py"
click node_comments "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_task_comment/hive_task_comment.py"
click node_reactions "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_update_reaction/hive_update_reaction.py"
click node_github "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/github.py"
click node_settings "https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_settings/hive_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_app_entry,node_app_shell,node_router,node_dashboard,node_projects_ui,node_tasks_ui,node_team_ui,node_user toneBlue
class node_api,node_permissions,node_search,node_overdue toneAmber
class node_project_records,node_task_records,node_milestones,node_requests,node_updates,node_comments,node_reactions toneMint
class node_github,node_settings toneRose
class node_github_service toneIndigo
```

## Components

### Hive interface

- [Vue app entry](https://github.com/bwhtech/hive/blob/develop/frontend/src/main.ts): `frontend/src/main.ts`
- [App shell](https://github.com/bwhtech/hive/blob/develop/frontend/src/App.vue): `frontend/src/App.vue`
- [Page router](https://github.com/bwhtech/hive/blob/develop/frontend/src/router.ts): `frontend/src/router.ts`
- [Dashboard](https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/DashboardPage.vue): `frontend/src/pages/DashboardPage.vue`
- [Project views](https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/ProjectDetailPage.vue): `frontend/src/pages/ProjectDetailPage.vue`
- [Task views](https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/TasksPage.vue): `frontend/src/pages/TasksPage.vue`
- [Team views](https://github.com/bwhtech/hive/blob/develop/frontend/src/pages/TeamPage.vue): `frontend/src/pages/TeamPage.vue`

### Application services

- [Hive API](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/api.py): `bwh_hive/bwh_hive/api.py`
- [Access control](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/permissions.py): `bwh_hive/bwh_hive/permissions.py`
- [Full-text search](https://github.com/bwhtech/hive/blob/develop/bwh_hive/search.py): `bwh_hive/search.py`
- [Overdue notifications](https://github.com/bwhtech/hive/blob/develop/bwh_hive/tasks.py): `bwh_hive/tasks.py`

### Hive records

- [Project records](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_project/hive_project.py): `bwh_hive/bwh_hive/doctype/hive_project/hive_project.py`
- [Task records](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_task/hive_task.py): `bwh_hive/bwh_hive/doctype/hive_task/hive_task.py`
- [Milestones](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_milestone/hive_milestone.py): `bwh_hive/bwh_hive/doctype/hive_milestone/hive_milestone.py`
- [Feature requests](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_feature_request/hive_feature_request.py): `bwh_hive/bwh_hive/doctype/hive_feature_request/hive_feature_request.py`
- [Project updates](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py): `bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py`
- [Task comments](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_task_comment/hive_task_comment.py): `bwh_hive/bwh_hive/doctype/hive_task_comment/hive_task_comment.py`
- [Update reactions](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_update_reaction/hive_update_reaction.py): `bwh_hive/bwh_hive/doctype/hive_update_reaction/hive_update_reaction.py`

### Integrations

- [GitHub integration](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/github.py): `bwh_hive/bwh_hive/github.py`
- [Hive settings](https://github.com/bwhtech/hive/blob/develop/bwh_hive/bwh_hive/doctype/hive_settings/hive_settings.py): `bwh_hive/bwh_hive/doctype/hive_settings/hive_settings.py`

### Other components

- **Hive user**
- **GitHub**

## Connections

- Hive user → Vue app entry: opens (evidence: `README.md`)
- Vue app entry → App shell: mounts (evidence: `frontend/src/main.ts`)
- Vue app entry → Page router: installs (evidence: `frontend/src/main.ts`)
- Page router → Dashboard: routes to (evidence: `frontend/src/router.ts`)
- Page router → Project views: routes to (evidence: `frontend/src/router.ts`)
- Page router → Task views: routes to (evidence: `frontend/src/router.ts`)
- Page router → Team views: routes to (evidence: `frontend/src/router.ts`)
- App shell → Hive user: presents
- Dashboard → Hive API: requests data
- Project views → Hive API: requests data
- Task views → Hive API: requests data
- Team views → Hive API: requests data
- Hive API → Access control: checks access (evidence: `bwh_hive/bwh_hive/api.py`)
- Hive API → Full-text search: queries (evidence: `bwh_hive/bwh_hive/api.py`)
- Overdue notifications → Hive API: enriches tasks (evidence: `bwh_hive/tasks.py`)
- Project updates → Task comments: extracts mentions (evidence: `bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py`)
- Project updates → Update reactions: stores reactions (evidence: `bwh_hive/bwh_hive/doctype/hive_project_update/hive_project_update.py`)
- Hive settings → GitHub integration: configures (evidence: `bwh_hive/bwh_hive/doctype/hive_settings/hive_settings.py`)
- GitHub integration → GitHub: integrates
