# ugurkocde/intuneget architecture

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

- Interactive diagram: https://gitdiagram.com/ugurkocde/intuneget
- Repository: https://github.com/ugurkocde/intuneget

## Overview

IntuneGet is a web application for discovering Winget apps and deploying them to Microsoft Intune, with a separate MSP workflow for managing client tenants. The principal flow is catalog selection, package configuration, packaging, and Intune deployment; users can then track results and receive notifications. The repository also includes curated-catalog verification, QA automation, inventory reconciliation, updates, community features, and MSP operations. Some subsystem links are documented in the README but their implementation was not sampled, so those links are shown as unverified.

Main entry points: [`lib/db/index.ts`](https://github.com/ugurkocde/intuneget/blob/main/lib/db/index.ts) (Database adapter), [`app/api/package/route.ts`](https://github.com/ugurkocde/intuneget/blob/main/app/api/package/route.ts) (Deployment requests), [`app/(app)/dashboard/apps/page.tsx`](https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/apps/page.tsx) (Winget catalog), [`app/(app)/dashboard/msp/page.tsx`](https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/msp/page.tsx) (MSP portal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_signin["Microsoft sign-in<br/>[SignInClient.tsx]"]
  node_catalog["Winget catalog<br/>[page.tsx]"]
  node_catalog_api["Catalog APIs<br/>[route.ts]"]
  node_community["Community feedback<br/>[route.ts]"]
end

subgraph group_deployment["Deployment"]
  node_package_config["Package configuration<br/>[PackageConfig.tsx]"]
  node_deploy_api["Deployment requests<br/>[route.ts]"]
  node_curated["Curated catalog<br/>[server.ts]"]
  node_packaging["Packaging workflow<br/>[github-actions.ts]"]
  node_local_packager["Local packager<br/>[job-processor.ts]"]
end

subgraph group_operations["Operations"]
  node_deployment_status["Deployment status<br/>[page.tsx]"]
  node_qa["Package QA<br/>[route.ts]"]
  node_inventory["Managed inventory<br/>[route.ts]"]
  node_unmanaged["Unmanaged apps<br/>[route.ts]"]
  node_updates["App updates<br/>[route.ts]"]
end

subgraph group_msp["MSP management"]
  node_msp_portal["MSP portal<br/>[page.tsx]"]
  node_batch["Batch deployments"]
  node_msp_webhooks["MSP webhooks<br/>[webhook-service.ts]"]
end

subgraph group_platform["Platform services"]
  node_notifications["Notifications"]
  node_database[("Database adapter<br/>[index.ts]")]
  node_supabase[("Supabase<br/>[supabase.ts]")]
end

node_admin(("IT admin"))
node_intune["Microsoft Intune"]
node_external_hooks["Webhook endpoints"]

node_admin -->|"signs in"| node_signin
node_signin -.->|"opens dashboard"| node_catalog
node_admin -.->|"browses apps"| node_catalog
node_catalog -.->|"searches catalog"| node_catalog_api
node_catalog -.->|"configures app"| node_package_config
node_package_config -.->|"submits package"| node_deploy_api
node_deploy_api -->|"validates curated app"| node_curated
node_deploy_api -->|"triggers workflow"| node_packaging
node_packaging -.->|"deploys package"| node_intune
node_deploy_api -.->|"deploys Store app"| node_intune
node_admin -.->|"uses local packaging"| node_local_packager
node_intune -.->|"provides app inventory"| node_inventory
node_intune -->|"provides detected apps"| node_unmanaged
node_admin -.->|"tracks deployments"| node_deployment_status
node_qa -.->|"records QA state"| node_database
node_updates -.->|"stores update state"| node_database
node_community -.->|"stores feedback"| node_database
node_msp_portal -.->|"coordinates deployments"| node_batch
node_msp_portal -.->|"manages webhooks"| node_msp_webhooks
node_notifications -.->|"delivers events"| node_external_hooks
node_deploy_api -.->|"uses job storage"| node_database
node_database -->|"selects adapter"| node_supabase
node_notifications -.->|"persists notifications"| node_database

click node_signin "https://github.com/ugurkocde/intuneget/blob/main/app/(app)/auth/signin/SignInClient.tsx"
click node_catalog "https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/apps/page.tsx"
click node_catalog_api "https://github.com/ugurkocde/intuneget/blob/main/app/api/winget/search/route.ts"
click node_package_config "https://github.com/ugurkocde/intuneget/blob/main/components/PackageConfig.tsx"
click node_deploy_api "https://github.com/ugurkocde/intuneget/blob/main/app/api/package/route.ts"
click node_curated "https://github.com/ugurkocde/intuneget/blob/main/lib/curated-catalog/server.ts"
click node_packaging "https://github.com/ugurkocde/intuneget/blob/main/lib/github-actions.ts"
click node_local_packager "https://github.com/ugurkocde/intuneget/blob/main/packager/src/job-processor.ts"
click node_deployment_status "https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/page.tsx"
click node_qa "https://github.com/ugurkocde/intuneget/blob/main/app/api/cron/qa-enqueue/route.ts"
click node_inventory "https://github.com/ugurkocde/intuneget/blob/main/app/api/intune/apps/route.ts"
click node_unmanaged "https://github.com/ugurkocde/intuneget/blob/main/app/api/intune/unmanaged-apps/route.ts"
click node_updates "https://github.com/ugurkocde/intuneget/blob/main/app/api/cron/check-updates/route.ts"
click node_community "https://github.com/ugurkocde/intuneget/blob/main/app/api/community/suggestions/route.ts"
click node_msp_portal "https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/msp/page.tsx"
click node_batch "https://github.com/ugurkocde/intuneget/blob/main/lib/msp/batch-orchestrator.ts"
click node_msp_webhooks "https://github.com/ugurkocde/intuneget/blob/main/lib/msp/webhook-service.ts"
click node_notifications "https://github.com/ugurkocde/intuneget/blob/main/lib/notification-service.ts"
click node_database "https://github.com/ugurkocde/intuneget/blob/main/lib/db/index.ts"
click node_supabase "https://github.com/ugurkocde/intuneget/blob/main/lib/supabase.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_signin,node_catalog,node_catalog_api,node_community toneBlue
class node_package_config,node_deploy_api,node_curated,node_packaging,node_local_packager toneAmber
class node_deployment_status,node_qa,node_inventory,node_unmanaged,node_updates,node_external_hooks toneMint
class node_msp_portal,node_batch,node_msp_webhooks toneRose
class node_notifications,node_database,node_supabase,node_admin,node_intune toneIndigo
```

## Components

### User experience

- [Microsoft sign-in](https://github.com/ugurkocde/intuneget/blob/main/app/(app)/auth/signin/SignInClient.tsx): `app/(app)/auth/signin/SignInClient.tsx`
- [Winget catalog](https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/apps/page.tsx): `app/(app)/dashboard/apps/page.tsx`
- [Catalog APIs](https://github.com/ugurkocde/intuneget/blob/main/app/api/winget/search/route.ts): `app/api/winget/search/route.ts`
- [Community feedback](https://github.com/ugurkocde/intuneget/blob/main/app/api/community/suggestions/route.ts): `app/api/community/suggestions/route.ts`

### Deployment

- [Package configuration](https://github.com/ugurkocde/intuneget/blob/main/components/PackageConfig.tsx): `components/PackageConfig.tsx`
- [Deployment requests](https://github.com/ugurkocde/intuneget/blob/main/app/api/package/route.ts): `app/api/package/route.ts`
- [Curated catalog](https://github.com/ugurkocde/intuneget/blob/main/lib/curated-catalog/server.ts): `lib/curated-catalog/server.ts`
- [Packaging workflow](https://github.com/ugurkocde/intuneget/blob/main/lib/github-actions.ts): `lib/github-actions.ts`
- [Local packager](https://github.com/ugurkocde/intuneget/blob/main/packager/src/job-processor.ts): `packager/src/job-processor.ts`

### Operations

- [Deployment status](https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/page.tsx): `app/(app)/dashboard/page.tsx`
- [Package QA](https://github.com/ugurkocde/intuneget/blob/main/app/api/cron/qa-enqueue/route.ts): `app/api/cron/qa-enqueue/route.ts`
- [Managed inventory](https://github.com/ugurkocde/intuneget/blob/main/app/api/intune/apps/route.ts): `app/api/intune/apps/route.ts`
- [Unmanaged apps](https://github.com/ugurkocde/intuneget/blob/main/app/api/intune/unmanaged-apps/route.ts): `app/api/intune/unmanaged-apps/route.ts`
- [App updates](https://github.com/ugurkocde/intuneget/blob/main/app/api/cron/check-updates/route.ts): `app/api/cron/check-updates/route.ts`

### MSP management

- [MSP portal](https://github.com/ugurkocde/intuneget/blob/main/app/(app)/dashboard/msp/page.tsx): `app/(app)/dashboard/msp/page.tsx`
- [Batch deployments](https://github.com/ugurkocde/intuneget/blob/main/lib/msp/batch-orchestrator.ts): `lib/msp/batch-orchestrator.ts`
- [MSP webhooks](https://github.com/ugurkocde/intuneget/blob/main/lib/msp/webhook-service.ts): `lib/msp/webhook-service.ts`

### Platform services

- [Notifications](https://github.com/ugurkocde/intuneget/blob/main/lib/notification-service.ts): `lib/notification-service.ts`
- [Database adapter](https://github.com/ugurkocde/intuneget/blob/main/lib/db/index.ts): `lib/db/index.ts`
- [Supabase](https://github.com/ugurkocde/intuneget/blob/main/lib/supabase.ts): `lib/supabase.ts`

### Other components

- **IT admin**
- **Microsoft Intune**
- **Webhook endpoints**

## Connections

- IT admin → Microsoft sign-in: signs in (evidence: `README.md`)
- Microsoft sign-in → Winget catalog: opens dashboard
- IT admin → Winget catalog: browses apps
- Winget catalog → Catalog APIs: searches catalog
- Winget catalog → Package configuration: configures app
- Package configuration → Deployment requests: submits package
- Deployment requests → Curated catalog: validates curated app (evidence: `app/api/package/route.ts`)
- Deployment requests → Packaging workflow: triggers workflow (evidence: `app/api/package/route.ts`)
- Packaging workflow → Microsoft Intune: deploys package (evidence: `README.md`)
- Deployment requests → Microsoft Intune: deploys Store app (evidence: `README.md`)
- IT admin → Local packager: uses local packaging (evidence: `README.md`)
- Microsoft Intune → Managed inventory: provides app inventory
- Microsoft Intune → Unmanaged apps: provides detected apps (evidence: `app/api/intune/unmanaged-apps/route.ts`)
- IT admin → Deployment status: tracks deployments (evidence: `README.md`)
- Package QA → Database adapter: records QA state
- App updates → Database adapter: stores update state
- Community feedback → Database adapter: stores feedback
- MSP portal → Batch deployments: coordinates deployments (evidence: `README.md`)
- MSP portal → MSP webhooks: manages webhooks (evidence: `README.md`)
- Notifications → Webhook endpoints: delivers events (evidence: `README.md`)
- Deployment requests → Database adapter: uses job storage (evidence: `app/api/package/route.ts`)
- Database adapter → Supabase: selects adapter (evidence: `lib/db/index.ts`)
- Notifications → Database adapter: persists notifications
