# suresh-dev143/ceekulacademy architecture

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

- Interactive diagram: https://gitdiagram.com/suresh-dev143/ceekulacademy
- Repository: https://github.com/suresh-dev143/ceekulacademy

## Overview

1. This repository is a two-part system: an Angular 21 client at the root and a separate NestJS backend in `ceekul-orchestrator/`. The client is the primary application shell; the Nest app provides orchestration-style APIs and domain services that the frontend consumes.

2. The Angular app is organized as a route-driven product with many feature pages rather than a single narrow workflow. Major user areas include landing, home, personal, student, teacher, partner, advisor, director, admin, workshops, research, content-view, and dashboards. This makes the route map the main structural boundary of the frontend.

3. The UI is assembled from reusable feature components under `src/app/components/`. These include navigation and layout shells, panels, overlays, chat widgets, adaptive renderers, course/workshop cards, profile editors, and role-specific subcomponents. Most pages appear to be compositions of these smaller blocks rather than self-contained screens.

4. A large service layer in `src/app/services/` is the main client-side integration boundary. Services encapsulate domain logic for auth, profile, courses, workshops, content, search, scheduling, payments, news, donations, media upload, AI/Claude, chat, orchestration, and role-specific workflows. Pages and components depend on these services instead of talking directly to low-level APIs.

5. Cross-cutting client infrastructure is handled by interceptors and core utilities. The app has interceptors for auth, error handling, offline queueing, device profile, semantic caching, and semantic delta propagation. Core services such as toast, validation, location, and infrastructure act as shared platform services used across feature areas.

6. The application is built for a persistent, mobile-friendly experience. It includes SSR entry points (`main.server.ts`, `server.ts`, app server config), PWA assets (`ngsw-config.json`, web manifest), and an `offline-indicator`. This suggests the client is expected to work across fluctuating connectivity and benefit from server rendering plus caching.

7. A notable subsystem is the content/adaptive experience: adaptive content renderer components, semantic panels, content evolution panels, live editor, research mode, and AI tools. These pieces imply a pipeline where content is rendered, modified, evolved, and cached semantically, rather than treated as static pages.

8. Realtime and collaboration features are first-class. The frontend includes chat panels, discussion/live chat, orchestration overlays, screen-sync, semantic CRDT workspace services, and integrations around Agora/Socket-style communication. The data flow here is likely event-driven: user actions update local state, sync over sockets/realtime services, and feed collaborative views.

9. Media handling is its own subsystem. There are dedicated upload components and services for audio, document, image, and video assets, plus a generalized media-upload module. These uploads likely feed content creation, profile management, workshops, and any adaptive content or creator tooling.

10. The frontend is strongly role-oriented. Student, teacher, partner, volunteer, director, and admin all have dedicated dashboards and management pages. That role split is important for the architecture diagram because it means shared platform services are reused across distinct authorization and capability boundaries.

11. `ceekul-orchestrator/` is the backend orchestration service. Its Nest modules are split by domain: demand, neurons, evolution, collaboration, and orchestration. Controllers and services in this layer suggest it coordinates matching, scoring, or recommendation-style workflows rather than serving as a generic CRUD API only.

12. The orchestrator backend also contains an `ad-matcher.service`, indicating some decisioning or pairing logic. Combined with `demand.prompt.ts` and the neuron/evolution modules, the backend appears to support AI- or rules-assisted routing of requests, recommendations, or assignments for the client’s higher-level workflows.

13. End-to-end data flow is therefore: route/page selection in Angular, page composition from reusable components, service calls through interceptors, then backend orchestration or external providers such as chat, AI, payments, and media services. The architecture is best diagrammed as a layered client platform with a separate coordination backend and multiple external integration edges.

14. The repo also contains legacy/backed-up artifacts (`.backup`, `register copy`, `.bak` files), which suggests active experimentation and iterative refactoring. Those files are not part of the primary runtime path, but they signal that some flows may have evolved over time and are worth ignoring in the diagram unless you are documenting history.

Main entry points: [`src/app/services/orchestrator.service.ts`](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/services/orchestrator.service.ts) (Client services), [`ceekul-orchestrator/src/app.module.ts`](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/app.module.ts) (Orchestrator app), [`src/app/pages/home/home.ts`](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/home/home.ts) (Feature pages), [`ceekul-orchestrator/src/orchestration/orchestration.service.ts`](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/orchestration/orchestration.service.ts) (Orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Angular client"]
  node_app_shell["App shell<br/>Angular root<br/>[app.ts]"]
  node_routes["Route map<br/>Angular routes<br/>[app.routes.ts]"]
  node_layouts["Layouts<br/>UI shells<br/>[layout.ts]"]
  node_feature_pages["Feature pages<br/>Route pages<br/>[home.ts]"]
  node_role_dashboards["Role dashboards<br/>Role UIs"]
  node_content_adaptive["Adaptive content<br/>Content pipeline"]
  node_collab_realtime["Realtime collab<br/>Event sync<br/>[chat-panel.ts]"]
  node_media["Media layer<br/>Upload stack"]
  node_workshops["Workshops<br/>Learning flow<br/>[workshops.ts]"]
  node_profile_personal["Profile & personal<br/>Personal hub<br/>[personal.ts]"]
  node_platform_services["Client services<br/>Domain services"]
  node_client_infra["Client infra<br/>Cross-cutting"]
  node_pwa_ssr["PWA + SSR<br/>Delivery runtime<br/>[main.server.ts]"]
end

subgraph group_backend["Nest backend"]
  node_orchestrator_app["Orchestrator app<br/>Nest root<br/>[app.module.ts]"]
  node_demand["Demand<br/>AI/rules module<br/>[demand.service.ts]"]
  node_neurons["Neurons<br/>Decision module<br/>[neuron.service.ts]"]
  node_evolution["Evolution<br/>Growth module"]
  node_orchestration_backend["Orchestration<br/>Coordination API"]
  node_collaboration_backend["Collaboration<br/>Backend module"]
end

subgraph group_external["External services"]
  node_ai_provider(("AI provider<br/>External AI"))
  node_realtime_provider(("Realtime provider<br/>Sockets/RTC"))
  node_payments_provider(("Payments<br/>Billing API"))
  node_media_provider(("Media hosting<br/>Upload/CDN"))
end

node_app_shell -->|"bootstraps"| node_routes
node_routes -->|"wraps"| node_layouts
node_routes -->|"dispatches"| node_feature_pages
node_routes -->|"specializes"| node_role_dashboards
node_layouts -->|"uses"| node_platform_services
node_feature_pages -->|"calls"| node_platform_services
node_role_dashboards -->|"calls"| node_platform_services
node_feature_pages -->|"embeds"| node_content_adaptive
node_feature_pages -->|"hosts"| node_workshops
node_feature_pages -->|"hosts"| node_profile_personal
node_content_adaptive -->|"uses"| node_ai_provider
node_content_adaptive -->|"caches"| node_client_infra
node_collab_realtime -->|"syncs"| node_realtime_provider
node_media -->|"uploads"| node_media_provider
node_platform_services -->|"requests"| node_orchestrator_app
node_platform_services -->|"integrates"| node_ai_provider
node_platform_services -->|"integrates"| node_realtime_provider
node_platform_services -->|"integrates"| node_payments_provider
node_client_infra -->|"supports"| node_pwa_ssr
node_orchestrator_app -->|"includes"| node_demand
node_orchestrator_app -->|"includes"| node_neurons
node_orchestrator_app -->|"includes"| node_evolution
node_orchestrator_app -->|"includes"| node_orchestration_backend
node_orchestrator_app -->|"includes"| node_collaboration_backend
node_orchestration_backend -->|"coordinates"| node_demand
node_orchestration_backend -->|"scores"| node_neurons
node_orchestration_backend -->|"refines"| node_evolution
node_orchestration_backend -->|"bridges"| node_collaboration_backend

click node_app_shell "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/app.ts"
click node_routes "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/app.routes.ts"
click node_layouts "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/layout/layout.ts"
click node_feature_pages "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/home/home.ts"
click node_role_dashboards "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/student-dashboard/student-dashboard.ts"
click node_content_adaptive "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/adaptive-content-renderer/adaptive-content-renderer.ts"
click node_collab_realtime "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/chat-panel/chat-panel.ts"
click node_media "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/media-upload/media-upload.component.ts"
click node_workshops "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/workshops/workshops.ts"
click node_profile_personal "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/personal/personal-page/personal.ts"
click node_platform_services "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/services/orchestrator.service.ts"
click node_client_infra "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/core/interceptors/auth.interceptor.ts"
click node_pwa_ssr "https://github.com/suresh-dev143/ceekulacademy/blob/main/src/main.server.ts"
click node_orchestrator_app "https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/app.module.ts"
click node_demand "https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/demand/demand.service.ts"
click node_neurons "https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/neurons/neuron.service.ts"
click node_evolution "https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/evolution/evolution.service.ts"
click node_orchestration_backend "https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/orchestration/orchestration.service.ts"
click node_collaboration_backend "https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/collaboration/collaboration.module.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_app_shell,node_routes,node_layouts,node_feature_pages,node_role_dashboards,node_content_adaptive,node_collab_realtime,node_media,node_workshops,node_profile_personal,node_platform_services,node_client_infra,node_pwa_ssr toneBlue
class node_orchestrator_app,node_demand,node_neurons,node_evolution,node_orchestration_backend,node_collaboration_backend toneAmber
class node_ai_provider,node_realtime_provider,node_payments_provider,node_media_provider toneMint
```

## Components

### Angular client

Root Angular 21 application shell and feature areas

- [App shell](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/app.ts): Angular root · Bootstraps the client, app config, SSR entrypoints, and global route composition · `src/app/app.ts`
- [Route map](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/app.routes.ts): Angular routes · Primary structural boundary for the frontend's page-driven architecture · `src/app/app.routes.ts`
- [Layouts](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/layout/layout.ts): UI shells · Shared shells for landing, personal, admin, and app-wide layout composition · `src/app/components/layout/layout.ts`
- [Feature pages](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/home/home.ts): Route pages · Major user areas including home, personal, student, teacher, partner, advisor, director, admin, workshops, research, content-view, and dashboards · `src/app/pages/home/home.ts`
- [Role dashboards](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/student-dashboard/student-dashboard.ts): Role UIs · Dedicated role-specific surfaces for student, teacher, partner, advisor, director, manager, volunteer, and admin workflows · `src/app/pages/student-dashboard/student-dashboard.ts`
- [Adaptive content](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/adaptive-content-renderer/adaptive-content-renderer.ts): Content pipeline · Content rendering, semantic panels, live editor, research mode, and evolution-oriented UI · `src/app/components/adaptive-content-renderer/adaptive-content-renderer.ts`
- [Realtime collab](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/chat-panel/chat-panel.ts): Event sync · Chat, discussion, overlays, screen sync, and collaborative workspace services · `src/app/components/chat-panel/chat-panel.ts`
- [Media layer](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/components/media-upload/media-upload.component.ts): Upload stack · Audio, document, image, and video upload components and services · `src/app/components/media-upload/media-upload.component.ts`
- [Workshops](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/workshops/workshops.ts): Learning flow · Workshop discovery, enrollment, live room, cards, and teacher workshop management · `src/app/pages/workshops/workshops.ts`
- [Profile & personal](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/pages/personal/personal-page/personal.ts): Personal hub · Profile editing, personal hub pages, schedules, library, activity, welfare, and self-management views · `src/app/pages/personal/personal-page/personal.ts`
- [Client services](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/services/orchestrator.service.ts): Domain services · Main client-side integration boundary for auth, profile, courses, content, search, scheduling, payments, news, and workflow services · `src/app/services/orchestrator.service.ts`
- [Client infra](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/app/core/interceptors/auth.interceptor.ts): Cross-cutting · Interceptors, toast, validation, location, offline queue, semantic cache, and device context plumbing · `src/app/core/interceptors/auth.interceptor.ts`
- [PWA + SSR](https://github.com/suresh-dev143/ceekulacademy/blob/main/src/main.server.ts): Delivery runtime · Server rendering, service worker config, manifest, and offline-friendly delivery support · `src/main.server.ts`

### Nest backend

Separate orchestration API service in ceekul-orchestrator/

- [Orchestrator app](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/app.module.ts): Nest root · NestJS backend bootstrap and module root for coordination APIs · `ceekul-orchestrator/src/app.module.ts`
- [Demand](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/demand/demand.service.ts): AI/rules module · Demand prompts and request-shaping service for routing and classification · `ceekul-orchestrator/src/demand/demand.service.ts`
- [Neurons](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/neurons/neuron.service.ts): Decision module · Neuron domain controller/service/types for scoring or stateful decision logic · `ceekul-orchestrator/src/neurons/neuron.service.ts`
- [Evolution](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/evolution/evolution.service.ts): Growth module · Evolution service for iterative refinement or transformation workflows · `ceekul-orchestrator/src/evolution/evolution.service.ts`
- [Orchestration](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/orchestration/orchestration.service.ts): Coordination API · Backend controller/service plus ad-matcher logic that coordinates assignments and workflow decisions · `ceekul-orchestrator/src/orchestration/orchestration.service.ts`
- [Collaboration](https://github.com/suresh-dev143/ceekulacademy/blob/main/ceekul-orchestrator/src/collaboration/collaboration.module.ts): Backend module · Backend collaboration module supporting shared or interactive workflows · `ceekul-orchestrator/src/collaboration/collaboration.module.ts`

### External services

Third-party runtime and integration providers

- **AI provider**: External AI · Claude/AI services used by client-side assistants, content tools, and adaptive features
- **Realtime provider**: Sockets/RTC · Chat and realtime communication backends such as Socket-style and Agora-style integrations
- **Payments**: Billing API · Payment and donation providers consumed by client services
- **Media hosting**: Upload/CDN · External storage or delivery targets for uploaded audio, documents, images, and video

## Connections

- App shell → Route map: bootstraps · The app shell loads the route tree and feature entrypoints
- Route map → Layouts: wraps · Routes compose shared shells and navigation layouts
- Route map → Feature pages: dispatches · Route segments map to the main product pages
- Route map → Role dashboards: specializes · Role-aware routes branch into dedicated dashboards and management surfaces
- Layouts → Client services: uses · Shells consume shared services for navigation, state, and orchestration
- Feature pages → Client services: calls · Pages delegate domain work to the client service layer
- Role dashboards → Client services: calls · Role-specific pages reuse the same shared service boundary
- Feature pages → Adaptive content: embeds · Many pages render adaptive content and editor-style workflows
- Feature pages → Workshops: hosts · Workshop routes are a major learning workflow
- Feature pages → Profile & personal: hosts · Personal and profile pages form a separate user-centered area
- Adaptive content → AI provider: uses · Adaptive editing and research tools rely on AI assistance
- Adaptive content → Client infra: caches · Semantic cache and delta interceptors support adaptive content flows
- Realtime collab → Realtime provider: syncs · Chat and collaboration features sync over realtime infrastructure
- Media layer → Media hosting: uploads · Upload components and services forward assets to external storage or delivery services
- Client services → Orchestrator app: requests · Client services call the backend coordination API when orchestration is needed
- Client services → AI provider: integrates · Services wrap AI, search, content, and assistant integrations
- Client services → Realtime provider: integrates · Services wrap chat and socket/RTC style channels
- Client services → Payments: integrates · Billing, donation, and checkout flows connect to payment providers
- Client infra → PWA + SSR: supports · Interceptors and shared utilities complement SSR and offline delivery
- Orchestrator app → Demand: includes · The backend root includes demand shaping and prompt handling
- Orchestrator app → Neurons: includes · The backend root includes neuron decision components
- Orchestrator app → Evolution: includes · The backend root includes evolution services
- Orchestrator app → Orchestration: includes · The backend root includes the main orchestration module
- Orchestrator app → Collaboration: includes · The backend root includes collaboration support
- Orchestration → Demand: coordinates · Orchestration can use demand shaping for routing and matching
- Orchestration → Neurons: scores · Orchestration can depend on neuron-style decision logic
- Orchestration → Evolution: refines · Orchestration can hand off to evolution workflows
- Orchestration → Collaboration: bridges · Orchestration connects to collaboration-related backend behavior
