# crave-team/taskit architecture

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

- Interactive diagram: https://gitdiagram.com/crave-team/taskit
- Repository: https://github.com/crave-team/taskit

## Overview

TaskIT is a task and team management application: users sign in, then work with projects, tasks, teams, calendars, reports, and administration. The README describes a front-end-only mock, while the repository tree and sampled server code also show an Express backend with MongoDB, sessions, and file storage. The diagram reflects both. Some UI-to-service wiring and several documented features were not sampled, so only explicit README relationships or visible imports and wiring are shown.

Main entry points: [`server/src/http/app.js`](https://github.com/crave-team/taskit/blob/main/server/src/http/app.js) (Express application), [`src/App.jsx`](https://github.com/crave-team/taskit/blob/main/src/App.jsx) (Application shell), [`server/src/server.js`](https://github.com/crave-team/taskit/blob/main/server/src/server.js) (Server bootstrap), [`src/api/services/authService.js`](https://github.com/crave-team/taskit/blob/main/src/api/services/authService.js) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Product UI"]
  node_app["Application shell<br/>[App.jsx]"]
  node_authui["Authentication UI"]
  node_dashboard["Dashboard"]
  node_projects["Projects"]
  node_tasks["Task workspace"]
  node_calendar["Calendar"]
  node_teams["Team workspace"]
  node_admin["Admin panel"]
  node_layout["App layout"]
end

subgraph group_api["API and domain"]
  node_routes["API routes<br/>[routes.js]"]
  node_auth["Authentication<br/>[authService.js]"]
  node_taskservice["Task service<br/>[taskService.js]"]
  node_teamservice["Team service<br/>[teamService.js]"]
  node_notifications["Notifications"]
  node_sync["Sync service<br/>[syncService.js]"]
  node_activity["Activity log<br/>[activityService.js]"]
  node_files["File service<br/>[fileService.js]"]
  node_core["Access and events<br/>[core.js]"]
  node_views["Response views<br/>[views.js]"]
end

subgraph group_data["Persistence"]
  node_repo["Repository adapter<br/>[repo.js]"]
  node_mongo[("Mongo repository<br/>[mongoRepo.js]")]
  node_models[("Data models<br/>[models.js]")]
  node_session[("Session store<br/>[sessionStore.js]")]
  node_storage["File storage adapter<br/>[storage.js]"]
end

subgraph group_server["Server runtime"]
  node_server["Express application<br/>[app.js]"]
  node_bootstrap["Server bootstrap<br/>[server.js]"]
  node_live["Live event stream<br/>[live.js]"]
end

subgraph group_integrations["External integrations"]
  node_google["Google verifier<br/>[google.js]"]
  node_mailer["Email delivery<br/>[mailer.js]"]
  node_googleidp(("Google identity"))
  node_smtp(("Email provider"))
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"opens auth"| node_authui
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_projects
node_app -->|"routes to"| node_tasks
node_app -->|"routes to"| node_calendar
node_app -->|"routes to"| node_teams
node_app -->|"routes to"| node_admin
node_app -->|"uses"| node_layout
node_tasks -->|"manages tasks"| node_taskservice
node_teams -->|"manages teams"| node_teamservice
node_authui -->|"authenticates"| node_auth
node_server -->|"registers routes"| node_routes
node_server -->|"calls"| node_auth
node_server -->|"calls"| node_taskservice
node_server -->|"calls"| node_teamservice
node_server -->|"calls"| node_notifications
node_server -->|"calls"| node_sync
node_server -->|"calls"| node_activity
node_server -->|"calls"| node_files
node_auth -->|"records activity"| node_core
node_taskservice -->|"notifies"| node_core
node_teamservice -->|"releases tasks"| node_taskservice
node_files -->|"stores files"| node_storage
node_auth -->|"shapes user"| node_views
node_auth -.->|"reads and writes"| node_repo
node_taskservice -.->|"reads and writes"| node_repo
node_teamservice -.->|"reads and writes"| node_repo
node_bootstrap -->|"creates app"| node_server
node_bootstrap -->|"configures"| node_mongo
node_bootstrap -->|"configures"| node_session
node_bootstrap -->|"configures"| node_storage
node_mongo -->|"uses models"| node_models
node_server -->|"serves stream"| node_live
node_bootstrap -->|"configures"| node_google
node_bootstrap -->|"chooses sender"| node_mailer
node_google -.->|"verifies identity"| node_googleidp
node_mailer -.->|"delivers mail"| node_smtp

click node_app "https://github.com/crave-team/taskit/blob/main/src/App.jsx"
click node_authui "https://github.com/crave-team/taskit/tree/main/src/components/auth"
click node_dashboard "https://github.com/crave-team/taskit/tree/main/src/components/dashboard"
click node_projects "https://github.com/crave-team/taskit/tree/main/src/components/projects"
click node_tasks "https://github.com/crave-team/taskit/tree/main/src/components/tasks"
click node_calendar "https://github.com/crave-team/taskit/tree/main/src/components/calendar"
click node_teams "https://github.com/crave-team/taskit/tree/main/src/components/teams"
click node_admin "https://github.com/crave-team/taskit/tree/main/src/components/admin"
click node_layout "https://github.com/crave-team/taskit/tree/main/src/components/layout"
click node_routes "https://github.com/crave-team/taskit/blob/main/src/api/routes.js"
click node_auth "https://github.com/crave-team/taskit/blob/main/src/api/services/authService.js"
click node_taskservice "https://github.com/crave-team/taskit/blob/main/src/api/services/taskService.js"
click node_teamservice "https://github.com/crave-team/taskit/blob/main/src/api/services/teamService.js"
click node_notifications "https://github.com/crave-team/taskit/blob/main/src/api/services/notificationService.js"
click node_sync "https://github.com/crave-team/taskit/blob/main/src/api/services/syncService.js"
click node_activity "https://github.com/crave-team/taskit/blob/main/src/api/services/activityService.js"
click node_files "https://github.com/crave-team/taskit/blob/main/src/api/services/fileService.js"
click node_core "https://github.com/crave-team/taskit/blob/main/src/api/core.js"
click node_views "https://github.com/crave-team/taskit/blob/main/src/api/views.js"
click node_repo "https://github.com/crave-team/taskit/blob/main/src/api/repo.js"
click node_mongo "https://github.com/crave-team/taskit/blob/main/server/src/db/mongoRepo.js"
click node_models "https://github.com/crave-team/taskit/blob/main/server/src/db/models.js"
click node_session "https://github.com/crave-team/taskit/blob/main/server/src/db/sessionStore.js"
click node_storage "https://github.com/crave-team/taskit/blob/main/src/api/storage.js"
click node_server "https://github.com/crave-team/taskit/blob/main/server/src/http/app.js"
click node_bootstrap "https://github.com/crave-team/taskit/blob/main/server/src/server.js"
click node_live "https://github.com/crave-team/taskit/blob/main/server/src/http/live.js"
click node_google "https://github.com/crave-team/taskit/blob/main/server/src/http/google.js"
click node_mailer "https://github.com/crave-team/taskit/blob/main/server/src/http/mailer.js"

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_authui,node_dashboard,node_projects,node_tasks,node_calendar,node_teams,node_admin,node_layout,node_user toneBlue
class node_routes,node_auth,node_taskservice,node_teamservice,node_notifications,node_sync,node_activity,node_files,node_core,node_views toneAmber
class node_repo,node_mongo,node_models,node_session,node_storage toneMint
class node_server,node_bootstrap,node_live toneRose
class node_google,node_mailer,node_googleidp,node_smtp toneIndigo
```

## Components

### Product UI

- [Application shell](https://github.com/crave-team/taskit/blob/main/src/App.jsx): `src/App.jsx`
- [Authentication UI](https://github.com/crave-team/taskit/tree/main/src/components/auth): `src/components/auth`
- [Dashboard](https://github.com/crave-team/taskit/tree/main/src/components/dashboard): `src/components/dashboard`
- [Projects](https://github.com/crave-team/taskit/tree/main/src/components/projects): `src/components/projects`
- [Task workspace](https://github.com/crave-team/taskit/tree/main/src/components/tasks): `src/components/tasks`
- [Calendar](https://github.com/crave-team/taskit/tree/main/src/components/calendar): `src/components/calendar`
- [Team workspace](https://github.com/crave-team/taskit/tree/main/src/components/teams): `src/components/teams`
- [Admin panel](https://github.com/crave-team/taskit/tree/main/src/components/admin): `src/components/admin`
- [App layout](https://github.com/crave-team/taskit/tree/main/src/components/layout): `src/components/layout`

### API and domain

- [API routes](https://github.com/crave-team/taskit/blob/main/src/api/routes.js): `src/api/routes.js`
- [Authentication](https://github.com/crave-team/taskit/blob/main/src/api/services/authService.js): `src/api/services/authService.js`
- [Task service](https://github.com/crave-team/taskit/blob/main/src/api/services/taskService.js): `src/api/services/taskService.js`
- [Team service](https://github.com/crave-team/taskit/blob/main/src/api/services/teamService.js): `src/api/services/teamService.js`
- [Notifications](https://github.com/crave-team/taskit/blob/main/src/api/services/notificationService.js): `src/api/services/notificationService.js`
- [Sync service](https://github.com/crave-team/taskit/blob/main/src/api/services/syncService.js): `src/api/services/syncService.js`
- [Activity log](https://github.com/crave-team/taskit/blob/main/src/api/services/activityService.js): `src/api/services/activityService.js`
- [File service](https://github.com/crave-team/taskit/blob/main/src/api/services/fileService.js): `src/api/services/fileService.js`
- [Access and events](https://github.com/crave-team/taskit/blob/main/src/api/core.js): `src/api/core.js`
- [Response views](https://github.com/crave-team/taskit/blob/main/src/api/views.js): `src/api/views.js`

### Persistence

- [Repository adapter](https://github.com/crave-team/taskit/blob/main/src/api/repo.js): `src/api/repo.js`
- [Mongo repository](https://github.com/crave-team/taskit/blob/main/server/src/db/mongoRepo.js): `server/src/db/mongoRepo.js`
- [Data models](https://github.com/crave-team/taskit/blob/main/server/src/db/models.js): `server/src/db/models.js`
- [Session store](https://github.com/crave-team/taskit/blob/main/server/src/db/sessionStore.js): `server/src/db/sessionStore.js`
- [File storage adapter](https://github.com/crave-team/taskit/blob/main/src/api/storage.js): `src/api/storage.js`

### Server runtime

- [Express application](https://github.com/crave-team/taskit/blob/main/server/src/http/app.js): `server/src/http/app.js`
- [Server bootstrap](https://github.com/crave-team/taskit/blob/main/server/src/server.js): `server/src/server.js`
- [Live event stream](https://github.com/crave-team/taskit/blob/main/server/src/http/live.js): `server/src/http/live.js`

### External integrations

- [Google verifier](https://github.com/crave-team/taskit/blob/main/server/src/http/google.js): `server/src/http/google.js`
- [Email delivery](https://github.com/crave-team/taskit/blob/main/server/src/http/mailer.js): `server/src/http/mailer.js`
- **Google identity**
- **Email provider**

### Other components

- **User**

## Connections

- User → Application shell: uses
- Application shell → Authentication UI: opens auth (evidence: `src/App.jsx`)
- Application shell → Dashboard: routes to
- Application shell → Projects: routes to
- Application shell → Task workspace: routes to
- Application shell → Calendar: routes to
- Application shell → Team workspace: routes to
- Application shell → Admin panel: routes to
- Application shell → App layout: uses
- Task workspace → Task service: manages tasks
- Team workspace → Team service: manages teams
- Authentication UI → Authentication: authenticates
- Express application → API routes: registers routes (evidence: `server/src/http/app.js`)
- Express application → Authentication: calls (evidence: `server/src/http/app.js`)
- Express application → Task service: calls (evidence: `server/src/http/app.js`)
- Express application → Team service: calls (evidence: `server/src/http/app.js`)
- Express application → Notifications: calls (evidence: `server/src/http/app.js`)
- Express application → Sync service: calls (evidence: `server/src/http/app.js`)
- Express application → Activity log: calls (evidence: `server/src/http/app.js`)
- Express application → File service: calls (evidence: `server/src/http/app.js`)
- Authentication → Access and events: records activity (evidence: `src/api/services/authService.js`)
- Task service → Access and events: notifies (evidence: `src/api/services/taskService.js`)
- Team service → Task service: releases tasks (evidence: `src/api/services/teamService.js`)
- File service → File storage adapter: stores files (evidence: `src/api/services/fileService.js`)
- Authentication → Response views: shapes user (evidence: `src/api/services/authService.js`)
- Authentication → Repository adapter: reads and writes (evidence: `src/api/services/authService.js`)
- Task service → Repository adapter: reads and writes (evidence: `src/api/services/taskService.js`)
- Team service → Repository adapter: reads and writes (evidence: `src/api/services/teamService.js`)
- Server bootstrap → Express application: creates app (evidence: `server/src/server.js`)
- Server bootstrap → Mongo repository: configures (evidence: `server/src/server.js`)
- Server bootstrap → Session store: configures (evidence: `server/src/server.js`)
- Server bootstrap → File storage adapter: configures (evidence: `server/src/server.js`)
- Mongo repository → Data models: uses models (evidence: `server/src/db/mongoRepo.js`)
- Express application → Live event stream: serves stream (evidence: `server/src/http/app.js`)
- Server bootstrap → Google verifier: configures (evidence: `server/src/server.js`)
- Server bootstrap → Email delivery: chooses sender (evidence: `server/src/server.js`)
- Google verifier → Google identity: verifies identity
- Email delivery → Email provider: delivers mail
