# chathuni-karunarathne/it-asset-management-system architecture

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

- Interactive diagram: https://gitdiagram.com/chathuni-karunarathne/it-asset-management-system
- Repository: https://github.com/chathuni-karunarathne/it-asset-management-system

## Overview

EITAMS is an enterprise asset-management application for registering and tracking hardware and software through custody, maintenance, disposal, and financial reporting. The main workflow runs from staff or administrators using the web interface, through feature actions and API handlers, to persistent asset records and operational results. Separate branches cover compliance, analytics, identity, mobile scanning, and notifications. The README documents the product capabilities and broad application layers; the sampled source confirms selected database, authentication, search, and notification relationships, but many feature-level call paths were not inspected.

Main entry points: [`src/app/(app-shell)`](https://github.com/chathuni-karunarathne/it-asset-management-system/tree/main/src/app/(app-shell)) (Management interface), [`src/db/schema.ts`](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/db/schema.ts) (Postgres data model), [`src/app/api/v1/scan/route.ts`](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/api/v1/scan/route.ts) (API and mobile routes), [`src/actions/assets.ts`](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/assets.ts) (Asset actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_web["Management interface"]
  node_mobile["Mobile companion<br/>[page.tsx]"]
end

subgraph group_lifecycle["Asset lifecycle"]
  node_registry["Asset registry"]
  node_onboarding["Bulk onboarding"]
  node_assets["Asset actions<br/>[assets.ts]"]
end

subgraph group_operations["Operations and compliance"]
  node_assignments["Custody assignments"]
  node_maintenance["Repair management"]
  node_disposals["Disposal approvals<br/>[execute.ts]"]
  node_audit["Audit ledger<br/>[audit-log.ts]"]
end

subgraph group_insight["Analytics and reporting"]
  node_financials["Financial analysis<br/>[financials.ts]"]
  node_dashboard["Role dashboards<br/>[index.ts]"]
  node_reports["Standard reports"]
end

subgraph group_platform["Identity and platform"]
  node_api["API and mobile routes<br/>[route.ts]"]
  node_auth["Authentication and roles<br/>[with-auth.ts]"]
  node_notifications["Notification dispatch<br/>[dispatcher.ts]"]
  node_cron["Scheduled alerts<br/>[route.ts]"]
  node_db[("Postgres data model<br/>[schema.ts]")]
  node_external{{"Identity and service providers"}}
end

node_staff(("Staff and admins"))

node_staff -->|"uses"| node_web
node_web -->|"manages assets"| node_registry
node_registry -.->|"submits changes"| node_assets
node_onboarding -.->|"imports records"| node_assets
node_assets -->|"persists assets"| node_db
node_web -->|"manages custody"| node_assignments
node_web -->|"tracks repairs"| node_maintenance
node_web -->|"requests disposal"| node_disposals
node_disposals -.->|"records disposition"| node_db
node_web -->|"reviews finances"| node_financials
node_web -->|"views analytics"| node_dashboard
node_web -->|"generates reports"| node_reports
node_mobile -->|"scans assets"| node_api
node_api -->|"authenticates requests"| node_auth
node_auth -->|"uses identity provider"| node_external
node_api -.->|"reads records"| node_db
node_cron -->|"checks alert conditions"| node_db
node_cron -->|"dispatches alerts"| node_notifications
node_notifications -->|"delivers notifications"| node_external
node_web -->|"reviews activity"| node_audit

click node_web "https://github.com/chathuni-karunarathne/it-asset-management-system/tree/main/src/app/(app-shell)"
click node_registry "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/asset-registry/asset-registry-client.tsx"
click node_onboarding "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/bulk-import/bulk-import-wizard.tsx"
click node_assets "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/assets.ts"
click node_assignments "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/operations/assignments/assignments-dashboard.tsx"
click node_maintenance "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/maintenance/maintenance-shell.tsx"
click node_disposals "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/disposals/execute.ts"
click node_audit "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/audit-log.ts"
click node_financials "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/financials.ts"
click node_dashboard "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/dashboard/index.ts"
click node_reports "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/standard-reports.ts"
click node_mobile "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/(app-shell)/mobile/page.tsx"
click node_api "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/api/v1/scan/route.ts"
click node_auth "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/lib/api/with-auth.ts"
click node_notifications "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/lib/notifications/dispatcher.ts"
click node_cron "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/api/qstash/cron/route.ts"
click node_db "https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/db/schema.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_mobile toneBlue
class node_registry,node_onboarding,node_assets toneAmber
class node_assignments,node_maintenance,node_disposals,node_audit toneMint
class node_financials,node_dashboard,node_reports toneRose
class node_api,node_auth,node_notifications,node_cron,node_db,node_external,node_staff toneIndigo
```

## Components

### Web experience

- [Management interface](https://github.com/chathuni-karunarathne/it-asset-management-system/tree/main/src/app/(app-shell)): `src/app/(app-shell)`
- [Mobile companion](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/(app-shell)/mobile/page.tsx): `src/app/(app-shell)/mobile/page.tsx`

### Asset lifecycle

- [Asset registry](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/asset-registry/asset-registry-client.tsx): `src/components/features/asset-registry/asset-registry-client.tsx`
- [Bulk onboarding](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/bulk-import/bulk-import-wizard.tsx): `src/components/features/bulk-import/bulk-import-wizard.tsx`
- [Asset actions](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/assets.ts): `src/actions/assets.ts`

### Operations and compliance

- [Custody assignments](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/operations/assignments/assignments-dashboard.tsx): `src/components/features/operations/assignments/assignments-dashboard.tsx`
- [Repair management](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/components/features/maintenance/maintenance-shell.tsx): `src/components/features/maintenance/maintenance-shell.tsx`
- [Disposal approvals](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/disposals/execute.ts): `src/actions/disposals/execute.ts`
- [Audit ledger](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/audit-log.ts): `src/actions/audit-log.ts`

### Analytics and reporting

- [Financial analysis](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/financials.ts): `src/actions/financials.ts`
- [Role dashboards](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/dashboard/index.ts): `src/actions/dashboard/index.ts`
- [Standard reports](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/actions/standard-reports.ts): `src/actions/standard-reports.ts`

### Identity and platform

- [API and mobile routes](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/api/v1/scan/route.ts): `src/app/api/v1/scan/route.ts`
- [Authentication and roles](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/lib/api/with-auth.ts): `src/lib/api/with-auth.ts`
- [Notification dispatch](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/lib/notifications/dispatcher.ts): `src/lib/notifications/dispatcher.ts`
- [Scheduled alerts](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/app/api/qstash/cron/route.ts): `src/app/api/qstash/cron/route.ts`
- [Postgres data model](https://github.com/chathuni-karunarathne/it-asset-management-system/blob/main/src/db/schema.ts): `src/db/schema.ts`
- **Identity and service providers**

### Other components

- **Staff and admins**

## Connections

- Staff and admins → Management interface: uses (evidence: `README.md`)
- Management interface → Asset registry: manages assets (evidence: `README.md`)
- Asset registry → Asset actions: submits changes
- Bulk onboarding → Asset actions: imports records
- Asset actions → Postgres data model: persists assets (evidence: `README.md`)
- Management interface → Custody assignments: manages custody (evidence: `README.md`)
- Management interface → Repair management: tracks repairs (evidence: `README.md`)
- Management interface → Disposal approvals: requests disposal (evidence: `README.md`)
- Disposal approvals → Postgres data model: records disposition
- Management interface → Financial analysis: reviews finances (evidence: `README.md`)
- Management interface → Role dashboards: views analytics (evidence: `README.md`)
- Management interface → Standard reports: generates reports (evidence: `README.md`)
- Mobile companion → API and mobile routes: scans assets (evidence: `README.md`)
- API and mobile routes → Authentication and roles: authenticates requests (evidence: `src/lib/api/with-auth.ts`)
- Authentication and roles → Identity and service providers: uses identity provider (evidence: `README.md`)
- API and mobile routes → Postgres data model: reads records
- Scheduled alerts → Postgres data model: checks alert conditions (evidence: `src/app/api/qstash/cron/route.ts`)
- Scheduled alerts → Notification dispatch: dispatches alerts (evidence: `src/app/api/qstash/cron/route.ts`)
- Notification dispatch → Identity and service providers: delivers notifications (evidence: `README.md`)
- Management interface → Audit ledger: reviews activity (evidence: `README.md`)
