# ahmadrezzek/isp-platform architecture

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

- Interactive diagram: https://gitdiagram.com/ahmadrezzek/isp-platform
- Repository: https://github.com/ahmadrezzek/isp-platform

## Overview

ISP Platform is an evolving ISP operations foundation: an Arabic RTL admin shell, a NestJS API exposing a health endpoint, and a Prisma-backed PostgreSQL data model. The evidenced runtime path is browser to admin shell, and API client to the health route through Nest bootstrap and module wiring; Prisma is initialized by the API module. The README names subscriber, billing, network, and automation capabilities as product scope, but the supplied tree shows no implemented feature modules for them. The graph therefore maps the existing foundation, not planned workflows; Redis is documented as a local service, with no runtime integration shown.

Main entry points: [`apps/api/src/app.module.ts`](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/app.module.ts) (App module), [`apps/api/src/prisma/prisma.module.ts`](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/prisma/prisma.module.ts) (Prisma module), [`apps/api/src/prisma/prisma.service.ts`](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/prisma/prisma.service.ts) (Prisma service), [`apps/web/app/page.tsx`](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/web/app/page.tsx) (Admin shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Admin interface"]
  node_admin["Admin shell<br/>[page.tsx]"]
  node_layout["RTL layout<br/>[layout.tsx]"]
end

subgraph group_api["API runtime"]
  node_bootstrap["API bootstrap<br/>[main.ts]"]
  node_app_module["App module<br/>[app.module.ts]"]
  node_health["Health endpoint<br/>[app.controller.ts]"]
end

subgraph group_data["Persistence"]
  node_prisma_module["Prisma module<br/>[prisma.module.ts]"]
  node_prisma_service["Prisma service<br/>[prisma.service.ts]"]
  node_schema[("Domain schema<br/>[schema.prisma]")]
end

node_client(("Admin user"))
node_api_client(("API client"))
node_postgres[("PostgreSQL")]

node_client -->|"views"| node_admin
node_layout -->|"renders"| node_admin
node_api_client -->|"requests health"| node_health
node_bootstrap -->|"creates"| node_app_module
node_app_module -->|"registers"| node_health
node_app_module -->|"imports"| node_prisma_module
node_prisma_module -->|"provides"| node_prisma_service
node_prisma_service -->|"connects"| node_postgres
node_schema -->|"defines data"| node_postgres

click node_admin "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/web/app/page.tsx"
click node_layout "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/web/app/layout.tsx"
click node_bootstrap "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/main.ts"
click node_app_module "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/app.module.ts"
click node_health "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/app.controller.ts"
click node_prisma_module "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/prisma/prisma.module.ts"
click node_prisma_service "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/prisma/prisma.service.ts"
click node_schema "https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/prisma/schema.prisma"

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_admin,node_layout,node_client,node_api_client toneBlue
class node_bootstrap,node_app_module,node_health,node_postgres toneAmber
class node_prisma_module,node_prisma_service,node_schema toneMint
```

## Components

### Admin interface

- [Admin shell](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/web/app/page.tsx): `apps/web/app/page.tsx`
- [RTL layout](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/web/app/layout.tsx): `apps/web/app/layout.tsx`

### API runtime

- [API bootstrap](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/main.ts): `apps/api/src/main.ts`
- [App module](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/app.module.ts): `apps/api/src/app.module.ts`
- [Health endpoint](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/app.controller.ts): `apps/api/src/app.controller.ts`

### Persistence

- [Prisma module](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/prisma/prisma.module.ts): `apps/api/src/prisma/prisma.module.ts`
- [Prisma service](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/src/prisma/prisma.service.ts): `apps/api/src/prisma/prisma.service.ts`
- [Domain schema](https://github.com/ahmadrezzek/isp-platform/blob/main/apps/api/prisma/schema.prisma): `apps/api/prisma/schema.prisma`

### Other components

- **Admin user**
- **API client**
- **PostgreSQL**

## Connections

- Admin user → Admin shell: views (evidence: `README.md`)
- RTL layout → Admin shell: renders (evidence: `README.md`)
- API client → Health endpoint: requests health (evidence: `apps/api/src/app.controller.ts`)
- API bootstrap → App module: creates (evidence: `apps/api/src/main.ts`)
- App module → Health endpoint: registers (evidence: `apps/api/src/app.module.ts`)
- App module → Prisma module: imports (evidence: `apps/api/src/app.module.ts`)
- Prisma module → Prisma service: provides (evidence: `apps/api/src/prisma/prisma.module.ts`)
- Prisma service → PostgreSQL: connects (evidence: `README.md`)
- Domain schema → PostgreSQL: defines data (evidence: `README.md`)
