# echonlabs/kanvaro.com architecture

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

- Interactive diagram: https://gitdiagram.com/echonlabs/kanvaro.com
- Repository: https://github.com/echonlabs/kanvaro.com

## Overview

Kanvaro is a self-hosted project-management application. Team members and administrators use its Next.js interface to manage projects, tasks, sprints and stand-ups, then review time, financial and team reports; API routes provide the application’s server-side operations over MongoDB. Separate product branches cover test management, organization setup and administration, search, notifications, and email. The supplied excerpts and source index establish several API-to-model and service relationships; other feature links are included only where the README documents the capability, so unsampled implementation details are not inferred.

Main entry points: [`src/app`](https://github.com/echonlabs/kanvaro.com/tree/main/src/app) (Web application), [`src/lib/db-config.ts`](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/db-config.ts) (MongoDB connection), [`src/app/api/tasks/route.ts`](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/tasks/route.ts) (Tasks and backlog), [`src/app/api/projects/route.ts`](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/projects/route.ts) (Projects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Projects and work"]
  node_web["Web application"]
  node_projects["Projects<br/>[route.ts]"]
  node_tasks["Tasks and backlog<br/>[route.ts]"]
  node_taskdata[("Task records<br/>[Task.ts]")]
  node_projectdata[("Project records<br/>[Project.ts]")]
end

subgraph group_delivery["Planning and quality"]
  node_sprints["Sprints and events<br/>[route.ts]"]
  node_standups["Stand-up workflow"]
  node_carryforward["Carry-forward register"]
  node_poker["Planning poker<br/>[route.ts]"]
  node_testing["Test management"]
end

subgraph group_admin["Identity and administration"]
  node_auth["Authentication<br/>[auth-utils.ts]"]
  node_users[("User records<br/>[User.ts]")]
  node_permissions["Permission checks"]
  node_organization["Organization settings<br/>[route.ts]"]
  node_setup["Setup wizard<br/>[page.tsx]"]
end

subgraph group_insights["Tracking and insights"]
  node_timetracking["Time tracking<br/>[route.ts]"]
  node_reports["Reports<br/>[route.ts]"]
  node_search["Global search<br/>[route.ts]"]
end

subgraph group_platform["Application services"]
  node_db["MongoDB connection<br/>[db-config.ts]"]
  node_notifications["Notifications"]
  node_email["Email delivery<br/>[EmailService.ts]"]
end

node_team(("Project team"))

node_team -->|"uses"| node_web
node_web -->|"manages projects"| node_projects
node_web -->|"manages tasks"| node_tasks
node_web -->|"plans sprints"| node_sprints
node_web -->|"runs stand-ups"| node_standups
node_standups -.->|"records carry-forward"| node_carryforward
node_web -->|"estimates work"| node_poker
node_web -->|"manages tests"| node_testing
node_web -->|"tracks time"| node_timetracking
node_web -->|"views reports"| node_reports
node_web -->|"searches records"| node_search
node_web -->|"authenticates"| node_auth
node_auth -->|"loads user"| node_users
node_auth -->|"connects via"| node_db
node_projects -->|"connects via"| node_db
node_tasks -->|"connects via"| node_db
node_tasks -->|"reads and writes"| node_taskdata
node_projects -->|"reads and writes"| node_projectdata
node_tasks -->|"checks access"| node_permissions
node_organization -->|"connects via"| node_db
node_organization -.->|"checks access"| node_permissions
node_setup -->|"configures database"| node_db
node_notifications -->|"sends email"| node_email

click node_web "https://github.com/echonlabs/kanvaro.com/tree/main/src/app"
click node_projects "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/projects/route.ts"
click node_tasks "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/tasks/route.ts"
click node_taskdata "https://github.com/echonlabs/kanvaro.com/blob/main/src/models/Task.ts"
click node_projectdata "https://github.com/echonlabs/kanvaro.com/blob/main/src/models/Project.ts"
click node_sprints "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/sprints/route.ts"
click node_standups "https://github.com/echonlabs/kanvaro.com/blob/main/src/components/standup/run/StandupRunScreen.tsx"
click node_carryforward "https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/standup/carry-forward-service.ts"
click node_poker "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/poker-sessions/%5Bid%5D/route.ts"
click node_testing "https://github.com/echonlabs/kanvaro.com/tree/main/src/app/test-management"
click node_auth "https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/auth-utils.ts"
click node_users "https://github.com/echonlabs/kanvaro.com/blob/main/src/models/User.ts"
click node_permissions "https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/permissions/permission-service.ts"
click node_organization "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/organization/route.ts"
click node_setup "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/setup/page.tsx"
click node_timetracking "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/time-tracking/entries/route.ts"
click node_reports "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/reports/route.ts"
click node_search "https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/search/route.ts"
click node_db "https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/db-config.ts"
click node_notifications "https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/notification-service.ts"
click node_email "https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/email/EmailService.ts"

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_web,node_projects,node_tasks,node_taskdata,node_projectdata toneBlue
class node_sprints,node_standups,node_carryforward,node_poker,node_testing toneAmber
class node_auth,node_users,node_permissions,node_organization,node_setup toneMint
class node_timetracking,node_reports,node_search toneRose
class node_db,node_notifications,node_email,node_team toneIndigo
```

## Components

### Projects and work

- [Web application](https://github.com/echonlabs/kanvaro.com/tree/main/src/app): `src/app`
- [Projects](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/projects/route.ts): `src/app/api/projects/route.ts`
- [Tasks and backlog](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/tasks/route.ts): `src/app/api/tasks/route.ts`
- [Task records](https://github.com/echonlabs/kanvaro.com/blob/main/src/models/Task.ts): `src/models/Task.ts`
- [Project records](https://github.com/echonlabs/kanvaro.com/blob/main/src/models/Project.ts): `src/models/Project.ts`

### Planning and quality

- [Sprints and events](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/sprints/route.ts): `src/app/api/sprints/route.ts`
- [Stand-up workflow](https://github.com/echonlabs/kanvaro.com/blob/main/src/components/standup/run/StandupRunScreen.tsx): `src/components/standup/run/StandupRunScreen.tsx`
- [Carry-forward register](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/standup/carry-forward-service.ts): `src/lib/standup/carry-forward-service.ts`
- [Planning poker](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/poker-sessions/%5Bid%5D/route.ts): `src/app/api/poker-sessions/[id]/route.ts`
- [Test management](https://github.com/echonlabs/kanvaro.com/tree/main/src/app/test-management): `src/app/test-management`

### Identity and administration

- [Authentication](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/auth-utils.ts): `src/lib/auth-utils.ts`
- [User records](https://github.com/echonlabs/kanvaro.com/blob/main/src/models/User.ts): `src/models/User.ts`
- [Permission checks](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/permissions/permission-service.ts): `src/lib/permissions/permission-service.ts`
- [Organization settings](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/organization/route.ts): `src/app/api/organization/route.ts`
- [Setup wizard](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/setup/page.tsx): `src/app/setup/page.tsx`

### Tracking and insights

- [Time tracking](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/time-tracking/entries/route.ts): `src/app/api/time-tracking/entries/route.ts`
- [Reports](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/reports/route.ts): `src/app/api/reports/route.ts`
- [Global search](https://github.com/echonlabs/kanvaro.com/blob/main/src/app/api/search/route.ts): `src/app/api/search/route.ts`

### Application services

- [MongoDB connection](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/db-config.ts): `src/lib/db-config.ts`
- [Notifications](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/notification-service.ts): `src/lib/notification-service.ts`
- [Email delivery](https://github.com/echonlabs/kanvaro.com/blob/main/src/lib/email/EmailService.ts): `src/lib/email/EmailService.ts`

### Other components

- **Project team**

## Connections

- Project team → Web application: uses (evidence: `README.md`)
- Web application → Projects: manages projects (evidence: `README.md`)
- Web application → Tasks and backlog: manages tasks (evidence: `README.md`)
- Web application → Sprints and events: plans sprints (evidence: `README.md`)
- Web application → Stand-up workflow: runs stand-ups (evidence: `README.md`)
- Stand-up workflow → Carry-forward register: records carry-forward
- Web application → Planning poker: estimates work (evidence: `README.md`)
- Web application → Test management: manages tests (evidence: `README.md`)
- Web application → Time tracking: tracks time (evidence: `README.md`)
- Web application → Reports: views reports (evidence: `README.md`)
- Web application → Global search: searches records (evidence: `src/app/api/search/route.ts`)
- Web application → Authentication: authenticates (evidence: `README.md`)
- Authentication → User records: loads user (evidence: `src/lib/auth-utils.ts`)
- Authentication → MongoDB connection: connects via (evidence: `src/lib/auth-utils.ts`)
- Projects → MongoDB connection: connects via (evidence: `src/app/api/projects/route.ts`)
- Tasks and backlog → MongoDB connection: connects via (evidence: `src/app/api/tasks/route.ts`)
- Tasks and backlog → Task records: reads and writes (evidence: `src/app/api/tasks/route.ts`)
- Projects → Project records: reads and writes (evidence: `src/app/api/projects/route.ts`)
- Tasks and backlog → Permission checks: checks access (evidence: `src/app/api/tasks/route.ts`)
- Organization settings → MongoDB connection: connects via (evidence: `src/app/api/organization/route.ts`)
- Organization settings → Permission checks: checks access (evidence: `src/app/api/organization/route.ts`)
- Setup wizard → MongoDB connection: configures database (evidence: `README.md`)
- Notifications → Email delivery: sends email (evidence: `src/lib/notification-service.ts`)
