# raazkhnl/queueless architecture

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

- Interactive diagram: https://gitdiagram.com/raazkhnl/queueless
- Repository: https://github.com/raazkhnl/queueless

## Overview

QueueLess combines a citizen service portal and staff administration with multi-branch appointment/queue management and omnichannel ticketing. Citizens find services, book or track appointments, and submit or track issues; staff manage bookings and handle channel messages in a unified inbox. Inbound channel events converge through contact resolution, conversation/ticket handling, and routing/SLA functions. The README documents additional capabilities such as payments, transparency, identity, and compliance, but their detailed runtime connections are not established by the sampled source. Edges are limited to documented or indexed relationships.

Main entry points: [`backend/src/channels/ingestPipeline.js`](https://github.com/raazkhnl/queueless/blob/main/backend/src/channels/ingestPipeline.js) (Inbound processing), [`backend/src/routes/channelWebhooks.js`](https://github.com/raazkhnl/queueless/blob/main/backend/src/routes/channelWebhooks.js) (Channel webhooks), [`frontend/src/App.tsx`](https://github.com/raazkhnl/queueless/blob/main/frontend/src/App.tsx) (Web application), [`frontend/src/pages/public/Services.tsx`](https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/Services.tsx) (Service catalogue)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portal["Citizen portal"]
  node_app["Web application<br/>[App.tsx]"]
  node_services["Service catalogue<br/>[Services.tsx]"]
  node_booking_ui["Booking flow<br/>[BookingWizard.tsx]"]
  node_issue_ui["Issue submission<br/>[IssueWizard.tsx]"]
  node_inbox_ui["Staff inbox<br/>[Inbox.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
end

subgraph group_booking["Appointments"]
  node_appointments["Appointment handling"]
  node_appointment_store[("Appointment records<br/>[Appointment.js]")]
end

subgraph group_tickets["Omnichannel tickets"]
  node_channel_webhooks["Channel webhooks<br/>[channelWebhooks.js]"]
  node_adapters["Channel adapters<br/>[channelRegistry.js]"]
  node_ingest["Inbound processing<br/>[ingestPipeline.js]"]
  node_contacts["Contact resolution"]
  node_conversations["Conversation handling"]
  node_issues["Ticket workflow<br/>[issueService.js]"]
  node_issue_store[("Issue records<br/>[Issue.js]")]
  node_routing["Ticket routing<br/>[routingService.js]"]
  node_sla["SLA management<br/>[slaService.js]"]
end

subgraph group_identity["Identity and access"]
  node_auth["Authentication<br/>[authController.js]"]
end

subgraph group_platform["Runtime platform"]
  node_server["HTTP server<br/>[server.js]"]
  node_storage["Attachment storage<br/>[storageService.js]"]
  node_realtime["Live updates<br/>[socket.js]"]
end

node_citizen(("Citizen"))
node_staff(("Service staff"))
node_channels(("Messaging channels"))

node_citizen -->|"uses"| node_app
node_staff -.->|"uses"| node_app
node_app -->|"routes to"| node_services
node_citizen -->|"browses"| node_services
node_services -->|"requests data"| node_api_client
node_citizen -->|"books service"| node_booking_ui
node_booking_ui -.->|"submits booking"| node_api_client
node_appointments -->|"reads and writes"| node_appointment_store
node_citizen -->|"submits issue"| node_issue_ui
node_staff -->|"handles tickets"| node_inbox_ui
node_channels -->|"sends events"| node_channel_webhooks
node_server -->|"mounts routes"| node_channel_webhooks
node_channel_webhooks -->|"selects adapter"| node_adapters
node_channel_webhooks -->|"forwards inbound"| node_ingest
node_ingest -->|"resolves identity"| node_contacts
node_ingest -->|"threads messages"| node_conversations
node_ingest -->|"creates or updates"| node_issues
node_issues -->|"reads and writes"| node_issue_store
node_ingest -->|"applies rules"| node_routing
node_ingest -->|"updates due dates"| node_sla
node_ingest -->|"notifies"| node_realtime
node_ingest -->|"stores attachments"| node_storage
node_citizen -->|"authenticates"| node_auth
node_server -->|"mounts auth routes"| node_auth

click node_app "https://github.com/raazkhnl/queueless/blob/main/frontend/src/App.tsx"
click node_services "https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/Services.tsx"
click node_booking_ui "https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/BookingWizard.tsx"
click node_issue_ui "https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/IssueWizard.tsx"
click node_inbox_ui "https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/admin/Inbox.tsx"
click node_api_client "https://github.com/raazkhnl/queueless/blob/main/frontend/src/lib/api.ts"
click node_server "https://github.com/raazkhnl/queueless/blob/main/backend/src/server.js"
click node_appointments "https://github.com/raazkhnl/queueless/blob/main/backend/src/controllers/appointmentController.js"
click node_appointment_store "https://github.com/raazkhnl/queueless/blob/main/backend/src/models/Appointment.js"
click node_channel_webhooks "https://github.com/raazkhnl/queueless/blob/main/backend/src/routes/channelWebhooks.js"
click node_adapters "https://github.com/raazkhnl/queueless/blob/main/backend/src/channels/channelRegistry.js"
click node_ingest "https://github.com/raazkhnl/queueless/blob/main/backend/src/channels/ingestPipeline.js"
click node_contacts "https://github.com/raazkhnl/queueless/blob/main/backend/src/services/contactResolutionService.js"
click node_conversations "https://github.com/raazkhnl/queueless/blob/main/backend/src/services/conversationService.js"
click node_issues "https://github.com/raazkhnl/queueless/blob/main/backend/src/services/issueService.js"
click node_issue_store "https://github.com/raazkhnl/queueless/blob/main/backend/src/models/Issue.js"
click node_routing "https://github.com/raazkhnl/queueless/blob/main/backend/src/services/routingService.js"
click node_sla "https://github.com/raazkhnl/queueless/blob/main/backend/src/services/slaService.js"
click node_auth "https://github.com/raazkhnl/queueless/blob/main/backend/src/controllers/authController.js"
click node_storage "https://github.com/raazkhnl/queueless/blob/main/backend/src/services/storageService.js"
click node_realtime "https://github.com/raazkhnl/queueless/blob/main/backend/src/realtime/socket.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_services,node_booking_ui,node_issue_ui,node_inbox_ui,node_api_client toneBlue
class node_appointments,node_appointment_store toneAmber
class node_channel_webhooks,node_adapters,node_ingest,node_contacts,node_conversations,node_issues,node_issue_store,node_routing,node_sla toneMint
class node_auth toneRose
class node_server,node_storage,node_realtime,node_citizen,node_staff,node_channels toneIndigo
```

## Components

### Citizen portal

- [Web application](https://github.com/raazkhnl/queueless/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Service catalogue](https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/Services.tsx): `frontend/src/pages/public/Services.tsx`
- [Booking flow](https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/BookingWizard.tsx): `frontend/src/pages/public/BookingWizard.tsx`
- [Issue submission](https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/public/IssueWizard.tsx): `frontend/src/pages/public/IssueWizard.tsx`
- [Staff inbox](https://github.com/raazkhnl/queueless/blob/main/frontend/src/pages/admin/Inbox.tsx): `frontend/src/pages/admin/Inbox.tsx`
- [API client](https://github.com/raazkhnl/queueless/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`

### Appointments

- [Appointment handling](https://github.com/raazkhnl/queueless/blob/main/backend/src/controllers/appointmentController.js): `backend/src/controllers/appointmentController.js`
- [Appointment records](https://github.com/raazkhnl/queueless/blob/main/backend/src/models/Appointment.js): `backend/src/models/Appointment.js`

### Omnichannel tickets

- [Channel webhooks](https://github.com/raazkhnl/queueless/blob/main/backend/src/routes/channelWebhooks.js): `backend/src/routes/channelWebhooks.js`
- [Channel adapters](https://github.com/raazkhnl/queueless/blob/main/backend/src/channels/channelRegistry.js): `backend/src/channels/channelRegistry.js`
- [Inbound processing](https://github.com/raazkhnl/queueless/blob/main/backend/src/channels/ingestPipeline.js): `backend/src/channels/ingestPipeline.js`
- [Contact resolution](https://github.com/raazkhnl/queueless/blob/main/backend/src/services/contactResolutionService.js): `backend/src/services/contactResolutionService.js`
- [Conversation handling](https://github.com/raazkhnl/queueless/blob/main/backend/src/services/conversationService.js): `backend/src/services/conversationService.js`
- [Ticket workflow](https://github.com/raazkhnl/queueless/blob/main/backend/src/services/issueService.js): `backend/src/services/issueService.js`
- [Issue records](https://github.com/raazkhnl/queueless/blob/main/backend/src/models/Issue.js): `backend/src/models/Issue.js`
- [Ticket routing](https://github.com/raazkhnl/queueless/blob/main/backend/src/services/routingService.js): `backend/src/services/routingService.js`
- [SLA management](https://github.com/raazkhnl/queueless/blob/main/backend/src/services/slaService.js): `backend/src/services/slaService.js`

### Identity and access

- [Authentication](https://github.com/raazkhnl/queueless/blob/main/backend/src/controllers/authController.js): `backend/src/controllers/authController.js`

### Runtime platform

- [HTTP server](https://github.com/raazkhnl/queueless/blob/main/backend/src/server.js): `backend/src/server.js`
- [Attachment storage](https://github.com/raazkhnl/queueless/blob/main/backend/src/services/storageService.js): `backend/src/services/storageService.js`
- [Live updates](https://github.com/raazkhnl/queueless/blob/main/backend/src/realtime/socket.js): `backend/src/realtime/socket.js`

### Other components

- **Citizen**
- **Service staff**
- **Messaging channels**

## Connections

- Citizen → Web application: uses (evidence: `frontend/src/App.tsx`)
- Service staff → Web application: uses
- Web application → Service catalogue: routes to (evidence: `frontend/src/App.tsx`)
- Citizen → Service catalogue: browses (evidence: `frontend/src/pages/public/Services.tsx`)
- Service catalogue → API client: requests data (evidence: `frontend/src/pages/public/Services.tsx`)
- Citizen → Booking flow: books service (evidence: `README.md`)
- Booking flow → API client: submits booking
- Appointment handling → Appointment records: reads and writes (evidence: `backend/src/controllers/appointmentController.js`)
- Citizen → Issue submission: submits issue (evidence: `README.md`)
- Service staff → Staff inbox: handles tickets (evidence: `README.md`)
- Messaging channels → Channel webhooks: sends events (evidence: `backend/src/routes/channelWebhooks.js`)
- HTTP server → Channel webhooks: mounts routes (evidence: `backend/src/server.js`)
- Channel webhooks → Channel adapters: selects adapter (evidence: `backend/src/routes/channelWebhooks.js`)
- Channel webhooks → Inbound processing: forwards inbound (evidence: `backend/src/routes/channelWebhooks.js`)
- Inbound processing → Contact resolution: resolves identity (evidence: `backend/src/channels/ingestPipeline.js`)
- Inbound processing → Conversation handling: threads messages (evidence: `backend/src/channels/ingestPipeline.js`)
- Inbound processing → Ticket workflow: creates or updates (evidence: `backend/src/channels/ingestPipeline.js`)
- Ticket workflow → Issue records: reads and writes (evidence: `backend/src/services/issueService.js`)
- Inbound processing → Ticket routing: applies rules (evidence: `backend/src/channels/ingestPipeline.js`)
- Inbound processing → SLA management: updates due dates (evidence: `backend/src/channels/ingestPipeline.js`)
- Inbound processing → Live updates: notifies (evidence: `backend/src/channels/ingestPipeline.js`)
- Inbound processing → Attachment storage: stores attachments (evidence: `backend/src/channels/ingestPipeline.js`)
- Citizen → Authentication: authenticates (evidence: `README.md`)
- HTTP server → Authentication: mounts auth routes (evidence: `backend/src/server.js`)
